Class SceneTemplatePipelineAdapter
Adapter implementing all the function of ISceneTemplatePipeline for easier usage.
Implements
Inherited Members
Namespace: Global Namespace
Assembly: solution.dll
Syntax
public class SceneTemplatePipelineAdapter : ISceneTemplatePipeline
Methods
AfterTemplateInstantiation(SceneTemplateAsset, Scene, bool, string)
Event called after the template is instantiated and the new scene is still loaded.
Declaration
public virtual void AfterTemplateInstantiation(SceneTemplateAsset sceneTemplateAsset, Scene scene, bool isAdditive, string sceneName)
Parameters
Type | Name | Description |
---|---|---|
SceneTemplateAsset | sceneTemplateAsset | Scene Template asset that will be instantiated |
Scene | scene | The newly created scene |
bool | isAdditive | Is the new scene created in additive mode. |
string | sceneName | What is the path of the new scene (could be empty if untitled) |
BeforeTemplateInstantiation(SceneTemplateAsset, bool, string)
Event called before the template is instantiated.
Declaration
public virtual void BeforeTemplateInstantiation(SceneTemplateAsset sceneTemplateAsset, bool isAdditive, string sceneName)
Parameters
Type | Name | Description |
---|---|---|
SceneTemplateAsset | sceneTemplateAsset | Scene Template asset that will be instantiated |
bool | isAdditive | Is the new scene created in additive mode. |
string | sceneName | What is the path of the new scene (could be empty if untitled) |
IsValidTemplateForInstantiation(SceneTemplateAsset)
Event called before we display the New Template Dialog to determine if this template should be available to user.
Declaration
public virtual bool IsValidTemplateForInstantiation(SceneTemplateAsset sceneTemplateAsset)
Parameters
Type | Name | Description |
---|---|---|
SceneTemplateAsset | sceneTemplateAsset | Scene Template asset that would be avauilable in New Scene Dialog |
Returns
Type | Description |
---|---|
bool |