UxrCompass.SetTargetTemporary Method (Vector3, UxrCompassDisplayMode, Single)
Sets the current target. When the object gets into sight it will show the icon described by displayMode during a limited amount of time (TemporaryDurationSeconds). The timer is reset each time the object gets out of sight.
Namespace: UltimateXR.Guides
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public void SetTargetTemporary(
Vector3 position,
UxrCompassDisplayMode displayMode = UxrCompassDisplayMode.OnlyCompass,
float iconScale = 1f
)
Parameters
- position
- Type: Vector3
The target position - displayMode (Optional)
- Type: UltimateXR.Guides.UxrCompassDisplayMode
The display mode - iconScale (Optional)
- Type: System.Single
The icon size multiplier
See Also
Reference
UxrCompass Class
SetTargetTemporary Overload
UltimateXR.Guides Namespace