Страница:
Scene Management
Страницы
Attribute Message System
Binary Serialization
BitWriter & BitReader
Connection Approval
Core Components
Custom Transports
Dedicated Servers
Differences from UNET HLAPI
Getting Started
HLAPI Differences
Handshake
Home
Lag Compensation
Library Initialization
Limitations
Message Encryption
Message System
Modularity
NetworkConfig
NetworkProfiler Editor Window
Networked Object Pooling
NetworkedAnimator
NetworkedBehaviour
NetworkedNavMeshAgent
NetworkedObject
NetworkedTransform
NetworkedVar
NetworkingManager
Object & Behaviour Relation
Object Ownership
Object Spawning
Observer
Optimization
Passthrough Messages
Prototype Components
Roadmap
Scene Management
SyncedVars
Targeted Messages
TrackedObject
3
Scene Management
Albin Corén редактировал(а) эту страницу 2018-03-29 00:07:06 +02:00
Содержание
The MLAPI can manage synchronized scene management for you. To use this, it first has to be enabled in NetworkingConfiguration. EnableSceneSwitching has to be set to true and all scenes that are going to be used during Networking has to be registered. The NetworkingConfiguration.RegisteredScenes list has to be populated with all scene names, this a simple security measure to ensure rouge servers don't request client's to switch to sensitive scenes.
Note: The scene that is active when the Server is started has to be registered
Usage
//This can only be called on the server
NetworkSceneManager.SwitchScene(mySceneName);
Getting Started
The Basics
- Message System
- Object Spawning
- Object & Behaviour Relation
- Modularity
- NetworkedVar
- Scene Management
- Object Ownership
Components
Advanced Topics
- Encryption
- Networked Object Pooling
- Lag Compensation
- BitWriter & BitReader
- Custom Transports
- Optimization
- Network Profiler Window
- Dedicated Servers