UxrCompass.SetTargetTemporary Method (Transform, 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(
Transform target,
UxrCompassDisplayMode displayMode = UxrCompassDisplayMode.OnlyCompass,
float iconScale = 1f
)
Parameters
- target
- Type: Transform
New target or null to stop - 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