PowerUI.Css.Properties.ShaderFamily Class Reference

Detailed Description

Represents the shader-family: css property. This can be used to assign custom shaders. Note that it's a "family" because there is a group of shaders which can potentially be used depending on other CSS settings (e.g. lit and unlit). Each shader must be named e.g:

FamilyName Unlit

  • The main shader most commonly used. Required.

FamilyName Isolated

  • The fallback shader when no others are suitable. Required.

FamilyName Lit

  • Optional. Lit variant.

Note that you should also put shaders in Resources so Unity doesn't accidentally remove them from your project.

Inheritance diagram for PowerUI.Css.Properties.ShaderFamily:
PowerUI.Css.CssProperty

Public Member Functions

 ShaderFamily ()
 
override string[] GetProperties ()
 The set of all properties that this one will handle. Usually just one. e.g. "v-align", "vertical-align". More...
 
override void Apply (ComputedStyle style, Value value)
 Apply this CSS style to the given computed style. Note that you can grab the element from the computed style if you need that. More...
 
- Public Member Functions inherited from PowerUI.Css.CssProperty
virtual void SetDefault (Css.Value value, ValueType type)
 Sets the default value for this property into the given value. More...
 
BackgroundImage GetBackground (ComputedStyle style)
 Call this if the current property requires a background image object. More...
 
BorderProperty GetBorder (ComputedStyle style)
 Call this if the current property requies a border object. More...
 
TextRenderingProperty GetText (ComputedStyle style)
 Call this if the current property requires a text object. NOTE: This one may be null. More...
 

Additional Inherited Members

- Public Attributes inherited from PowerUI.Css.CssProperty
string Name
 The main property name. Some properties use multiple names (e.g. content and inner-text). More...
 
bool IsTextual
 Does this css property apply to text? E.g. font-size, color etc. More...
 
bool IsXProperty
 True if this property occurs along the x axis. E.g. width, left, right. More...
 
bool IsWidthOrHeight
 True if this is width or height only. More...
 
ValueType Type =ValueType.Null
 The optional type of this property, if it defines it. More...
 

Constructor & Destructor Documentation

PowerUI.Css.Properties.ShaderFamily.ShaderFamily ( )
inline

Member Function Documentation

override void PowerUI.Css.Properties.ShaderFamily.Apply ( ComputedStyle  style,
Value  value 
)
inlinevirtual

Apply this CSS style to the given computed style. Note that you can grab the element from the computed style if you need that.

Parameters
styleThe computed style to apply the property to.
valueThe new value being applied.

Reimplemented from PowerUI.Css.CssProperty.

override string [] PowerUI.Css.Properties.ShaderFamily.GetProperties ( )
inlinevirtual

The set of all properties that this one will handle. Usually just one. e.g. "v-align", "vertical-align".

Reimplemented from PowerUI.Css.CssProperty.