Unity UI Vertical Layout Group & Content Size Fitter
Posted: Tue Nov 10, 2015 3:29 pm
Hi Tony! i found a little issue when i use this two component in my speech bubble system, the idea of use this, is to fit the size of the bubble by the amount of text the npc will say to the player.
some times at the start of the scene when the dialogue initalice it seem that the panel is disabled before the vertical Layout Group get the values correctly and the content size set to 0 all children, if i disabled the CSUIBubble (my custom AbstractDialogueUI) and try starting 10 times and all goes fine but if i enabled at the seconds goes wrong and set sizes to cero.
who start disabling gameobject in the dialogueManager? and can i wait one frame to let the component get propertly the values?
thanks for all
some times at the start of the scene when the dialogue initalice it seem that the panel is disabled before the vertical Layout Group get the values correctly and the content size set to 0 all children, if i disabled the CSUIBubble (my custom AbstractDialogueUI) and try starting 10 times and all goes fine but if i enabled at the seconds goes wrong and set sizes to cero.
who start disabling gameobject in the dialogueManager? and can i wait one frame to let the component get propertly the values?
thanks for all