ExitEditMode() public méthode

public ExitEditMode ( ) : void
Résultat void
Exemple #1
0
    public void ExitEditMode()
    {
        CommonScriptableObjects.builderInWorldNotNecessaryUIVisibilityStatus.Set(true);

        inputController.isBuildModeActivate = false;
        snapGO.transform.SetParent(transform);

        ParcelSettings.VISUAL_LOADING_ENABLED = true;

        outlinerController.CancelAllOutlines();

        cursorGO.SetActive(true);
        builderInWorldEntityHandler.ExitFromEditMode();

        sceneToEdit.SetEditMode(false);
        biwModeController.ExitEditMode();

        DCLCharacterController.OnPositionSet -= ExitAfterCharacterTeleport;

        builderInWorldBridge.ExitKernelEditMode(sceneToEdit);

        avatarRenderer.SetAvatarVisibility(true);

        if (HUDController.i.builderInWorldMainHud != null)
        {
            HUDController.i.builderInWorldMainHud.ClearEntityList();
            HUDController.i.builderInWorldMainHud.SetVisibility(false);
        }

        Environment.i.world.sceneController.DeactivateBuilderInWorldEditScene();
        ExitBiwControllers();

        isBuilderInWorldActivated = false;
    }
 public void ExitBiwControllers()
 {
     biwModeController.ExitEditMode();
     builderInWorldEntityHandler.ExitEditMode();
     biwFloorHandler.ExitEditMode();
     biwCreatorController.ExitEditMode();
     biwPublishController.ExitEditMode();
     bIWInputHandler.ExitEditMode();
     outlinerController.ExitEditMode();
 }