mUIDistanceSwitcher

Summary

Component for switching the active according to the distance to a specific object.

Relation

UnityEngine.MonoBehaviour
mUniSm.Core.IMonoCacheBehaviour

Variable

targetType The target type
TargetType.GameObject The game object
TargetType.Position The position
TargetType.DistanceBase The distance target
targetObject The target object
targetPosition The target position
inverse The inverse

Property

cachedGameObject Reference cache of GameObject
cachedTransform Reference cache of Transform
cachedRectTransform Reference cache of RectTransform
active True if the game object is active It is possible to change the state of the game object by setting bool
distance Gets or sets the distance.

Method

Validate( ) Callback method called when editing values in Unity Editor

Reference