docs.unity3d.com
    Show / Hide Table of Contents

    Class SubSceneHelper

    Inheritance
    Object
    SubSceneHelper
    Namespace: Unity.NetCode.PrespawnTests
    Syntax
    public class SubSceneHelper

    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
    Type Name Description
    String scenePath
    String name
    Returns
    Type Description
    Scene

    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, Type[])

    Declaration
    public static GameObject CreateSimplePrefab(string path, string name, params Type[] componentTypes)
    Parameters
    Type Name Description
    String path
    String name
    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
    Type Description
    Scene

    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
    Type Description
    Scene

    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, Hash128, Single, Int32)

    Declaration
    public static Entity LoadSubSceneAsync(World world, in NetCodeTestWorld testWorld, Hash128 subSceneGUID, float frameTime, int maxTicks)
    Parameters
    Type Name Description
    World world
    NetCodeTestWorld testWorld
    Hash128 subSceneGUID
    Single frameTime
    Int32 maxTicks
    Returns
    Type Description
    Entity

    LoadSubSceneInWorlds(in NetCodeTestWorld, SubScene[])

    Declaration
    public static void LoadSubSceneInWorlds(in NetCodeTestWorld testWorld, params SubScene[] subScenes)
    Parameters
    Type Name Description
    NetCodeTestWorld testWorld
    SubScene[] subScenes

    ResolveScenes(NetCodeTestWorld, Single, Int32, SubScene[])

    Declaration
    public static void ResolveScenes(NetCodeTestWorld testWorld, float frameTime, int maxTicks, params SubScene[] subScenes)
    Parameters
    Type Name Description
    NetCodeTestWorld testWorld
    Single frameTime
    Int32 maxTicks
    SubScene[] subScenes
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023