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

Client OnlyAPI Source
๐ชInheritance
๐ 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
| Name | Type | Description |
|---|---|---|
location | Vector | World location to spawn at |
material_asset | Material Reference | The Material to render |
size? | Vector2D | Half 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? | boolean | Size is in Screen or World Space Default false |
๐ฟ Static Functionsโ
This class doesn't have own static functions.
Inherited static functions
From Entity11 functions
Events
Subscribe, UnsubscribeNetwork
SubscribeRemoteQueries
GetAll, GetByIndex, GetCount, GetPairs๐ฆ Functionsโ
This class doesn't have own functions.
Inherited functions
From Paintable14 functions
All functions
GetMaterialColorParameter, GetMaterialScalarParameter, GetMaterialTextureParameter, GetMaterialVectorParameter, ResetMaterial, SetMaterial, SetMaterialColorParameter, SetMaterialFromCanvas, SetMaterialFromSceneCapture, SetMaterialFromWebUI, SetMaterialScalarParameter, SetMaterialTextureParameter, SetMaterialVectorParameter, SetPhysicalMaterialFrom Actor60 functions
Appearance
GetDistanceFromCamera, GetScreenPercentage, IsVisible, SetCastShadow, SetHighlightEnabled, SetOutlineEnabled, SetRenderCullDistance, SetVisibility, WasRecentlyRenderedAttachments
AttachTo, Detach, GetAttachedEntities, GetAttachedTo, GetAttachedToSocket, GetSocketTransformLifecycle
GetLifeSpan, SetLifeSpanNetwork
GetDimension, GetNetworkAuthority, HasNetworkAuthority, IsNetworkDistributed, SetDimension, SetDistanceOptimizationMultiplier, SetNetworkAuthority, SetNetworkAuthorityAutoDistributedFrom Entity21 functions
Data
GetAllValuesKeys, GetValue, SetValueEvents
Subscribe, UnsubscribeLifecycle
Destroy, FinishSpawn, IsBeingDestroyed, IsSpawned, IsValid, SetSpawnModeNetwork
BroadcastRemoteEvent, BroadcastRemoteInRadiusEvent, CallRemoteEvent, CallRemoteEvent, CallRemotePlayersEvent, HasAuthority, SubscribeRemoteQueries
GetID๐ Eventsโ
This class doesn't have own events.
Inherited events
From Actor5 events
From Entity4 events
All events
ClassRegister, Destroy, Spawn, ValueChange