- Home /
How to sync Inspector actions to objects rendered on screen?
I'm trying to construct an Editor where Sprites are added to a list in the Inspector, but I don't really know where to start. There are 2 main functions I would like it to support:
Updating the Sprite Renderer: By clicking on an element in the inspector, it should change the Sprite Renderer so that the image in the scene always represents the currently selected Sprite.
Updating Sprite Position: By moving this image in the scene around, a Vector3 value in the Inspector should be updated. Similarly, a change to the Vector3 value should change the sprite position.
I'm very new to Editor and Inspector related stuff in Unity, but it seems to me that if there a way to sync changes to the Inspector with changes made in Scene, this could be possible.
To clarify: I'm trying to construct a way to make Animations external to Unity2D, because I find it lacking for what I need to efficiently construct them. The concept I'm emulating comes from Fighter Factory 3 (used with game engine MUGEN), where you can create animations by placing sprites on a screen 1 by 1 (It's very nice for when there are many sprites or they are of different sizes).
Your answer
Follow this Question
Related Questions
how to use tk2d Sprite with NGUI Camera? 1 Answer
Could someone fix this : It says expressions must only be executed ofr their side-effects 1 Answer
Is there a way to combine the Update and OnGUI functions? 1 Answer
Function not executing 1 Answer
'position' is not a member of 'UnityEngine.Vector3'. 1 Answer