From e5a429e8a611337e9f0695c1541e36eb123c8131 Mon Sep 17 00:00:00 2001 From: Zander Otavka Date: Mon, 3 Aug 2015 17:07:11 -0700 Subject: [PATCH] Add a Text3DOverlay in floatingUIExample.js. --- examples/example/ui/floatingUIExample.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/example/ui/floatingUIExample.js b/examples/example/ui/floatingUIExample.js index a2b5d5757f..f489159440 100644 --- a/examples/example/ui/floatingUIExample.js +++ b/examples/example/ui/floatingUIExample.js @@ -56,21 +56,21 @@ bluePanelBackground.dimensions = { mainPanel.addChild(mainPanelBackground); bluePanel.addChild(bluePanelBackground); -var textWidth = .5; +var textWidth = .25; var textHeight = .1; -var numberOfLines = 2; +var numberOfLines = 1; var textMargin = 0.00625; var lineHeight = (textHeight - (2 * textMargin)) / numberOfLines; var text = mainPanel.addChild(new Text3DOverlay({ text: "TEXT", - isFacingAvatar: true, + isFacingAvatar: false, alpha: 1.0, ignoreRayIntersection: false, offsetPosition: { - x: -0.15, + x: 0.1, y: -0.15, - z: 0 + z: 0.001 }, dimensions: { x: textWidth, y: textHeight }, backgroundColor: { red: 0, green: 0, blue: 0 },