Class NetworkScene
NetworkScene controls the scene's network presence, and the presence of its network objects.
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
Declaration
public string name { get; }
Property Value
|
Improve this Doc
View Source
netID
Declaration
public uint netID { get; }
Property Value
|
Improve this Doc
View Source
packingOffset
The packing offset given to this scene by the NetworkSceneManager.
Declaration
public Vector3 packingOffset { get; }
Property Value
|
Improve this Doc
View Source
scene
The scene that we are controlling.
Declaration
public Scene scene { get; }
Property Value
|
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 Parameters
|
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 |
|