Click or drag to resize

InteractableEngageableDetectionFindEngageableObject Method (Transform, Single, Single)

Gets the closest engageable 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 IEngageableObject FindEngageableObject(
	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: IEngageableObject
Returns the closet EngageableObject to the input transform
See Also