表示テーマ
PrimitiveRenderer.CylinderAccessor
CylinderAccessorは、C# Scriptの個別設定をまとめる型です。取得元の設定から値を編集し、所有するComponentへ反映します。
型の情報
- 名前空間:
NEMEngine - 型:
NEMEngine.PrimitiveRenderer.CylinderAccessor(Class)
BottomColor
csharp
public Color4 BottomColorCylinder下側の頂点色です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
BottomRadius
csharp
public float BottomRadiusCylinder下端の半径です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
BottomRadiusWeight
csharp
public float BottomRadiusWeight下端から中央への半径の補間形状です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
Cap
csharp
public PrimitiveCylinderCap CapCylinderの上端・下端を閉じるかを選びます。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
CenterColor
csharp
public Color4 CenterColorCylinder中央の頂点色です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
CenterRadius
csharp
public float CenterRadiusCylinder中央の半径です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
Height
csharp
public float Height形状の高さです。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
HeightDivide
csharp
public int HeightDivide高さ方向の分割数です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
MaxAngle
csharp
public float MaxAngle関節の回転角度の上限です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
RadialDivide
csharp
public int RadialDivide円周方向の分割数です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
TopColor
csharp
public Color4 TopColorCylinder上側の頂点色です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
TopRadius
csharp
public float TopRadiusCylinder上端の半径です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
TopRadiusWeight
csharp
public float TopRadiusWeight上端から中央への半径の補間形状です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
UVMode
csharp
public PrimitiveCylinderUVMode UVMode形状に対するUVの割り当て方式です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
実行時の扱い
Nativeと接続する操作は、Scriptが実行される有効なWorld内で使用します。破棄したGameObjectやComponentへのアクセスは避けてください。設定Snapshotは取得・編集・反映を1組で扱います。