What is the simplest way of having custom properties in the inspector?
We would like to let game designer tune parameters on some object. For example, delay after roulette has finished a spin and some other timings on objects.
Our expectation is that the designer selects a wheel and have an additional set of properties in inspector which are WheelMesh properties.
What is the simplest way to approach this? Anything ready to use?
Our idea is to have TS decorator @inspectable on class properties and then add a custom property grid to the inspector bringing the experience quite close to the Unity3D inspector. Is this something BJS would like to have a PR on? Or we are going to make exceeding job and this could be achieved in an easier way?
Sounds great! And I assume on our side properties list might be generated with decorators as planned.
Not sure classname is the best approach here. May be just presence of this array on instance? For example if (gameObject.inspectables && gameObject.inspectables.length > 0) return . So to respect initial class props and custom instance props.
Yay, thrilled to have this. Would be a huge boost for our games development flow! Now we are forced to recompile every time parameter changed or use console which is not suitable for 3d or game designer or product owner…