How to revert from overrideSprite
According to Unity 4.x doc, the UI.Image.overrideSprite property was removable by setting it to null;
It seems it is not anymore available in Unity 5.x, so how can I remove the overriding Sprite to go back to normal Sprite?
Thx.
What do you mean it's not there, the documentation states otherwise with no mention of deprecation or being marked as obsolete.
5.4 documentation: http://docs.unity3d.com/ScriptReference/UI.Image-overrideSprite.html
Yes, it is but it's only in v.4.x documentation: http://docs.unity3d.com/462/Documentation/ScriptReference/UI.Image-overrideSprite.html
In fact I probably could reassign the previous sprite as the overrideSprite, but I don't have success loading standard asset resource using: myImage.overrideSprite = Resources.Load("Background") as Sprite;
Your answer
Follow this Question
Related Questions
Animation doesn't work in the editor anymore!! 0 Answers
Sprite Renderer and Image 0 Answers
Animation is overriding sprite 0 Answers
How to check if two sprites are the same 2 Answers