↧
Answer by jahroy
Sorry, I assumed you were using C# because of the unfamiliar code I saw as the second parameter of your call to LoadAssetPath(). When I use LoadAssetAtPath() I use it like this: var newMat =...
View ArticleAnswer by aymeric
It works now! i used the code like this: Make sure you begin with "Assets" in the path. @CustomEditor (scriptname) class NewBehaviourScript extends Editor{ function OnInspectorGUI() { var thePath =...
View ArticleAnswer by astracat111
Do you use? Material SRm = (Material)AssetDatabase.LoadAssetAtPath("Assets/MyMaterial.mat", typeof(Material));
View Article