ActiveAtDistance
Class in Zigurous.Utility
Declaration
public sealed class ActiveAtDistance : MonoBehaviourDescription
Sets another game object to be active or inactive based on the distance to a target transform.
Properties
| rangeType | Whether the object is active or inactive when the target is in range. |
| distanceTarget | The target transform to measure distance from. |
| activatingObject | The object to activate or deactivate. |
| minDistance | The minimum distance for the object to be active. |
| maxDistance | The maximum distance for the object to be active. |
| withinRange | Whether object is currently within the range. |