C# Class GPUGraph.GraphParamCollection

Show file Open project: heyx3/GPUNoiseForUnity Class Usage Examples

Public Properties

Property Type Description
FloatParams List
Tex2DParams List

Public Methods

Method Description
GraphParamCollection ( Graph g ) : System

Gets all the parameters in the given Graph.

GraphParamCollection ( Graph otherG, GraphParamCollection c ) : System

Gets all parameters from the given collection and recreates them for the given graph.

ParamEditorGUI ( ) : bool

Runs a GUI using EditorGUILayout for these parameters. This GUI can be used to modify each parameter's "default value" fields. Returns whether any values have been changed.

SetParams ( Material m ) : void

Sets the given material to use these parameters, with their default values.

Method Details

GraphParamCollection() public method

Gets all the parameters in the given Graph.
public GraphParamCollection ( Graph g ) : System
g Graph
return System

GraphParamCollection() public method

Gets all parameters from the given collection and recreates them for the given graph.
public GraphParamCollection ( Graph otherG, GraphParamCollection c ) : System
otherG Graph
c GraphParamCollection
return System

ParamEditorGUI() public method

Runs a GUI using EditorGUILayout for these parameters. This GUI can be used to modify each parameter's "default value" fields. Returns whether any values have been changed.
public ParamEditorGUI ( ) : bool
return bool

SetParams() public method

Sets the given material to use these parameters, with their default values.
public SetParams ( Material m ) : void
m UnityEngine.Material
return void

Property Details

FloatParams public property

public List FloatParams
return List

Tex2DParams public property

public List Tex2DParams
return List