Class SubSceneHelper
Inheritance
SubSceneHelper
Syntax
public class SubSceneHelper : object
Methods
AddSubSceneToParentScene(Scene, Scene)
Declaration
public static SubScene AddSubSceneToParentScene(Scene parentScene, Scene subScene)
Parameters
| Type |
Name |
Description |
| Scene |
parentScene |
|
| Scene |
subScene |
|
Returns
| Type |
Description |
| SubScene |
|
CreateEmptyScene(String, String)
Declaration
public static Scene CreateEmptyScene(string scenePath, string name)
Parameters
Returns
CreatePrefab(String, GameObject)
Declaration
public static GameObject CreatePrefab(string path, GameObject go)
Parameters
| Type |
Name |
Description |
| String |
path |
|
| GameObject |
go |
|
Returns
| Type |
Description |
| GameObject |
|
CreatePrefabVariant(GameObject, String)
Declaration
public static GameObject CreatePrefabVariant(GameObject prefab, string variantName = null)
Parameters
| Type |
Name |
Description |
| GameObject |
prefab |
|
| String |
variantName |
|
Returns
| Type |
Description |
| GameObject |
|
CreateSimplePrefab(String, String, System.Type[])
Declaration
public static GameObject CreateSimplePrefab(string path, string name, params System.Type[] componentTypes)
Parameters
| Type |
Name |
Description |
| String |
path |
|
| String |
name |
|
| System.Type[] |
componentTypes |
|
Returns
| Type |
Description |
| GameObject |
|
CreateSubScene(String, String, Int32, Int32, GameObject, Vector3)
Declaration
public static Scene CreateSubScene(string scenePath, string subSceneName, int numRows, int numCols, GameObject prefab, Vector3 startOffsets)
Parameters
| Type |
Name |
Description |
| String |
scenePath |
|
| String |
subSceneName |
|
| Int32 |
numRows |
|
| Int32 |
numCols |
|
| GameObject |
prefab |
|
| Vector3 |
startOffsets |
|
Returns
CreateSubSceneWithPrefabs(String, String, GameObject[], Int32, Single)
Declaration
public static Scene CreateSubSceneWithPrefabs(string scenePath, string subSceneName, GameObject[] prefabs, int countPerPrefabs, float startZOffset = 0F)
Parameters
| Type |
Name |
Description |
| String |
scenePath |
|
| String |
subSceneName |
|
| GameObject[] |
prefabs |
|
| Int32 |
countPerPrefabs |
|
| Single |
startZOffset |
|
Returns
LoadSubScene(World, SubScene[])
Declaration
public static void LoadSubScene(World world, params SubScene[] subScenes)
Parameters
| Type |
Name |
Description |
| World |
world |
|
| SubScene[] |
subScenes |
|
LoadSubSceneAsync(World, in NetCodeTestWorld, UnityEngine.Hash128, Single, Int32)
Declaration
public static Entity LoadSubSceneAsync(World world, in NetCodeTestWorld testWorld, UnityEngine.Hash128 subSceneGUID, float frameTime, int maxTicks)
Parameters
Returns
LoadSubSceneInWorlds(in NetCodeTestWorld, SubScene[])
Declaration
public static void LoadSubSceneInWorlds(in NetCodeTestWorld testWorld, params SubScene[] subScenes)
Parameters
ResolveScenes(NetCodeTestWorld, Single, Int32, SubScene[])
Declaration
public static void ResolveScenes(NetCodeTestWorld testWorld, float frameTime, int maxTicks, params SubScene[] subScenes)
Parameters