Class FractalType<T> | Terrain Tools | 3.0.2-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class FractalType<T>

    A Singleton class used for representing a FractalType implementation. A FractalType class must inherit from this in order to be considered a valid FractalType and included in the noise shader generation and available for use with the various noise tools.

    Inheritance
    Object
    Object
    ScriptableObject
    UnityEditor.ScriptableSingleton<T>
    FractalType<T>
    FbmFractalType
    NoneFractalType
    StrataFractalType
    Inherited Members
    UnityEditor.ScriptableSingleton<T>.Save(System.Boolean)
    UnityEditor.ScriptableSingleton<T>.instance
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: UnityEditor.Experimental.TerrainAPI
    Syntax
    public abstract class FractalType<T> : ScriptableSingleton<T>, IFractalType where T : FractalType<T>
    Type Parameters
    Name Description
    T

    Methods

    DoGUI(String)

    When overidden, renders the GUI for the FractalType implementation using the data provided by the serialized string.

    Declaration
    public virtual string DoGUI(string serializedString)
    Parameters
    Type Name Description
    String serializedString

    A string for the serialized data used by the FractalType implementation

    Returns
    Type Description
    String

    A string for the FractalType implementation's serialized data after having gone through possible changes from user interaction with the GUI

    Implements
    IFractalType.DoGUI(String)

    FromSerializedString(String)

    When overidden, converts a string representing the data for the FractalType implementation into an an actual object reference to be used with said FractalType implementation.

    Declaration
    public virtual object FromSerializedString(string serializedString)
    Parameters
    Type Name Description
    String serializedString

    A string representing a serialized object that is used by the FractalType implementation

    Returns
    Type Description
    Object

    An object deserialized from the provided string

    Implements
    IFractalType.FromSerializedString(String)

    GetDefaultSerializedString()

    When overidden, returns a string that represents the default data state for the FractalType implementation

    Declaration
    public virtual string GetDefaultSerializedString()
    Returns
    Type Description
    String
    Implements
    IFractalType.GetDefaultSerializedString()

    GetDescription()

    Returns a descriptor struct defining the FractalType

    Declaration
    public abstract FractalTypeDescriptor GetDescription()
    Returns
    Type Description
    FractalTypeDescriptor
    Implements
    IFractalType.GetDescription()

    SetupMaterial(Material, String)

    When overidden, sets up a Material to be used with the FractalType implementation. This function is called from within NoiseSettings.SetupMaterial( Material mat )

    Declaration
    public virtual void SetupMaterial(Material mat, string serializedString)
    Parameters
    Type Name Description
    Material mat

    The Material to setup for use with this FractalType implementation

    String serializedString

    The serialized string representing the FractalType data to be used when setting up the provided Material

    Implements
    IFractalType.SetupMaterial(Material, String)

    ToSerializedString(Object)

    When overidden, converts an object representing the data for a FractalType implementation to a string. This is later serialized and stored in a NoiseSettings Asset.

    Declaration
    public virtual string ToSerializedString(object target)
    Parameters
    Type Name Description
    Object target

    The data representation for the FractalType implementation to be converted into a string

    Returns
    Type Description
    String

    The string representation of the provided target object

    Implements
    IFractalType.ToSerializedString(Object)
    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