/// <summary> /// Load editor icons /// </summary> void LoadResources() { var _path = ReturnInstallPath.GetInstallPath("Editor", this); // GetInstallPath(); guiPresetImage1 = AssetDatabase.LoadAssetAtPath(_path + "Res/guipreset1.png", typeof(Texture2D)) as Texture2D; guiPresetImage2 = AssetDatabase.LoadAssetAtPath(_path + "Res/guipreset2.png", typeof(Texture2D)) as Texture2D; guiPresetImage3 = AssetDatabase.LoadAssetAtPath(_path + "Res/guipreset3.png", typeof(Texture2D)) as Texture2D; guiPresetImage4 = AssetDatabase.LoadAssetAtPath(_path + "Res/guipreset4.png", typeof(Texture2D)) as Texture2D; guiPresetImage5 = AssetDatabase.LoadAssetAtPath(_path + "Res/guipreset5.png", typeof(Texture2D)) as Texture2D; iconDuplicate = AssetDatabase.LoadAssetAtPath(_path + "Res/icon_duplicate.png", typeof(Texture2D)) as Texture2D; iconUndockWindow = AssetDatabase.LoadAssetAtPath(_path + "Res/icon_undock.png", typeof(Texture2D)) as Texture2D; }
void LoadResources() { var _path = ReturnInstallPath.GetInstallPath("Editor", this); // GetInstallPath(); iconLayer = AssetDatabase.LoadAssetAtPath(_path + "Res/icon_layer.png", typeof(Texture2D)) as Texture2D; iconFillFloor = AssetDatabase.LoadAssetAtPath(_path + "Res/icon_fillfloor.png", typeof(Texture2D)) as Texture2D; iconFillBlock = AssetDatabase.LoadAssetAtPath(_path + "Res/icon_fillblock.png", typeof(Texture2D)) as Texture2D; iconDuplicate = AssetDatabase.LoadAssetAtPath(_path + "Res/icon_duplicate.png", typeof(Texture2D)) as Texture2D; iconMaskLayerArrow = AssetDatabase.LoadAssetAtPath(_path + "Res/masklayerarrow.png", typeof(Texture2D)) as Texture2D; iconUndockWindow = AssetDatabase.LoadAssetAtPath(_path + "Res/icon_undock.png", typeof(Texture2D)) as Texture2D; iconCopyMap = AssetDatabase.LoadAssetAtPath(_path + "Res/icon_copy.png", typeof(Texture2D)) as Texture2D; iconPasteMap = AssetDatabase.LoadAssetAtPath(_path + "Res/icon_paste.png", typeof(Texture2D)) as Texture2D; iconOptionMenu = AssetDatabase.LoadAssetAtPath(_path + "Res/icon_optionMenu.png", typeof(Texture2D)) as Texture2D; //iconStore = AssetDatabase.LoadAssetAtPath(_path + "Res/icon_store.png", typeof(Texture2D)) as Texture2D; topLogo = AssetDatabase.LoadAssetAtPath(_path + "Res/topLogo.png", typeof(Texture2D)) as Texture2D; }
/// <summary> /// Load editor icons /// </summary> void LoadResources() { var _path = ReturnInstallPath.GetInstallPath("Editor", this); // GetInstallPath(); iconMaskLayerArrow = AssetDatabase.LoadAssetAtPath(_path + "Res/masklayerarrow.png", typeof(Texture2D)) as Texture2D; }