A wrapper around Unity component
Defines rules by which the ID and Style name of the component are evaluated
Note: the subject of selector is not evaluated here - it is always the full type name
Adapter class should be written per component and extend StyleClientAdapterBase
If style client adapter for the particular component not defined - it will fall back to the default one
Note: The default adapter returns Component.gameObject.name as ID and an empty string as StyleName
Defines rules by which the ID and Style name of the component are evaluated
Note: the subject of selector is not evaluated here - it is always the full type name
Adapter class should be written per component and extend StyleClientAdapterBase
If style client adapter for the particular component not defined - it will fall back to the default one
Note: The default adapter returns Component.gameObject.name as ID and an empty string as StyleName
| C# | Visual Basic | Visual C++ |
public abstract class StyleClientAdapterBase : ISimpleStyleClient
Public MustInherit Class StyleClientAdapterBase _ Implements ISimpleStyleClient
public ref class StyleClientAdapterBase abstract : ISimpleStyleClient
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| StyleClientAdapterBase()()()() | Initializes a new instance of the StyleClientAdapterBase class | |
| Component |
The component to operate with
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
| Id |
The definition of component ID
| |
| Initialize(Component) |
Initializes the adapter (the adapter is reused)
| |
| MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| StyleChanged(String) |
Not used
| |
| StyleName |
The definition of component style name (CSS class)
| |
| ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
| Object | |
| StyleClientAdapterBase | |