Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AfterTemplateInstantiation(SceneTemplateAsset, Scene, bool, string)

An event called after the Scene template is instantiated, and while the new scene is still loaded.
Read time 1 minuteLast updated 22 days ago

Definition

void AfterTemplateInstantiation(SceneTemplateAsset sceneTemplateAsset, Scene scene, bool isAdditive, string sceneName)

Parameters

sceneTemplateAsset

The Scene template asset to instantiate.

scene

The newly created Scene.

isAdditive

When set to true, the new Scene is created in additive mode.

sceneName

The path to the newly created Scene. If the template you instantiated does not have any cloneable dependencies, this can be empty.