Class Node
Class of Node element of VotanicXR.
VotanicXR 的節點元素類別。
Inherited Members
Namespace: Votanic.vXR.vCast.Core
Assembly: Votanic.vXR.dll
Syntax
public class Node : Element
Constructors
Node(String, Transform, GameObject)
Declare the Node.
宣告節點。
Declaration
public Node(string name, Transform parent, GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Node name |
UnityEngine.Transform | parent | Parent of Node |
UnityEngine.GameObject | gameObject | GameObject of Node |
Node(String, Transform, Transform)
Declare the Node.
宣告節點。
Declaration
public Node(string name, Transform parent, Transform transform)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Node name |
UnityEngine.Transform | parent | Parent of Node |
UnityEngine.Transform | transform | Transform of Node |
Properties
defaultEulerAngles
Default euler angles.
預設角度。
Declaration
public Vector3 defaultEulerAngles { get; protected set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
defaultPosition
Default position.
預設位置。
Declaration
public Vector3 defaultPosition { get; protected set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
gameObject
GameObject of Node.
節點的 GameObject。
Declaration
public GameObject gameObject { get; protected set; }
Property Value
Type | Description |
---|---|
UnityEngine.GameObject |
parent
Parent of Node.
節點的母物件。
Declaration
public Transform parent { get; protected set; }
Property Value
Type | Description |
---|---|
UnityEngine.Transform |
transform
Transform of Node.
節點的 Transform。
Declaration
public Transform transform { get; protected set; }
Property Value
Type | Description |
---|---|
UnityEngine.Transform |
Methods
SetParent(String)
Set an object as the parent of entity.
設定實體的母物件。
SetParent("Parent")
Declaration
public void SetParent(string parent)
Parameters
Type | Name | Description |
---|---|---|
System.String | parent | Name of parent |
SetParent(Transform)
Set an object as the parent of entity.
設定實體的母物件。
SetParent(transform)
Declaration
public void SetParent(Transform parent)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | parent | Transform of parent |