docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SceneTemplatePipelineAdapter

    Adapter implementing all the function of ISceneTemplatePipeline for easier usage.

    Inheritance
    object
    SceneTemplatePipelineAdapter
    Implements
    ISceneTemplatePipeline
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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

    Implements

    ISceneTemplatePipeline
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)