See here for sample:
I am trying to get text boxes to automatically have a solid / patterned background. From what I've read about containers they should be perfect for this, and from playing around with origins and setting z order I'm almost there - but the background doesn't appear at all for the first text box.
Any idea why this would be?
Should I be using pin instead of containers anyway?
Develop games in your browser. Powerful, performant & highly capable.
It does not appear as there is already a background object in the layout, the one you have outside layout. Every text will have background object associated with it, and that particular texts background happens to be the one outside the layout.
a) Move all backgrounds to proper positions at layout start
b) Move single text and single background outside the layout
c) Have all objects in separate layout, so you don't need to have any objects outside layout
I didn't realise it would assume those one is paired (and that it wouldn't align it like it does all the others).. oops!
I found that creating them at runtime eliminates the problem anyway.