Class GradientTextureControl
Control that handles a gradient texture with a gradient editor included.
Namespace: VRLabs.SimpleShaderInspectors.Controls
Syntax
public class GradientTextureControl : TextureControl, IAdditionalProperties, IAdditionalLocalization
Remarks
This advanced control is a TextureControl specialized for gradient textures. It embeds an editor for generating or modifying gradients into textures, enabling the user to create and previewing gradients in real time without leaving the inspector.
It can also include a color property.
Examples
Example usage:
this.AddGradientTextureControl("_exampleGradientTexture", "_ExampleColor");
Constructors
| Name | Description |
|---|---|
| GradientTextureControl(String, String) | Default constructor. |
Properties
| Name | Description |
|---|---|
| AdditionalContent | Implementation of IAdditionalLocalization for the additional localization strings. |
| GradientButtonColor | Background color used to display the gradient editor button. |
| GradientButtonStyle | Style used to display the gradient editor button. |
| GradientEditorColor | Background color used to display the gradient editor background. |
| GradientEditorStyle | Style used to display the gradient editor background. |
| GradientSaveButtonColor | Background color used to display the gradient editor save button. |
| GradientSaveButtonStyle | Style used to display the gradient editor save button. |
Methods
| Name | Description |
|---|---|
| ControlGUI(MaterialEditor) | Draws the control represented by this object. |