- Home /
How would one make Unity Check for new assets?
I have a tool that generates C Sharp source code for various things. The tool is interacted with through Unity GUI. When it generates the files, Unity does not seem to pick them up. This makes sense, none of the events that unity is listening for have been activated(like when one brings focus back to Unity.)
I was wondering if there was a way to tell Unity to check the assets for new files.
Answer by garner · Mar 31, 2012 at 10:48 AM
is it possible to create a reference to the asset at the time of creation?
I am not sure what you mean. The .cs file itself is generated by the tool and placed into the folder in Assets.
Answer by v21 · Aug 12, 2013 at 04:11 PM
Old question, but I just now needed to know the same thing myself:
AssetDatabase.Refresh();
http://docs.unity3d.com/Documentation/ScriptReference/AssetDatabase.Refresh.html
Your answer

Follow this Question
Related Questions
How do i go about generating stuff in editor and keeping it in play mode 2 Answers
I accidently moved all assets and now I can't see my levels 1 Answer
ScriptableObject Asset corrupted after reload of Unity 1 Answer
Why editor assets gets reimported when switching build target? 0 Answers
how to modify and save imported assets? 0 Answers