Search Results for

    Show / Hide Table of Contents

    Property ControlAlias

    ControlAlias

    Name used for localization.

    Declaration
    public string ControlAlias { get; set; }
    Property Value
    Type Description
    String

    String containing the alias used for localization.

    Remarks

    By default the alias should be set by the constructor and modified with the chainable Alias<T>(T, String) method.

    Is up to the controls derived from this class to decide what should be used as default value, just keep in mind that using hardcoded strings means that all instances of that class would share the same localization string unless Alias<T>(T, String) is used in the inspector.

    Controls using a MaterialProperty should use the material property name as alias (which should be done by default if you inherit from PropertyControl and pass the property name to the base constructor), meanwhile controls that do not use a MaterialProperty should include a string in the constructor to pass as alias.

    In This Article
    Back to top Copyright © VRLabs.
    Generated by DocFX