Skip to main content
Version: bleeding-edge ๐Ÿฉธ

๐Ÿชง Billboard

A Billboard is a 2D Material that will be rendered always facing the camera

๐Ÿ‘ชInheritance
This class shares methods and events from Base Entity, Base Actor, Base Paintable.

๐ŸŽ’ Examplesโ€‹

Client/Index.lua
local my_billboard = Billboard(
Vector(200, 200, 200), -- location
"nanos-world::M_Default_Masked_Lit", -- material
Vector2D(32, 48), -- size: half width (X) and half height (Y)
true
)

my_billboard:SetMaterialTextureParameter("Texture", "package://my_package/Client/image.jpg")

๐Ÿ›  Constructorsโ€‹

Default Constructorโ€‹

No description provided

local my_billboard = Billboard(location, material_asset, size?, size_in_screen_space?)
Parameters
NameTypeDescription
locationVectorWorld location to spawn at
material_assetMaterial ReferenceThe Material to render
size?Vector2DHalf size of the Billboard, X is the width and Y the height (before 1.166.0 they were swapped). In units, or in screen space if size_in_screen_space is true Default Vector2D(32, 32)
size_in_screen_space?booleanSize is in Screen or World Space Default false

๐Ÿ—ฟ Static Functionsโ€‹

This class doesn't have own static functions.

Inherited static functions

๐Ÿฆ  Functionsโ€‹

This class doesn't have own functions.

Inherited functions

๐Ÿš€ Eventsโ€‹

This class doesn't have own events.