Hi
We 're still on our project of a RTS with terraformation.
The problem is how to change a layer of a game object with the script.
More precisely, The game object will be spawn on the map after pressing a button. But we have a projector and wee want this to ignore this game object. The problem is that apparently we can’t change the layer of an asset which doesn’t exist yet in the Hierarchy pane.
So how to change the layers thanks to the script ? Or is there another way to change it ?
thanks a lot for your answers