Hey guys,
1. Is it possible to run a script in the editor window without launching the game?
I am creating a grid of different type of blocks on which player can snap from one block to another to move. Each block is required to be named as a coordinate on the grid. It’s a hassle to rename my blocks when redesigning the grid block pattern. So basically what I need is, to be able to automatically rename my entities as soon as they are repositioned in the hierarchy.
2. Is it possible to run a script at the time of creating a build?
I am going to have some code in the game which should only be available in my scripts under certain conditions. So when creating a build I want to run a custom script that will remove that code from my scripts before the _gamescripts.js in the build is minimized. Please note, here I want the scripts in the game to have the code but only remove it in the combined js created in the build