Class NoiseSettingsGUI | Terrain Tools | 3.0.2-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class NoiseSettingsGUI

    Class used to draw the GUI for Noise Settings.

    Inheritance
    Object
    NoiseSettingsGUI
    Namespace: UnityEditor.Experimental.TerrainAPI
    Syntax
    public class NoiseSettingsGUI

    Fields

    serializedNoise

    The SerializedObject for the NoiseSettings that this NoiseSettingsGUI instance is currently rendering the GUI for.

    Declaration
    public SerializedObject serializedNoise
    Field Value
    Type Description
    SerializedObject

    target

    The current NoiseSettings object that is associated with this instance of NoiseSettingsGUI.

    Declaration
    public NoiseSettings target
    Field Value
    Type Description
    NoiseSettings

    Methods

    DrawPreviewTexture(Single, Boolean)

    Renders an interactive Noise Preview along with tooltip icons and an optional Export button that opens a new ExportNoiseWindow. A background image is also rendered behind the preview that takes up the entire width of the EditorWindow currently being drawn.

    Declaration
    public void DrawPreviewTexture(float minSize, bool showExportButton = true)
    Parameters
    Type Name Description
    Single minSize

    Minimum size for the Preview

    Boolean showExportButton

    Whether or not to render the Export button

    Init(NoiseSettings)

    Sets up this instance of NoiseSettingsGUI with the specified NoiseSettings object. GUI will be drawn for this NoiseSettings instance.

    Declaration
    public void Init(NoiseSettings noiseSettings)
    Parameters
    Type Name Description
    NoiseSettings noiseSettings

    The NoiseSettings instance for which GUI will be drawn

    Init(SerializedObject)

    Sets up this instance of NoiseSettingsGUI with the specified SerializedObject containing an object reference to a NoiseSettings instance. GUI will be drawn for this serialized NoiseSettings instance.

    Declaration
    public void Init(SerializedObject serializedNoise)
    Parameters
    Type Name Description
    SerializedObject serializedNoise

    A SerializedObject instance containing an object reference to a NoiseSettings object

    OnGUI(NoiseSettingsGUIFlags)

    Renders the GUI for the NoiseSettings instance associated with this NoiseSettingsGUI instance.

    Declaration
    public void OnGUI(NoiseSettingsGUIFlags flags = NoiseSettingsGUIFlags.All)
    Parameters
    Type Name Description
    NoiseSettingsGUIFlags flags

    Flags specifying which portions of the GUI to draw

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023