Class ResourceExportingModule
- Namespace
- FluffyUnderware.Curvy.Generator.Modules
A CGModule that creates managed resources that can be exported
public abstract class ResourceExportingModule : CGModule
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourDTVersionedMonoBehaviourResourceExportingModule
- Derived
- Inherited Members
Methods
SaveResourceToScene(Component, Transform)
Save a specific resource to the scene as a GameObject
protected abstract GameObject SaveResourceToScene(Component managedResource, Transform newParent)
Parameters
managedResource
ComponentnewParent
Transform
Returns
- GameObject
The saved GameObject
SaveToScene(Transform)
Save the created resource(s) to the scene
public GameObject SaveToScene(Transform parent = null)
Parameters
parent
Transformthe parent transform to which the saved resource(s) GameObject(s) will be attached. If null, saved resource(s) GameObject(s) will be at the hierarchy's root
Returns
- GameObject
The created GameObject