Search Results for

    Show / Hide Table of Contents

    Class VertexStreamsControl

    Control for viewing and setting particle vertex streams used

    Inheritance
    Object
    SimpleControl
    VertexStreamsControl
    Implements
    IAdditionalLocalization
    Namespace: VRLabs.SimpleShaderInspectors.Controls
    Syntax
    public class VertexStreamsControl : SimpleControl, IAdditionalLocalization
    Remarks

    When making particle shaders there may be a need to set the particles vertex streams so that the shader can access the data it needs. Using this control you can easily view which vertex streams are needed and set them in the particle systems that have a material using this shader, in a similar way the standard unity particle shader inspector does.

    Since the control does not use any material property, it requires an alias in order to work.

    Examples

    Example usage:

    this.AddVertexStreamsControl("AliasToUse");

    Constructors

    Name Description
    VertexStreamsControl(String)

    Default constructor of VertexStreamsControl.

    Properties

    Name Description
    AdditionalContent

    Additional localization needed by the control, Implementation required by the IAdditionalLocalization interface.

    Methods

    Name Description
    AddVertexStream(ParticleSystemVertexStream)

    Adds a vertex stream to the list of used streams.

    ControlGUI(MaterialEditor)

    Draws the control represented by this object.

    RemoveVertexStream(ParticleSystemVertexStream)

    Removes a vertex stream from the list of used streams.

    Extension Methods

    Chainables.Alias<T>(T, String)
    Chainables.SetVisibility<T>(T, Boolean)
    Chainables.SetEnabled<T>(T, Boolean)
    AdditionalContentExtensions.InitializeLocalizationWithNames(IAdditionalLocalization, String[])
    In This Article
    Back to top Copyright © VRLabs.
    Generated by DocFX