Modifica

Condividi tramite


NearInteractionTouchable.SetTouchableCollider(BoxCollider) Method

Definition

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

Applies to