Search Results for

    Show / Hide Table of Contents

    Class GradientTextureControl

    Control that handles a gradient texture with a gradient editor included.

    Inheritance
    Object
    SimpleControl
    PropertyControl
    TextureControl
    GradientTextureControl
    Implements
    IAdditionalProperties
    IAdditionalLocalization
    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.

    Extension Methods

    Chainables.Alias<T>(T, String)
    Chainables.SetVisibility<T>(T, Boolean)
    Chainables.SetEnabled<T>(T, Boolean)
    AdditionalContentExtensions.InitializeLocalizationWithNames(IAdditionalLocalization, String[])
    Chainables.SetGradientButtonStyle<T>(T, GUIStyle)
    Chainables.SetGradientSaveButtonStyle<T>(T, GUIStyle)
    Chainables.SetGradientEditorStyle<T>(T, GUIStyle)
    Chainables.SetGradientButtonColor<T>(T, Color)
    Chainables.SetGradientSaveButtonColor<T>(T, Color)
    Chainables.SetGradientEditorColor<T>(T, Color)
    Chainables.SetShowUvOptions<T>(T, Boolean)
    Chainables.SetHasHDRColor<T>(T, Boolean)
    Chainables.SetUVButtonStyle<T>(T, GUIStyle)
    Chainables.SetUVAreaStyle<T>(T, GUIStyle)
    Chainables.SetUVButtonColor<T>(T, Color)
    Chainables.SetUVAreaColor<T>(T, Color)
    In This Article
    Back to top Copyright © VRLabs.
    Generated by DocFX