スクリプトからメッシュを生成する方法です。 自分用の備忘録になります。 準備 EmptyObjectに「Mesh Filter、Mesh Renderer」を追加します。 Scriptで三角形を描画する 上記で作成したEmptyObjectにScriptを追加します。 四角形を一つ描く場合 using UnityEngine; [RequireComponent ...
Game objects - two cubes in this case. Mesh Renderer - Use the built-in unity cylinder mesh Line Material - Royal Blue in this case.
Unity library aiming to assist in procedural mesh generation. Includes example projects that use the library for both in-editor mesh generation and runtime mesh generation.
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する