- Home /
Question by
thomasfdm_sky · Dec 14, 2020 at 11:35 AM ·
editor-scriptingscriptableobjectanimationcurve
Allow dragging and dropping into project view from custom inspector
I want to be able to drag a value (it's an animation curve) from a field in my custom editor script and drop it into the project view (like how you create prefabs) so that it saves the curve. I've gotten to the point where it's wrapped in a ScriptableObject and can be dragged between animation curve fields. And I have a button that can save it where I press it, it turns it into a ScriptableObject and saves it into the project view, but I really want that drag and drop functionality.
Is there a way to do this? My main thought was getting the Rect of the project view but I don't seem to be able to find in the docs where I can get that value from?
Many thanks in advance.
Comment