private void SetCurrentScene() { currentScene = GetLoadedScene(); if (currentScene) { currentScene.OnEntityAdded += OnEntityIsAdded; currentScene.OnEntityRemoved += OnEntityIsRemoved; currentScene.metricsController = new DCLBuilderSceneMetricsController(currentScene); if (DCLBuilderConfig.config.environment.disableFloor) { currentScene.RemoveDebugPlane(); } else { currentScene.InitializeDebugPlane(); } OnSceneChanged?.Invoke(currentScene); } }
public void SetBuilderConfiguration(string payloadJson) { if (LOG_MESSAGES) { Debug.Log($"RECEIVE: SetBuilderConfiguration {payloadJson}"); } DCLBuilderConfig.SetConfig(payloadJson); if (!currentScene) { return; } if (DCLBuilderConfig.config.environment.disableFloor) { currentScene.RemoveDebugPlane(); } else { currentScene.InitializeDebugPlane(); } }