Пример #1
0
 public void StartBiwControllers()
 {
     biwModeController.EnterEditMode(sceneToEdit);
     builderInWorldEntityHandler.EnterEditMode(sceneToEdit);
     biwFloorHandler.EnterEditMode(sceneToEdit);
     biwCreatorController.EnterEditMode(sceneToEdit);
     biwPublishController.EnterEditMode(sceneToEdit);
     bIWInputHandler.EnterEditMode(sceneToEdit);
     outlinerController.EnterEditMode(sceneToEdit);
 }
Пример #2
0
    protected override IEnumerator SetUp()
    {
        yield return(base.SetUp());

        BuilderInWorldController controller = Resources.FindObjectsOfTypeAll <BuilderInWorldController>()[0];

        entityHandler = controller.builderInWorldEntityHandler;
        entityHandler.Init();

        TestHelpers.CreateSceneEntity(scene, ENTITY_ID);
        entityHandler.EnterEditMode(scene);
        entity = entityHandler.GetAllEntitiesFromCurrentScene().FirstOrDefault();
    }
Пример #3
0
    protected override IEnumerator SetUp()
    {
        yield return(base.SetUp());

        controller = Resources.FindObjectsOfTypeAll <BuilderInWorldController>()[0];

        biwCreatorController = controller.biwCreatorController;
        biwCreatorController.Init();
        entityHandler = controller.builderInWorldEntityHandler;
        entityHandler.Init();

        entityHandler.EnterEditMode(scene);
        biwCreatorController.EnterEditMode(scene);
    }
    protected override IEnumerator SetUp()
    {
        yield return(base.SetUp());

        controller           = Resources.FindObjectsOfTypeAll <BuilderInWorldController>()[0];
        actionController     = controller.actionController;
        entityHandler        = controller.builderInWorldEntityHandler;
        biwFloorHandler      = controller.biwFloorHandler;
        biwCreatorController = controller.biwCreatorController;
        entityHandler.Init();

        TestHelpers.CreateSceneEntity(scene, ENTITY_ID);
        entityHandler.EnterEditMode(scene);
    }
Пример #5
0
    protected override IEnumerator SetUp()
    {
        yield return(base.SetUp());

        BuilderInWorldController controller = Resources.FindObjectsOfTypeAll <BuilderInWorldController>()[0];

        entityHandler = controller.builderInWorldEntityHandler;
        entityHandler.Init();
        entityHandler.EnterEditMode(scene);

        dummyGameObject = new GameObject();
        biwBridge       = Utils.GetOrCreateComponent <BuilderInWorldBridge>(dummyGameObject);

        WebInterface.OnMessageFromEngine += MessageReceived;
    }
Пример #6
0
    protected override IEnumerator SetUp()
    {
        yield return(base.SetUp());

        controller = Resources.FindObjectsOfTypeAll <BuilderInWorldController>()[0];

        controller.InitGameObjects();
        controller.FindSceneToEdit();
        controller.InitControllers();

        biwPublishController = controller.biwPublishController;
        biwPublishController.EnterEditMode(scene);

        biwEntityHandler = controller.builderInWorldEntityHandler;
        biwEntityHandler.EnterEditMode(scene);
    }
    public void EnterEditMode()
    {
        BuilderInWorldNFTController.i.ClearNFTs();

        ParcelSettings.VISUAL_LOADING_ENABLED = false;


        inputController.isInputActive       = true;
        inputController.isBuildModeActivate = true;

        FindSceneToEdit();

        sceneToEdit.SetEditMode(true);
        cursorGO.SetActive(false);

        if (HUDController.i.builderInWorldMainHud != null)
        {
            HUDController.i.builderInWorldMainHud.SetVisibility(true);
            HUDController.i.builderInWorldMainHud.SetParcelScene(sceneToEdit);
            HUDController.i.builderInWorldMainHud.RefreshCatalogContent();
            HUDController.i.builderInWorldMainHud.RefreshCatalogAssetPack();
        }

        if (currentActiveMode == null)
        {
            SetBuildMode(EditModeState.Editor);
        }

        CommonScriptableObjects.builderInWorldNotNecessaryUIVisibilityStatus.Set(false);

        DCLCharacterController.OnPositionSet += ExitAfterCharacterTeleport;
        builderInputWrapper.gameObject.SetActive(true);
        builderInWorldEntityHandler.EnterEditMode(sceneToEdit);

        Environment.i.world.sceneController.ActivateBuilderInWorldEditScene();



        ActivateBuilderInWorldCamera();
        if (IsNewScene())
        {
            SetupNewScene();
        }

        isEditModeActivated = true;
    }