- Home /
Question by
Teh_Keeper · Jul 31, 2015 at 09:52 AM ·
scriptingproblem
AssetDatabase class is missing
AssetDatabase class is missing in MonoDevelop. I'm trying to print line like this
and in does't detects. And of course it doesn't compiles. Should I download/import any libraries, or use another another IDE/reinstall MonoDevelop? Current version is 4.0.1
Comment
Best Answer
Answer by Teh_Keeper · Jul 31, 2015 at 11:04 AM
Solved my problem by myself. Just import library UnityEditor by writing
using UnityEditor;
at the top.
You are aware of the fact that the AssetDatabase can only be used in an editor script? Everything in the UnityEditor namespace can only be used in editor scripts and is not available at runtime.