Click or drag to resize

InteractableEngageableDetectionFindInteractableObject Method (Transform, Single, Single)

Gets the closest interactable object to a transform

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public static IInteractableObject FindInteractableObject(
	UnityEngine.Transform target,
	float maxDistance,
	out float distance
)

Parameters

target
Type: UnityEngine.Transform
Target transform
maxDistance
Type: SystemSingle
Maximum distance to search
distance
Type: SystemSingle
The distance to the object returned (if applicable)

Return Value

Type: IInteractableObject
Returns the closet EngageableObject to the input transform
See Also