Quantcast
Browsing latest articles
Browse All 6 View Live

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 Article


Answer 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 Article


Answer by astracat111

Do you use? Material SRm = (Material)AssetDatabase.LoadAssetAtPath("Assets/MyMaterial.mat", typeof(Material));

View Article
Browsing latest articles
Browse All 6 View Live