NearInteractionTouchable.SetTouchableCollider(BoxCollider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adjust the bounds, local center and local forward to match a given box collider. This method also changes the size of the box collider attached to the gameObject. Default Behavior: if touchableCollider is null at runtime, the object's box collider will be used to size and place the NearInteractionTouchable plane in front of the gameObject
public:
void SetTouchableCollider(UnityEngine::BoxCollider ^ newCollider);
public void SetTouchableCollider (UnityEngine.BoxCollider newCollider);
member this.SetTouchableCollider : UnityEngine.BoxCollider -> unit
Public Sub SetTouchableCollider (newCollider As BoxCollider)
Parameters
- newCollider
- UnityEngine.BoxCollider