Skip to content

CylinderGeometrySettings ​

CylinderGeometrySettingsは、Particleの個別設定をまとめる型です。取得元の設定から値を編集し、所有するComponentへ反映します。

使い方と前提条件 · C# API一覧

型の情報 ​

bottomColor ​

csharp
public Color4 bottomColor

Cylinder下側の頂点色です。

操作:読取・変更。

bottomRadius ​

csharp
public float bottomRadius

Cylinder下端の半径です。

操作:読取・変更。

bottomRadiusWeight ​

csharp
public float bottomRadiusWeight

下端から中央への半径の補間形状です。

操作:読取・変更。

cap ​

csharp
public PrimitiveCylinderCap cap

Cylinderの上端・下端を閉じるかを選びます。

操作:読取・変更。

centerColor ​

csharp
public Color4 centerColor

Cylinder中央の頂点色です。

操作:読取・変更。

centerRadius ​

csharp
public float centerRadius

Cylinder中央の半径です。

操作:読取・変更。

height ​

csharp
public float height

形状の高さです。

操作:読取・変更。

heightDivide ​

csharp
public int heightDivide

高さ方向の分割数です。

操作:読取・変更。

maxAngle ​

csharp
public float maxAngle

関節の回転角度の上限です。

操作:読取・変更。

radialDivide ​

csharp
public int radialDivide

円周方向の分割数です。

操作:読取・変更。

topColor ​

csharp
public Color4 topColor

Cylinder上側の頂点色です。

操作:読取・変更。

topRadius ​

csharp
public float topRadius

Cylinder上端の半径です。

操作:読取・変更。

topRadiusWeight ​

csharp
public float topRadiusWeight

上端から中央への半径の補間形状です。

操作:読取・変更。

uvMode ​

csharp
public PrimitiveCylinderUVMode uvMode

CylinderのUVの貼り方です。

操作:読取・変更。

実行時の扱い ​

Nativeと接続する操作は、Scriptが実行される有効なWorld内で使用します。破棄したGameObjectやComponentへのアクセスは避けてください。設定Snapshotは取得・編集・反映を1組で扱います。

現行版マニュアル · 8ea58ba2 · 2026-10-28確認