Class ScriptGraphProcessor
This class processes the processor nodes in the correct order.
Inheritance
System.Object
ScriptGraphProcessor
Syntax
public class ScriptGraphProcessor : object
Properties
AutoDispose
Declaration
public bool AutoDispose { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Disposer
Declaration
public Disposer Disposer { get; set; }
Property Value
Graph
Gets/sets the graph to process.
Declaration
public ScriptGraphGraph Graph { get; set; }
Property Value
InstanceProvider
Declaration
public IInstanceProvider InstanceProvider { get; set; }
Property Value
IsAborted
Declaration
public bool IsAborted { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsMainThreadTimePerFrameLimitEnabled
Declaration
public bool IsMainThreadTimePerFrameLimitEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsMultiThreadingEnabled
Declaration
public bool IsMultiThreadingEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsProcessing
Gets whether the processor is currently processing a graph or not.
Declaration
public bool IsProcessing { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsSeedRandom
Gets/sets whether a random RNG seed is used or the one set in seed property.
Declaration
public bool IsSeedRandom { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Rng
Declaration
Property Value
RngStartState
Declaration
public RngState? RngStartState { get; set; }
Property Value
Type |
Description |
System.Nullable<RngState> |
|
ScriptGraphInstanceProvider
Declaration
public IScriptGraphInstanceProvider ScriptGraphInstanceProvider { get; set; }
Property Value
Seed
Declaration
public int Seed { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
SeedGuid
Declaration
public string SeedGuid { get; set; }
Property Value
Type |
Description |
System.String |
|
SeedType
Declaration
public SeedType SeedType { get; set; }
Property Value
Methods
Cancel()
Declaration
ContainsInParameterId(String)
Declaration
public bool ContainsInParameterId(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Type |
Description |
System.Boolean |
|
FlagInUnconnected(String)
Flags the given in parameter as unconnected.
Declaration
public void FlagInUnconnected(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
The input parameters ID.
|
GetConsumerNodes()
Declaration
public IEnumerable<IConsumerNode> GetConsumerNodes()
Returns
GetInParameterId(String)
Declaration
public string GetInParameterId(string inName)
Parameters
Type |
Name |
Description |
System.String |
inName |
|
Returns
Type |
Description |
System.String |
|
GetInParameterIds()
Declaration
public IEnumerable<string> GetInParameterIds()
Returns
Type |
Description |
IEnumerable<System.String> |
|
GetInParameterName(String)
Declaration
public string GetInParameterName(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Type |
Description |
System.String |
|
GetInParameterType(String)
Declaration
public Type GetInParameterType(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
In(String, Func<Object>)
Set input providers for the given input parameter.
Declaration
public void In(string name, Func<object> value)
Parameters
Type |
Name |
Description |
System.String |
name |
The parameter name.
|
Func<System.Object> |
value |
Input provider.
|
In<T>(String, Func<T>)
Declaration
public void In<T>(string name, Func<T> value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Func<T> |
value |
|
Type Parameters
Process(ScriptGraphGraph)
Processes the given graph.
Declaration
public Dictionary<string, object> Process(ScriptGraphGraph graphToProcess = null)
Parameters
Returns
Type |
Description |
Dictionary<System.String, System.Object> |
The values for each output parameter.
|
SetGraph(ScriptGraphGraph)
Declaration
public void SetGraph(ScriptGraphGraph setGraph)
Parameters
Unprepare()
Declaration
Events
OnProcess
Global event that's called each time a script graph is about to be processed by any script graph processor.
Declaration
public static event Action<ScriptGraphProcessor> OnProcess
Event Type
OnProgress
Declaration
public event Action<int, int> OnProgress
Event Type
Type |
Description |
Action<System.Int32, System.Int32> |
|