ποΈ Decal
Decals are Materials that are projected onto meshes in your level, including Static Meshes and Skeletal Meshes.
πAuthority
This class can only be spawned on π§ Client side.
πͺInheritance
π§βπ»API Source
This page is auto-generated! The Functions, Properties and Events described here are defined in our GitHub's API Repository! Feel free to commit suggestions and changes to the source .json API files!
π Examplesβ
Client/Index.lua
local my_decal = Decal(
Vector(100, 200, 0), -- location
Rotator(0, 90, 90), -- rotation
"nanos-world::M_Default_Translucent_Lit_Decal", -- material
Vector(128, 256, 256), -- size
60, -- lifespan
0.01 -- fade screen size
)
my_decal:SetMaterialTextureParameter("Texture", "package://my_package/Client/image.jpg")
π Constructorsβ
Default Constructor
No description provided
local my_decal = Decal(location, rotation, material_asset, size?, lifespan?, fade_screen_size?)
Type | Name | Default | Description |
---|---|---|---|
Vector | location | Required parameter | No description provided |
Rotator | rotation | Required parameter | No description provided |
Material Reference | material_asset | Required parameter | Material Asset |
Vector | size | Vector(128, 256, 256) | Size of the Decal |
float | lifespan | 60 | Time until automatically destroyed in seconds |
float | fade_screen_size | 0.01 | Size percentage in screen to fade out |
πΏ Static Functionsβ
Inherited Entity Static Functions
This class doesn't have own static functions.
π¦ Functionsβ
Inherited Entity Functions
Inherited Actor Functions
Inherited Paintable Functions
This class doesn't have own functions.
π Eventsβ
Inherited Entity Events
Inherited Actor Events
This class doesn't have own events.