Curvy Generator module base class
Public Attributes | |
List< CGModuleLink > | InputLinks = new List<CGModuleLink>() |
List< CGModuleLink > | OutputLinks = new List<CGModuleLink>() |
CGModuleProperties | Properties = new CGModuleProperties() |
List< string > | UIMessages = new List<string>() |
Properties | |
bool | Active [get, set] |
bool | CircularReferenceError [get, set] |
Whether this module has circular reference errors More... | |
bool | Dirty [get, set] |
CurvyGenerator | Generator [get] |
ModuleInfoAttribute | Info [get] |
List< CGModuleInputSlot > | Input [get] |
Dictionary< string, CGModuleInputSlot > | InputByName [get] |
virtual bool | IsConfigured [get] |
Gets whether the module is properly configured i.e. has everything to work like intended More... | |
virtual bool | IsInitialized [get] |
Gets whether the module and all its dependencies are fully initialized More... | |
string | ModuleName [get, set] |
CurvyCGEvent | OnBeforeRefresh [get, set] |
CurvyCGEvent | OnRefresh [get, set] |
List< CGModuleOutputSlot > | Output [get] |
Dictionary< string, CGModuleOutputSlot > | OutputByName [get] |
bool | RandomizeSeed [get, set] |
If is set to false, Seed is used to initialize Unity's random numbers generator before refreshing the current module. If set to true, a random seed will be used More... | |
int | Seed [get, set] |
If RandomizeSeed is set to false, Seed is used to initialize Unity's random numbers generator before refreshing the If RandomizeSeed is set to true, a random seed will be used current module More... | |
int | UniqueID [get] |
Public Member Functions | |
Component | AddManagedResource (string resourceName, string context="", int index=-1) |
CGModule | CopyTo (CurvyGenerator targetGenerator) |
void | Delete () |
virtual bool | DeleteAllOutputManagedResources () |
Delete all the managed resources acting as an output. One example of this are the generated meshes by the FluffyUnderware.Curvy.Generator.Modules.CreateMesh module More... | |
void | DeleteAllPrefabPools () |
void | DeleteManagedResource (string resourceName, Component res, [NotNull] string context="", bool dontUsePool=false) |
List< IPool > | GetAllPrefabPools () |
CGModuleLink | GetInputLink (CGModuleInputSlot inSlot, CGModuleOutputSlot outSlot) |
List< CGModuleLink > | GetInputLinks (CGModuleInputSlot inSlot) |
CGModuleInputSlot | GetInputSlot (string name) |
List< CGModuleInputSlot > | GetInputSlots (System.Type filterType=null) |
bool | GetManagedResources (out List< Component > components, out List< string > resourceNames) |
CGModuleLink | GetOutputLink (CGModuleOutputSlot outSlot, CGModuleInputSlot inSlot) |
List< CGModuleLink > | GetOutputLinks (CGModuleOutputSlot outSlot) |
CGModuleOutputSlot | GetOutputSlot (string name) |
List< CGModuleOutputSlot > | GetOutputSlots (System.Type filterType=null) |
void | Initialize () |
bool | IsManagedResource (Component res) |
virtual void | OnStateChange () |
Called when a module's state changes (Link added/removed, Active toggles etc..) More... | |
virtual void | OnTemplateCreated () |
Called after a module was copied to a template More... | |
virtual void | Refresh () |
Add Module processing code in here More... | |
void | ReInitializeLinkedSlots () |
virtual void | Reset () |
Protected Member Functions | |
virtual void | Awake () |
CurvyCGEventArgs | OnBeforeRefreshEvent (CurvyCGEventArgs e) |
virtual void | OnDestroy () |
virtual void | OnDisable () |
virtual void | OnEnable () |
CurvyCGEventArgs | OnRefreshEvent (CurvyCGEventArgs e) |
Static Protected Member Functions | |
static T | GetRequestParameter< T > (ref CGDataRequestParameter[] requests) |
Gets a request parameter of a certain type More... | |
static void | RemoveRequestParameter (ref CGDataRequestParameter[] requests, CGDataRequestParameter request) |
Removes a certain request parameter from the requests array More... | |
Component AddManagedResource | ( | string | resourceName, |
string | context = "" , |
||
int | index = -1 |
||
) |
|
protectedvirtual |
CGModule CopyTo | ( | CurvyGenerator | targetGenerator | ) |
void Delete | ( | ) |
|
virtual |
Delete all the managed resources acting as an output. One example of this are the generated meshes by the FluffyUnderware.Curvy.Generator.Modules.CreateMesh module
Reimplemented in CreateMesh, and CreateGameObject.
void DeleteAllPrefabPools | ( | ) |
void DeleteManagedResource | ( | string | resourceName, |
Component | res, | ||
[NotNull] string | context = "" , |
||
bool | dontUsePool = false |
||
) |
List<IPool> GetAllPrefabPools | ( | ) |
CGModuleLink GetInputLink | ( | CGModuleInputSlot | inSlot, |
CGModuleOutputSlot | outSlot | ||
) |
List<CGModuleLink> GetInputLinks | ( | CGModuleInputSlot | inSlot | ) |
CGModuleInputSlot GetInputSlot | ( | string | name | ) |
List<CGModuleInputSlot> GetInputSlots | ( | System.Type | filterType = null | ) |
bool GetManagedResources | ( | out List< Component > | components, |
out List< string > | resourceNames | ||
) |
CGModuleLink GetOutputLink | ( | CGModuleOutputSlot | outSlot, |
CGModuleInputSlot | inSlot | ||
) |
List<CGModuleLink> GetOutputLinks | ( | CGModuleOutputSlot | outSlot | ) |
CGModuleOutputSlot GetOutputSlot | ( | string | name | ) |
List<CGModuleOutputSlot> GetOutputSlots | ( | System.Type | filterType = null | ) |
|
staticprotected |
Gets a request parameter of a certain type
T | Type derived from PCGDataRequestParameter |
requests | reference to the list of request parameters |
T | : | CGDataRequestParameter |
void Initialize | ( | ) |
bool IsManagedResource | ( | Component | res | ) |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
virtual |
Called when a module's state changes (Link added/removed, Active toggles etc..)
Reimplemented in BuildVolumeSpots.
|
virtual |
Called after a module was copied to a template
Use this handle references that can't be templated etc...
Reimplemented in InputMesh, InputGameObject, and InputSplinePath.
|
virtual |
Add Module processing code in here
Reimplemented in CreateMesh, BuildShapeExtrusion, BuildVolumeSpots, BuildVolumeMesh, BuildRasterizedPath, BuildVolumeCaps, CreateGameObject, InputTransformSpots, GameObjectToMesh, DeformMesh, InputSpots, InputGameObject, InputMesh, CreatePathLineRenderer, and ModifierTRSMesh.
void ReInitializeLinkedSlots | ( | ) |
|
staticprotected |
Removes a certain request parameter from the requests array
requests | reference to the requests array |
request | the request to remove |
|
virtual |
Reimplemented in DeformMesh, and DebugRasterizedPath.
List<CGModuleLink> InputLinks = new List<CGModuleLink>() |
List<CGModuleLink> OutputLinks = new List<CGModuleLink>() |
CGModuleProperties Properties = new CGModuleProperties() |
List<string> UIMessages = new List<string>() |
|
getset |
|
getset |
Whether this module has circular reference errors
|
getset |
|
get |
|
get |
|
get |
|
get |
|
get |
Gets whether the module is properly configured i.e. has everything to work like intended
|
get |
Gets whether the module and all its dependencies are fully initialized
|
getset |
|
getset |
|
getset |
|
get |
|
get |
|
getset |
If is set to false, Seed is used to initialize Unity's random numbers generator before refreshing the current module. If set to true, a random seed will be used
|
getset |
If RandomizeSeed is set to false, Seed is used to initialize Unity's random numbers generator before refreshing the If RandomizeSeed is set to true, a random seed will be used current module
|
get |