Can anyone confirm that fadeIn is not working if you have 2 Elements for example tied to Overlay parent with different names, both set to fadeIn = 1.
Somehow it skips the first container, it's instantly visible, and the second container is fading. 1 container only works fine, 3 containers: 2 won't work, 1 is fading fine.
CUI fadeIn not working properly
Discussion in 'Rust Development' started by mTrX, Apr 15, 2017.
-
Can anyone confirm this or am I doing something wrong? fadeOut seem to work fine, but fadeIn is bugged if you have more than two elements shown. Tried multiple ways, but 0 success.
-
Seems to be working fine for me with 2 containers. I've however noticed that fadeOut is a little odd, with it fading out then reappearing for a split second.
-
Mind to show me the UI json for your example? It's still not working for me. Box 1 pops up without fading while box 2 is fading normally.
Here's mine:
Code:[ { "name": "box", "parent": "Hud", "components": [ { "type": "UnityEngine.UI.Image", "sprite": "Assets/Content/UI/UI.Background.Tile.psd", "material": "Assets/Icons/IconMaterial.mat", "color": "1 0 0 1", "imagetype": "Simple", "fadeIn": 1.0 }, { "type": "RectTransform", "anchormin": "0 0.9", "anchormax": "0.1 1" } ], "fadeOut": 0.0 }, { "name": "box1", "parent": "Hud", "components": [ { "type": "UnityEngine.UI.Image", "sprite": "Assets/Content/UI/UI.Background.Tile.psd", "material": "Assets/Icons/IconMaterial.mat", "color": "0 1 0 1", "imagetype": "Simple", "fadeIn": 1.0 }, { "type": "RectTransform", "anchormin": "0.3 0.6", "anchormax": "0.4 0.7" } ], "fadeOut": 0.0 } ]
Last edited by a moderator: Apr 21, 2017 -
Last edited by a moderator: Apr 22, 2017
-
Wulf Community Admin
-
-
Wulf Community Admin
-
I don't call it directly either, the CUI is an awesome helper class, but I made my own UI class for my purpose . It's building up the json string itself. I get some neat results, just the fadeIn thing is bothering me ...
Last edited by a moderator: Apr 22, 2017