Class vCast_Interactables
vCast Interactables.
vCast 交互物。
Inheritance
Namespace: Votanic.vXR.vCast
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vCast_Interactables : MonoBehaviour
Fields
climbSetting
Climb setting.
攀爬設定。
Declaration
[Tooltip("Climb setting.\n攀爬設定。")]
public ClimbSetting climbSetting
Field Value
Type | Description |
---|---|
ClimbSetting |
collisionInteractors
List of colliders of collision type interactors.
碰撞類型交互器的碰撞器列表。
Declaration
[Tooltip("List of colliders of collision type interactors.\n碰撞類型交互器的碰撞器列表。")]
public List<Collider> collisionInteractors
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<UnityEngine.Collider> |
customDuration
Custom interaction required duration of interactables for some interactions.
自定義交互物部份互動的互動所需時間。
Declaration
[Tooltip("Custom interaction required duration of interactables for some interactions.\n自定義交互物部份互動的互動所需時間。")]
public CustomDuration customDuration
Field Value
Type | Description |
---|---|
CustomDuration |
grabbables
The grabble object when the interactables is grabbed.
交互物被抓握時的被抓握物。
Declaration
[HideInInspector]
public Transform grabbables
Field Value
Type | Description |
---|---|
UnityEngine.Transform |
grabSetting
Grab setting.
抓握設定。
Declaration
[Tooltip("Grab setting.\n抓握設定。")]
public GrabSetting grabSetting
Field Value
Type | Description |
---|---|
GrabSetting |
interactableChild
The child can also be interactable without rigidbody.
在沒有剛體的情況下子物件亦可互動。
Declaration
[Tooltip("The child can also be interactable without rigidbody.\n在沒有剛體的情況下子物件亦可互動。")]
public bool interactableChild
Field Value
Type | Description |
---|---|
System.Boolean |
interaction
Interaction setting.
互動設定。
Declaration
[Tooltip("Interaction setting.\n互動設定。")]
public Interaction interaction
Field Value
Type | Description |
---|---|
Interaction |
interactive
Interactive type of interactables.
交互物的可互動類型。
Declaration
[Header("[Settings]")]
[Tooltip("Interactive type of interactables.\n交互物的可互動類型。")]
public Interactive interactive
Field Value
Type | Description |
---|---|
Interactive |
isGrabbed
Return true if the interactables is grabbed.
當交互物被抓握時傳回 true。
Declaration
[Header("[Status]")]
[Tooltip("Return true if the interactables is grabbed.\n當交互物被抓握時傳回 true。")]
public bool isGrabbed
Field Value
Type | Description |
---|---|
System.Boolean |
isPicked
Return true if the interactables is picked.
當交互物被拾起時傳回 true。
Declaration
[Tooltip("Return true if the interactables is picked.\n當交互物被拾起時傳回 true。")]
public bool isPicked
Field Value
Type | Description |
---|---|
System.Boolean |
isSelected
Return true if the interactables is selected.
當交互物被點選時傳回 true。
Declaration
[Tooltip("Return true if the interactables is selected.\n當交互物被點選時傳回 true。")]
public bool isSelected
Field Value
Type | Description |
---|---|
System.Boolean |
setBuiltInLayer
Set built-in interactables layer to interactables and its children if true.
當 true 時為交互物及其子物件設定內建的交互層級。
Declaration
[Tooltip("Set built-in interactables layer to interactables and its children.\n為交互物及其子物件設定內建的交互層級。")]
public bool setBuiltInLayer
Field Value
Type | Description |
---|---|
System.Boolean |
Methods
Drop()
Drop down this interactables. 放下這個交互物。
Declaration
public virtual void Drop()
Grab()
Force grab this interactables by the first trigger or select controller.
由第一個觸動或點選的控制器強制抓握這個交互物。
Declaration
public virtual void Grab()
LateUpdate()
Declaration
[Obfuscation(Exclude = true)]
public virtual void LateUpdate()
OnCollisionEnter(Collision)
Declaration
[Obfuscation(Exclude = true)]
public virtual void OnCollisionEnter(Collision collision)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Collision | collision |
OnCollisionExit(Collision)
Declaration
[Obfuscation(Exclude = true)]
public virtual void OnCollisionExit(Collision collision)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Collision | collision |
OnDestroy()
Declaration
[Obfuscation(Exclude = true)]
public virtual void OnDestroy()
OnTriggerEnter(Collider)
Declaration
[Obfuscation(Exclude = true)]
public virtual void OnTriggerEnter(Collider other)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Collider | other |
OnTriggerExit(Collider)
Declaration
[Obfuscation(Exclude = true)]
public virtual void OnTriggerExit(Collider other)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Collider | other |
Pick()
Pick up this interactables by the first trigger or select controller.
由第一個觸動或點選的控制器拾起這個交互物。
Declaration
public virtual void Pick()
SetGrabbables(Transform)
Set the grabbables of the interactables for grabbling.
設定用於抓握交互物的抓握物。
SetGrabbables(transform)
Declaration
public void SetGrabbables(Transform transform)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform | The grabbed object |
SetParent(Transform)
Set a parent for the interactables.
為交互物設定一個母物件。
SetParent(transform)
Declaration
public void SetParent(Transform transform)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform | Parent transform |
SetParent(Transform, Vector3, Vector3)
Set a parent for the interactables.
為交互物設定一個母物件。
SetParent(transform, Vector3.zero, Vector3.zero)
Declaration
public void SetParent(Transform transform, Vector3 position, Vector3 eulerAngles)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform | Parent transform |
UnityEngine.Vector3 | position | Positon offset |
UnityEngine.Vector3 | eulerAngles | Euler Angles offset |
Start()
Declaration
[Obfuscation(Exclude = true)]
public virtual void Start()
Ungrab()
Force ungrab this interactables. 強制放開這個交互物。
Declaration
public virtual void Ungrab()