+ layer.Add( pauseButton );
+
+ //Text label title for light position mode.
+ TextLabel lightTitleLabel = TextLabel::New( "Light Position" );
+ lightTitleLabel.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS );
+ lightTitleLabel.SetProperty( TextLabel::Property::UNDERLINE, "{\"thickness\":\"2.0\"}" );
+ lightTitleLabel.SetParentOrigin( Vector3( 0.8, BUTTONS_OFFSET_BOTTOM, 0.5 ) );
+ lightTitleLabel.SetAnchorPoint( AnchorPoint::BOTTOM_CENTER );
+ layer.Add( lightTitleLabel );
+
+ //Create button for switching between manual and fixed light position.
+ PushButton lightButton = Toolkit::PushButton::New();
+ lightButton.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS );
+ lightButton.ClickedSignal().Connect( this, &MeshVisualController::OnChangeLightModeClicked );
+ lightButton.SetParentOrigin( ParentOrigin::BOTTOM_CENTER );
+ lightButton.SetAnchorPoint( AnchorPoint::TOP_CENTER );
+ lightButton.SetLabelText( "FIXED" );
+ lightTitleLabel.Add( lightButton );
+ }