Psd2UnityImporter icon indicating copy to clipboard operation
Psd2UnityImporter copied to clipboard

[Fixed] Unity 2018.3 VisibilityToggle GUIStyle cant be found

Open brogan89 opened this issue 6 years ago • 4 comments

Hey there, Just updated to the new Unity 2018.3 and it looks like "VisibilityToggle" doesn't exist any more as a GUIStyle. Just wondering if you have any plans to support latest Unity? Thanks.

brogan89 avatar Dec 18 '18 10:12 brogan89

замени tempStyle = GUI.skin.GetStyle("VisibilityToggle"); на tempStyle = new GUIStyle() { normal = new GUIStyleState() { background = EditorGUIUtility.Load("Icons/animationvisibilitytoggleoff.png") as Texture2D }, onNormal = new GUIStyleState() { background = EditorGUIUtility.Load("Icons/animationvisibilitytoggleon.png") as Texture2D }, fixedHeight = 11, fixedWidth = 13, border = new RectOffset(2, 2, 2, 2), overflow = new RectOffset(-1, 1, -2, 2), padding = new RectOffset(3, 3, 3, 3), richText = false, stretchHeight = false, stretchWidth = false, };

scorp2x2 avatar Jan 14 '19 16:01 scorp2x2

Awesome, that worked. Thank you. - You should make a pull request.

brogan89 avatar Jan 15 '19 06:01 brogan89

Was there any other issues with the plugin after fixing this? I've been in the middle of fixing the plugin but I remember having some other issues that weren't very simple to fix.

ChemiKhazi avatar Jan 17 '19 02:01 ChemiKhazi

My artist says that's its all good now so I guess its fine after that fix. I did do a couple of things in PsdImportWindow I think but I can't remember what they are.

I've made a gist of the PsdImportWindow version I'm using for you: https://gist.github.com/brogan89/196f1a1b40f37542a41ae1512a859b40

I know Unity now have their own PSD importer, but my artist prefers to use this one still :)

brogan89 avatar Jan 17 '19 02:01 brogan89