Class RenderModel
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
RenderModel
Inherited Members
UnityEngine.MonoBehaviour.Invoke(System.String, System.Single)
UnityEngine.MonoBehaviour.InvokeRepeating(System.String, System.Single, System.Single)
UnityEngine.MonoBehaviour.CancelInvoke()
UnityEngine.MonoBehaviour.CancelInvoke(System.String)
UnityEngine.MonoBehaviour.IsInvoking(System.String)
UnityEngine.MonoBehaviour.IsInvoking()
UnityEngine.MonoBehaviour.StartCoroutine(System.Collections.IEnumerator)
UnityEngine.MonoBehaviour.StartCoroutine_Auto(System.Collections.IEnumerator)
UnityEngine.MonoBehaviour.StartCoroutine(System.String, System.Object)
UnityEngine.MonoBehaviour.StartCoroutine(System.String)
UnityEngine.MonoBehaviour.StopCoroutine(System.String)
UnityEngine.MonoBehaviour.StopCoroutine(System.Collections.IEnumerator)
UnityEngine.MonoBehaviour.StopCoroutine(UnityEngine.Coroutine)
UnityEngine.MonoBehaviour.StopAllCoroutines()
UnityEngine.MonoBehaviour.print(System.Object)
UnityEngine.MonoBehaviour.useGUILayout
UnityEngine.Behaviour.enabled
UnityEngine.Behaviour.isActiveAndEnabled
UnityEngine.Component.GetComponent(System.Type)
UnityEngine.Component.GetComponent<T>()
UnityEngine.Component.GetComponent(System.String)
UnityEngine.Component.GetComponentInChildren(System.Type, System.Boolean)
UnityEngine.Component.GetComponentInChildren(System.Type)
UnityEngine.Component.GetComponentInChildren<T>()
UnityEngine.Component.GetComponentInChildren<T>(System.Boolean)
UnityEngine.Component.GetComponentsInChildren(System.Type)
UnityEngine.Component.GetComponentsInChildren(System.Type, System.Boolean)
UnityEngine.Component.GetComponentsInChildren<T>(System.Boolean)
UnityEngine.Component.GetComponentsInChildren<T>(System.Boolean, System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponentsInChildren<T>()
UnityEngine.Component.GetComponentsInChildren<T>(System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponentInParent(System.Type)
UnityEngine.Component.GetComponentInParent<T>()
UnityEngine.Component.GetComponentsInParent(System.Type)
UnityEngine.Component.GetComponentsInParent(System.Type, System.Boolean)
UnityEngine.Component.GetComponentsInParent<T>(System.Boolean)
UnityEngine.Component.GetComponentsInParent<T>(System.Boolean, System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponentsInParent<T>()
UnityEngine.Component.GetComponents(System.Type)
UnityEngine.Component.GetComponents(System.Type, System.Collections.Generic.List<UnityEngine.Component>)
UnityEngine.Component.GetComponents<T>(System.Collections.Generic.List<T>)
UnityEngine.Component.GetComponents<T>()
UnityEngine.Component.CompareTag(System.String)
UnityEngine.Component.SendMessageUpwards(System.String, System.Object, UnityEngine.SendMessageOptions)
UnityEngine.Component.SendMessageUpwards(System.String, System.Object)
UnityEngine.Component.SendMessageUpwards(System.String)
UnityEngine.Component.SendMessageUpwards(System.String, UnityEngine.SendMessageOptions)
UnityEngine.Component.SendMessage(System.String, System.Object, UnityEngine.SendMessageOptions)
UnityEngine.Component.SendMessage(System.String, System.Object)
UnityEngine.Component.SendMessage(System.String)
UnityEngine.Component.SendMessage(System.String, UnityEngine.SendMessageOptions)
UnityEngine.Component.BroadcastMessage(System.String, System.Object, UnityEngine.SendMessageOptions)
UnityEngine.Component.BroadcastMessage(System.String, System.Object)
UnityEngine.Component.BroadcastMessage(System.String)
UnityEngine.Component.BroadcastMessage(System.String, UnityEngine.SendMessageOptions)
UnityEngine.Component.transform
UnityEngine.Component.gameObject
UnityEngine.Component.tag
UnityEngine.Component.rigidbody
UnityEngine.Component.rigidbody2D
UnityEngine.Component.camera
UnityEngine.Component.light
UnityEngine.Component.animation
UnityEngine.Component.constantForce
UnityEngine.Component.renderer
UnityEngine.Component.audio
UnityEngine.Component.guiText
UnityEngine.Component.networkView
UnityEngine.Component.guiElement
UnityEngine.Component.guiTexture
UnityEngine.Component.collider
UnityEngine.Component.collider2D
UnityEngine.Component.hingeJoint
UnityEngine.Component.particleEmitter
UnityEngine.Component.particleSystem
UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.ToString()
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(System.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Valve.VR.InteractionSystem
Assembly: Assembly-CSharp.dll
Syntax
public class RenderModel : MonoBehaviour
Fields
animatorParameterStateName
Declaration
protected string animatorParameterStateName
Field Value
Type | Description |
---|---|
System.String |
controllerInstance
Declaration
protected GameObject controllerInstance
Field Value
Type | Description |
---|---|
UnityEngine.GameObject |
controllerPrefab
Declaration
[Space]
public GameObject controllerPrefab
Field Value
Type | Description |
---|---|
UnityEngine.GameObject |
controllerRenderers
Declaration
protected Renderer[] controllerRenderers
Field Value
Type | Description |
---|---|
UnityEngine.Renderer[] |
controllerRenderModel
Declaration
protected SteamVR_RenderModel controllerRenderModel
Field Value
Type | Description |
---|---|
SteamVR_RenderModel |
delayedSetMaterial
Declaration
protected Material delayedSetMaterial
Field Value
Type | Description |
---|---|
UnityEngine.Material |
displayControllerByDefault
Declaration
public bool displayControllerByDefault
Field Value
Type | Description |
---|---|
System.Boolean |
displayHandByDefault
Declaration
public bool displayHandByDefault
Field Value
Type | Description |
---|---|
System.Boolean |
handAnimator
Declaration
protected Animator handAnimator
Field Value
Type | Description |
---|---|
UnityEngine.Animator |
handAnimatorStateId
Declaration
protected int handAnimatorStateId
Field Value
Type | Description |
---|---|
System.Int32 |
handInstance
Declaration
protected GameObject handInstance
Field Value
Type | Description |
---|---|
UnityEngine.GameObject |
handPrefab
Declaration
public GameObject handPrefab
Field Value
Type | Description |
---|---|
UnityEngine.GameObject |
handRenderers
Declaration
protected Renderer[] handRenderers
Field Value
Type | Description |
---|---|
UnityEngine.Renderer[] |
handSkeleton
Declaration
protected SteamVR_Behaviour_Skeleton handSkeleton
Field Value
Type | Description |
---|---|
SteamVR_Behaviour_Skeleton |
inputSource
Declaration
protected SteamVR_Input_Sources inputSource
Field Value
Type | Description |
---|---|
SteamVR_Input_Sources |
renderModelLoadedAction
Declaration
protected SteamVR_Events.Action renderModelLoadedAction
Field Value
Type | Description |
---|---|
SteamVR_Events.Action |
Properties
GetSkeletonRangeOfMotion
Declaration
public EVRSkeletalMotionRange GetSkeletonRangeOfMotion { get; }
Property Value
Type | Description |
---|---|
EVRSkeletalMotionRange |
Methods
Awake()
Declaration
protected void Awake()
DestroyHand()
Declaration
protected virtual void DestroyHand()
GetBone(Int32)
Declaration
public Transform GetBone(int boneIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | boneIndex |
Returns
Type | Description |
---|---|
UnityEngine.Transform |
GetBonePosition(Int32, Boolean)
Declaration
public Vector3 GetBonePosition(int boneIndex, bool local = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | boneIndex | |
System.Boolean | local |
Returns
Type | Description |
---|---|
UnityEngine.Vector3 |
GetBoneRotation(Int32, Boolean)
Declaration
public Quaternion GetBoneRotation(int boneIndex, bool local = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | boneIndex | |
System.Boolean | local |
Returns
Type | Description |
---|---|
UnityEngine.Quaternion |
GetControllerPosition(String)
Declaration
public Vector3 GetControllerPosition(string componentName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | componentName |
Returns
Type | Description |
---|---|
UnityEngine.Vector3 |
GetHandPosition()
Declaration
public Vector3 GetHandPosition()
Returns
Type | Description |
---|---|
UnityEngine.Vector3 |
GetHandRotation()
Declaration
public Quaternion GetHandRotation()
Returns
Type | Description |
---|---|
UnityEngine.Quaternion |
GetSkeleton()
Declaration
public SteamVR_Behaviour_Skeleton GetSkeleton()
Returns
Type | Description |
---|---|
SteamVR_Behaviour_Skeleton |
Hide()
Declaration
public void Hide()
InitializeController()
Declaration
protected void InitializeController()
InitializeHand()
Declaration
protected void InitializeHand()
IsControllerVisibile()
Declaration
public bool IsControllerVisibile()
Returns
Type | Description |
---|---|
System.Boolean |
IsHandVisibile()
Declaration
public bool IsHandVisibile()
Returns
Type | Description |
---|---|
System.Boolean |
MatchHandToTransform(Transform)
Declaration
public void MatchHandToTransform(Transform match)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | match |
OnDestroy()
Declaration
protected void OnDestroy()
OnDisable()
Declaration
protected void OnDisable()
OnEnable()
Declaration
protected void OnEnable()
OnHandInitialized(Int32)
Declaration
public virtual void OnHandInitialized(int deviceIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | deviceIndex |
OnSkeletonActiveChange(SteamVR_Action_Skeleton, Boolean)
Declaration
protected virtual void OnSkeletonActiveChange(SteamVR_Action_Skeleton changedAction, bool newState)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Action_Skeleton | changedAction | |
System.Boolean | newState |
ResetTemporarySkeletonRangeOfMotion(Single)
Declaration
public void ResetTemporarySkeletonRangeOfMotion(float blendOverSeconds = 0.1F)
Parameters
Type | Name | Description |
---|---|---|
System.Single | blendOverSeconds |
SetAnimationState(Int32)
Declaration
public void SetAnimationState(int stateValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | stateValue |
SetControllerMaterial(Material)
Declaration
public void SetControllerMaterial(Material material)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Material | material |
SetControllerVisibility(Boolean, Boolean)
Declaration
public void SetControllerVisibility(bool state, bool permanent = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | state | |
System.Boolean | permanent |
SetHandMaterial(Material)
Declaration
public void SetHandMaterial(Material material)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Material | material |
SetHandPosition(Vector3)
Declaration
public void SetHandPosition(Vector3 newPosition)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | newPosition |
SetHandRotation(Quaternion)
Declaration
public void SetHandRotation(Quaternion newRotation)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Quaternion | newRotation |
SetHandVisibility(Boolean, Boolean)
Declaration
public void SetHandVisibility(bool state, bool permanent = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | state | |
System.Boolean | permanent |
SetInputSource(SteamVR_Input_Sources)
Declaration
public virtual void SetInputSource(SteamVR_Input_Sources newInputSource)
Parameters
Type | Name | Description |
---|---|---|
SteamVR_Input_Sources | newInputSource |
SetMaterial(Material)
Declaration
public virtual void SetMaterial(Material material)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Material | material |
SetSkeletonRangeOfMotion(EVRSkeletalMotionRange, Single)
Declaration
public void SetSkeletonRangeOfMotion(EVRSkeletalMotionRange newRangeOfMotion, float blendOverSeconds = 0.1F)
Parameters
Type | Name | Description |
---|---|---|
EVRSkeletalMotionRange | newRangeOfMotion | |
System.Single | blendOverSeconds |
SetTemporarySkeletonRangeOfMotion(SkeletalMotionRangeChange, Single)
Declaration
public void SetTemporarySkeletonRangeOfMotion(SkeletalMotionRangeChange temporaryRangeOfMotionChange, float blendOverSeconds = 0.1F)
Parameters
Type | Name | Description |
---|---|---|
SkeletalMotionRangeChange | temporaryRangeOfMotionChange | |
System.Single | blendOverSeconds |
SetVisibility(Boolean, Boolean)
Declaration
public void SetVisibility(bool state, bool overrideDefault = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | state | |
System.Boolean | overrideDefault |
Show(Boolean)
Declaration
public void Show(bool overrideDefault = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | overrideDefault |
StopAnimation()
Declaration
public void StopAnimation()
Events
onControllerLoaded
Declaration
public event Action onControllerLoaded
Event Type
Type | Description |
---|---|
System.Action |