Interface IFractalType
Namespace: UnityEditor.Experimental.TerrainAPI
Syntax
public interface IFractalType
Methods
DoGUI(String)
Renders the GUI for the FractalType implementation using the data provided by the serialized string.
Declaration
string DoGUI(string serializedString)
Parameters
Type | Name | Description |
---|---|---|
System.String | serializedString | A string for the serialized data used by the FractalType implementation |
Returns
Type | Description |
---|---|
System.String | A string for the FractalType implementation's serialized data after having gone through possible changes from user interaction with the GUI |
FromSerializedString(String)
Converts a string representing the data for the FractalType implementation into an an actual object reference to be used with said FractalType implementation.
Declaration
object FromSerializedString(string serializedString)
Parameters
Type | Name | Description |
---|---|---|
System.String | serializedString | A string representing a serialized object that is used by the FractalType implementation |
Returns
Type | Description |
---|---|
System.Object | An object deserialized from the provided string |
GetDefaultSerializedString()
Returns a string that represents the default data state for the FractalType implementation
Declaration
string GetDefaultSerializedString()
Returns
Type | Description |
---|---|
System.String |
GetDescription()
Returns a descriptor struct defining the FractalType
Declaration
FractalTypeDescriptor GetDescription()
Returns
Type | Description |
---|---|
FractalTypeDescriptor |
SetupMaterial(Material, String)
Sets up a Material to be used with the FractalType implementation. This function is called from within NoiseSettings.SetupMaterial( Material mat )
Declaration
void SetupMaterial(Material mat, string serializedString)
Parameters
Type | Name | Description |
---|---|---|
Material | mat | The Material to setup for use with this FractalType implementation |
System.String | serializedString | The serialized string representing the FractalType data to be used when setting up the provided Material |
ToSerializedString(Object)
Converts an object representing the data for a FractalType implementation to a string. This is later serialized and stored in a NoiseSettings Asset.
Declaration
string ToSerializedString(object target)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | The data representation for the FractalType implementation to be converted into a string |
Returns
Type | Description |
---|---|
System.String | The string representation of the provided target object |