Class HandlesBase
Base class for any type of BoundsControl handle.
Handles are used for manipulating the BoundsControl by near or far user interaction.
Assembly: cs.temp.dll.dll
public abstract class HandlesBase : IProximityEffectObjectProvider
Fields
Declaration
protected List<Transform> handles
Field Value
Type |
Description |
List<Transform> |
|
Declaration
protected ProximityObjectsChangedEvent objectsChangedEvent
Field Value
Declaration
protected const string visualsName = "visuals"
Field Value
Properties
Declaration
protected abstract HandlesBaseConfiguration BaseConfig { get; }
Property Value
Declaration
public IReadOnlyList<Transform> Handles { get; }
Property Value
Type |
Description |
IReadOnlyList<Transform> |
|
Declaration
public virtual bool IsActive { get; set; }
Property Value
Methods
Declaration
public void ForEachProximityObject(Action<Transform> action)
Parameters
Type |
Name |
Description |
Action<Transform> |
action |
|
Declaration
public Material GetBaseMaterial()
Returns
Type |
Description |
Material |
|
Declaration
public Material GetHighlightedMaterial()
Returns
Type |
Description |
Material |
|
Declaration
public float GetObjectSize()
Returns
Declaration
protected abstract Transform GetVisual(Transform handle)
Parameters
Type |
Name |
Description |
Transform |
handle |
|
Returns
Type |
Description |
Transform |
|
Declaration
protected abstract void RecreateVisuals()
Declaration
protected void ResetHandles()
Declaration
protected void UpdateBaseMaterial()
Declaration
protected void UpdateColliderBounds()
Declaration
protected abstract void UpdateColliderBounds(Transform handle, Vector3 visualSize)
Parameters
Type |
Name |
Description |
Transform |
handle |
|
Vector3 |
visualSize |
|
Declaration
protected void UpdateGrabbedMaterial()
Explicit Interface Implementations
Declaration
ProximityObjectsChangedEvent IProximityEffectObjectProvider.ProximityObjectsChanged { get; }
Returns
Implements