继承自:
出现在3D空间中的GUI对象的容器。可以设置是否总是朝向摄像机,并且可以根据距离的变化改变其大小、或是在屏幕上保持相同的大小
|
---|
开启Billboard时,能否被物体遮挡(内存消耗较大) |
local workSpace = game.WorkSpace
local loc = workSpace.SpawnLocation1
local node = SandboxNode.new('UIBillboard', workSpace)
node.Position = loc.Position+Vector3.new(0,500,0)
node.FixedSize = false
node.Billboard = false
local image1 = SandboxNode.new('UIImage', node)
image1.Name = 'Image'
image1.Visible = true
image1.Icon = 'ui\\mobile\\texture0\\common\\board_activity_box_white.png'
image1.Size = Vector2.new(500, 200)