The component will take the provided colliderRef and use it to implement and IGraphicsBounds interface. the colliderRef member is initialized with the first collider component found on the same GameObject as this component. It provides the ability to get a local bounds value, that optionally, encapsulates any IGraphicsBounds found as descendants in the scene hierarchy.
|
bool | boundsIncludesDecendants |
| When true, bounds will encapsulate all IGraphicsBounds descendants, of this object, in the scene hierarchy.
|
|
Collider | colliderRef |
| Specifies which collider to provide an IGraphicsBounds interface for.
|
|
|
virtual Bounds | GetLocalBounds () |
| Specifically used to get the bounds of the referenced collider only. Descendants are never included.
|
|
virtual void | Reset () |
| Resetting the component will for an update of collierRef. It will attempt to find the component on the same object, and assign that. If not found, the collider Ref will be set to null.
|
|
|
virtual Bounds | bounds [get] |
| Returns the bounds of the specified collider, and if boundsIncludesDecendants is true, the bounds will also encapsulate any descendants that implement the IGraphicsBounds interface.
|
|
Bounds | bounds [get] |
| local bounds of object.
|
|
Transform | transform [get] |
| reference to the Transform of this object. Used when providing the bounds relative to another transform in the hierarchy.
|
|