Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#
Method group is Obsolete

NetworkIdentity.ForceSceneId

Obsolete public void ForceSceneId(int newSceneId);

Parameters

sceneIdThe new Scene ID.

Description

Force the Scene ID to a specific value.

This can be used to fix an invalid Scene ID. If you process all the NetworkIdentity components in a Scene you can assign them new values starting from 1.

Did you find this page useful? Please give it a rating: