Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BeforeTemplateInstantiation(SceneTemplateAsset, bool, string)

An event called before the Scene template is instantiated.
Read time 1 minuteLast updated 23 days ago

Definition

void BeforeTemplateInstantiation(SceneTemplateAsset sceneTemplateAsset, bool isAdditive, string sceneName)

Parameters

sceneTemplateAsset

The Scene template Asset to instantiate.

isAdditive

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

sceneName

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