{"id":429,"date":"2013-09-25T05:35:11","date_gmt":"2013-09-25T05:35:11","guid":{"rendered":"http:\/\/www.benbarefield.com\/blog\/?p=429"},"modified":"2013-09-25T05:35:11","modified_gmt":"2013-09-25T05:35:11","slug":"layout-controls-layoutlabel","status":"publish","type":"post","link":"https:\/\/www.benbarefield.com\/blog\/2013\/09\/25\/layout-controls-layoutlabel\/","title":{"rendered":"Layout Controls: LayoutLabel"},"content":{"rendered":"<p>LayoutLabel is an implementation of LayoutCapable meant to give UILabel from NGUI layout functionality. Since LayoutLabel uses UILabel to display text, the UILabel needs to be set up with a Font before it will show anything. It has one property on top of what LayoutCapable has:\u00a0<strong>Text Alignment<\/strong>.<\/p>\n<p><a href=\"http:\/\/www.benbarefield.com\/blog\/wp-content\/uploads\/2013\/09\/layoutLabelInspector.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-432\" alt=\"LayoutLabel Inspector\" src=\"http:\/\/www.benbarefield.com\/blog\/wp-content\/uploads\/2013\/09\/layoutLabelInspector.png\" width=\"318\" height=\"188\" srcset=\"https:\/\/www.benbarefield.com\/blog\/wp-content\/uploads\/2013\/09\/layoutLabelInspector.png 318w, https:\/\/www.benbarefield.com\/blog\/wp-content\/uploads\/2013\/09\/layoutLabelInspector-300x177.png 300w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/a><strong>Text Alignment<\/strong> sets how the text is positioned in the space available to the control, but does not affect the size of the control. It also changes how multi-line text justifies.<\/p>\n<p><strong>Note<\/strong>: currently background is not implemented for LayoutLabel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LayoutLabel is an implementation of LayoutCapable meant to give UILabel from NGUI layout functionality. Since LayoutLabel uses UILabel to display text, the UILabel needs to be set up with a Font before it will show anything. It has one property &hellip; <a href=\"https:\/\/www.benbarefield.com\/blog\/2013\/09\/25\/layout-controls-layoutlabel\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-429","post","type-post","status-publish","format-standard","hentry","category-layout-controls"],"_links":{"self":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/posts\/429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/comments?post=429"}],"version-history":[{"count":2,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/posts\/429\/revisions"}],"predecessor-version":[{"id":433,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/posts\/429\/revisions\/433"}],"wp:attachment":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/media?parent=429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/categories?post=429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/tags?post=429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}