Search Results for

    Show / Hide Table of Contents

    Class Node

    Model 以下の階層構造を構成するノードです。 Node は 0個以上の 子Node を持つため階層構造になります。

    詳しくは Model クラスのコメントをご覧ください。

    Name はゲームエンジン側ではゲームオブジェクトの名前として解釈されることが想定されます。 Mesh はそのゲームオブジェクトの持つメッシュとして解釈されることが想定されます。

    Inheritance
    System.Object
    Node
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: PLATEAU.PolygonMesh
    Assembly: cs.temp.dll.dll
    Syntax
    public class Node

    Constructors

    Node(IntPtr)

    Declaration
    public Node(IntPtr handle)
    Parameters
    Type Name Description
    IntPtr handle

    Properties

    ChildCount

    子ノードの数を返します。

    Declaration
    public int ChildCount { get; }
    Property Value
    Type Description
    System.Int32

    Handle

    Declaration
    public IntPtr Handle { get; }
    Property Value
    Type Description
    IntPtr

    IsActive

    Declaration
    public bool IsActive { get; set; }
    Property Value
    Type Description
    System.Boolean

    LocalPosition

    Declaration
    public PlateauVector3d LocalPosition { get; set; }
    Property Value
    Type Description
    PlateauVector3d

    LocalRotation

    Declaration
    public PlateauQuaternion LocalRotation { get; set; }
    Property Value
    Type Description
    PlateauQuaternion

    LocalScale

    Declaration
    public PlateauVector3d LocalScale { get; set; }
    Property Value
    Type Description
    PlateauVector3d

    Mesh

    ノードが保有する Mesh を返します。 なければ null を返します。

    Declaration
    public Mesh Mesh { get; }
    Property Value
    Type Description
    Mesh

    Name

    ノードの名称を返します。 ゲームエンジン側ではゲームオブジェクトの名称となります。

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    Methods

    AddChildNodeByCppMove(Node)

    子ノードを追加します。 取扱注意: C++の move によって Node を移動するので、 実行後は元の Node は利用不可になります。

    Declaration
    public void AddChildNodeByCppMove(Node node)
    Parameters
    Type Name Description
    Node node

    Create(String)

    Declaration
    public static Node Create(string id)
    Parameters
    Type Name Description
    System.String id
    Returns
    Type Description
    Node

    DebugString(StringBuilderWithIndent)

    Declaration
    public void DebugString(StringBuilderWithIndent sb)
    Parameters
    Type Name Description
    StringBuilderWithIndent sb

    Dispose()

    取扱注意: 通常、Model が廃棄されたときに Node も破棄されるので Dispose() を呼ぶ必要はありません。 Model に属さず、C#側から Create(String) したもののみ Dispose() してください。

    Declaration
    public void Dispose()

    GetChildAt(Int32)

    index 番目の子ノードを返します。

    Declaration
    public Node GetChildAt(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    Node

    MarkInvalid()

    Declaration
    public void MarkInvalid()

    SetMeshByCppMove(Mesh)

    Mesh を Nodeにセットします。 取扱注意: C++の move によって Mesh を移動するので、 実行後は元の Mesh は利用不可になります。

    Declaration
    public void SetMeshByCppMove(Mesh mesh)
    Parameters
    Type Name Description
    Mesh mesh
    In This Article
    Back to top PLATEAU SDK for Unity