Format
typescript
ScenePrefab.Instance()class: ScenePrefab
Description
Instantiate a scene object using a scene prefab resource.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
Scene | The instantiated scene entity object. |
Code Example
typescript
let uid = "******";
let prefab = Resources.Load<ScenePrefab>(ScenePrefab, uid);
if(prefab){
let scene = prefab.Instance();
}