Search Results for

    Show / Hide Table of Contents

    Class NetworkScene

    NetworkScene controls the scene's network presence, and the presence of its network objects.

    Inheritance
    Object
    NetworkScene
    Namespace: FNNLib.SceneManagement
    Assembly: FNNLib.dll
    Syntax
    public class NetworkScene

    Properties

    | Improve this Doc View Source

    clientMode

    The client loading mode. If this is single and server mode is additive, this will be offset in space.

    Declaration
    public LoadSceneMode clientMode { get; }
    Property Value
    Type Description
    LoadSceneMode
    | Improve this Doc View Source

    name

    The name of the scene

    Declaration
    public string name { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    netID

    This scene's ID.

    Declaration
    public uint netID { get; }
    Property Value
    Type Description
    UInt32
    | Improve this Doc View Source

    packingOffset

    The packing offset given to this scene by the NetworkSceneManager.

    Declaration
    public Vector3 packingOffset { get; }
    Property Value
    Type Description
    Vector3
    | Improve this Doc View Source

    scene

    The scene that we are controlling.

    Declaration
    public Scene scene { get; }
    Property Value
    Type Description
    Scene
    | Improve this Doc View Source

    serverMode

    The client loading mode. If this is single and server mode is additive, this will be offset in space.

    Declaration
    public LoadSceneMode serverMode { get; }
    Property Value
    Type Description
    LoadSceneMode

    Methods

    | Improve this Doc View Source

    FindObjectsOfType<T>()

    Find all objects of type in a scene. Can only search for monobehaviours VERY slow on a server or host if you have many scenes. Should only be slightly slower on clients. You're better to use FindObjectsOfType if a client is only on 1 scene, but remember the host!

    Declaration
    public T[] FindObjectsOfType<T>()
        where T : MonoBehaviour
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Instantiate(GameObject)

    Declaration
    public GameObject Instantiate(GameObject go)
    Parameters
    Type Name Description
    GameObject go
    Returns
    Type Description
    GameObject
    | Improve this Doc View Source

    Instantiate(GameObject, Vector3, Quaternion)

    Declaration
    public GameObject Instantiate(GameObject go, Vector3 position, Quaternion rotation)
    Parameters
    Type Name Description
    GameObject go
    Vector3 position
    Quaternion rotation
    Returns
    Type Description
    GameObject
    • Improve this Doc
    • View Source
    In This Article
    Back to top (C) 2020 Reece Mackie. Released under the MIT License.