Skip to content

PrimitiveRenderer.CylinderAccessor ​

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

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

型の情報 ​

  • 名前空間:NEMEngine
  • 型:NEMEngine.PrimitiveRenderer.CylinderAccessor(Class)

BottomColor ​

csharp
public Color4 BottomColor

Cylinder下側の頂点色です。

操作:読取・変更。

対応するInspector:PrimitiveRenderer。

BottomRadius ​

csharp
public float BottomRadius

Cylinder下端の半径です。

操作:読取・変更。

対応するInspector:PrimitiveRenderer。

BottomRadiusWeight ​

csharp
public float BottomRadiusWeight

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

操作:読取・変更。

対応するInspector:PrimitiveRenderer。

Cap ​

csharp
public PrimitiveCylinderCap Cap

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

操作:読取・変更。

対応するInspector:PrimitiveRenderer。

CenterColor ​

csharp
public Color4 CenterColor

Cylinder中央の頂点色です。

操作:読取・変更。

対応するInspector:PrimitiveRenderer。

CenterRadius ​

csharp
public float CenterRadius

Cylinder中央の半径です。

操作:読取・変更。

対応する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 TopColor

Cylinder上側の頂点色です。

操作:読取・変更。

対応するInspector:PrimitiveRenderer。

TopRadius ​

csharp
public float TopRadius

Cylinder上端の半径です。

操作:読取・変更。

対応するInspector:PrimitiveRenderer。

TopRadiusWeight ​

csharp
public float TopRadiusWeight

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

操作:読取・変更。

対応するInspector:PrimitiveRenderer。

UVMode ​

csharp
public PrimitiveCylinderUVMode UVMode

形状に対するUVの割り当て方式です。

操作:読取・変更。

対応するInspector:PrimitiveRenderer。

実行時の扱い ​

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

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