Closed stella3d closed 6 years ago
on the idea of the fallback / catch-all for assigning: I think it's a good idea, but i'd like to do it another PR.
@AndrewTHEManeri i have some idea of how we could implement generic 1:1 assignments ("custom drop paths") without too much trouble - if you think it's worth having for this, i'll tackle it before merge.
Manual merge successful. Performing Github merge.
Note: My final commit (4f1d6f5) cleans up an oversight on #460. I was testing whether it would work to update the inspector on every hierarchy change, but this is not viable as too many other actions (like tooltips) cause hierarchy updates. With this functionality available, I added a call to UpdateInspectors on dropping references to make use of that feature.
Support assigning a variety of assets to their relevant components on objects in the scene.
Should enable a few more things to be done in EditorXR, particularly because of being able to add any
MonoBehaviour
.All of these assets are assigned by dragging them out of the project view, direct selecting an object with the hand holding the preview, and then releasing the trigger.
Asset assignment types this supports:
1) Add any
MonoBehaviour
to an object. 2) Assign anAudioClip
to an object. If noAudioSource
is present on the object, one is added 3) Assign aMaterial
to an object'sRenderer
. 4) Assign aShader
to an instance of the 1stMaterial
on an object'sRenderer
5) Assign aPhysicMaterial
to an object'sCollider
. 6) Assign aFont
to aTextMesh
on an object.