TextMeshToViewableColorInterfaceAdapter Class Reference

This class provides a way to access a Unity TextMesh via some of the IGraphics interfaces: IGraphicsColorInterface and IGraphicsViewable

Public Attributes

bool isViewableIncludesDecendants
 Specified weather the isViewable member will check descendants for view ability.
 

Protected Member Functions

virtual void OnEnable ()
 Initializes cashed renderer and textMesh references, in not already assigned.
 

Properties

virtual Color color [get, set]
 Color to be assigned to the TextMesh. If the color adapter is not enabled, changing this value will have no effect.
 
virtual bool colorInterfaceEnabled [get, set]
 specifies weather the color specified via this interface should be displayed, or not.
 
virtual bool isViewable [get, set]
 Return true if the rendererRef is enabled. Not affected by weather or not the object is actually visible by any camera. Setting this value will set the state of the refererRef. When isViewableIncludesDecendants is true; the getter will return true if ANY descendant IGraphicsViewable, or this object isViewable. And the setter will set the rendererRef enabled state for ALL descendant IGraphicsViewable components.
 
MeshRenderer OutputMeshRenderer [get, set]
 
TextMesh TextMeshToAdapt [get, set]
 
- Properties inherited from IGraphicsColorInterface
Color color [get, set]
 Accessor that stores and retries the color itself.
 
bool colorInterfaceEnabled [get, set]
 When set to false, the color is not actually changed.
 
- Properties inherited from IGraphicsViewable
bool isViewable [get, set]
 Accessor used to set/get the current isViewable state.
 
+ Inheritance diagram for TextMeshToViewableColorInterfaceAdapter:
+ Collaboration diagram for TextMeshToViewableColorInterfaceAdapter: