表示テーマ
PrimitiveRenderer.PlaneAccessor
PlaneAccessorは、C# Scriptの個別設定をまとめる型です。取得元の設定から値を編集し、所有するComponentへ反映します。
型の情報
- 名前空間:
NEMEngine - 型:
NEMEngine.PrimitiveRenderer.PlaneAccessor(Class)
Axis
csharp
public PrimitivePlaneAxis Axis形状・回転・関節などの基準軸です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
DivideX
csharp
public int DivideX横方向の分割数です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
DivideY
csharp
public int DivideY縦方向の分割数です。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
Pivot
csharp
public Vector2 Pivot形状の原点または投影中心をずらします。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
Size
csharp
public Vector2 Size形状の幅・高さ・奥行きです。TransformのScaleも掛かります。
操作:読取・変更。
対応するInspector:PrimitiveRenderer。
実行時の扱い
Nativeと接続する操作は、Scriptが実行される有効なWorld内で使用します。破棄したGameObjectやComponentへのアクセスは避けてください。設定Snapshotは取得・編集・反映を1組で扱います。