Hi guys. I'm currently working with GUI and i noticed that fadeIn property in json is working while fadeOut is not.
For example:
WTH?Code:{ "type": "UnityEngine.UI.RawImage", "imagetype": "Simple", "color": "1 1 1 1", "fadeIn": "0.5", "fadeOut": "1.5" }
Solved UI FadeOut?
Discussion in 'Rust Development' started by deer_SWAG, Jul 7, 2016.
-
The FadeOut option works something like this: (from what I can tell) works for me

just a example of course.Code:elements.Add(new CuiElement { Name = Title, Parent = "Overlay", FadeOut = 1f, Components = { new CuiRawImageComponent { Color = "1 1 1 1", FadeIn = 0.9f, Url = "http://www.icon.com/icon.png", Sprite = "assets/content/textures/generic/fulltransparent.tga" }, new CuiRectTransformComponent { AnchorMin = "0.1 0.1", AnchorMax = "0.9 0.9"} } }); -
Okay. I got it. Components have fadeIn, but Elements have fadeOut.
