Refrech unity via code in a custom inspector?

I am working on a custom inspector that amongst other things will allow me to create a scriptable object and it’s editor file using a name field and a button. And then it will stream write the SO into my assets folder. This works and everything but the scripts won’t appear until after it minimize and maximize unity. It’s really not that big of a deal since it does what its supposed to, but is there a code that will cause unity to completely refresh like it does when you create other items via the inspector that I would have access to?

Thanks yet again :slight_smile:

Have you tried AssetDatabase.Refresh

1 Like

Sweet thanks for that!!! I was looking all over for a refresh(except there):stuck_out_tongue:

and wow instant Scriptable Objects are nice…

1 Like