I wonder if it is possible to access and modify values like dimension and position for shape objects through code. I need to set those dynamically from script because dimensions and position depend on player’s input. Only other solution I can think of is making a factory and prototype object for all possibilities and spawn one that corresponds to player input. But there are too many of them and it would affect performance dramatically.
Also, I have one more question that may be related to this. Is it possible to add component to game object from script? For example, I want to add that collision object when player does some action, instead of adding it manually.
Thanks in advance