Click or drag to resize

InteractableEngageableDetectionFindEngageableObject Method (Transform, Single, Single, Boolean)

Gets the closest engageable object to a transform

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public static IEngageableObject FindEngageableObject(
	UnityEngine.Transform target,
	float maxDistance,
	out float distance,
	bool verboseLogging
)

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)
verboseLogging
Type: SystemBoolean
Enable verbose logging

Return Value

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