Decal
Inherits from DynamicInstance
Decals are objects that can have an image texture and are placed in the world.
Summary
Properties
Color:ColorImageType:ImageTypeImageID:intTextureOffset:Vector2TextureScale:Vector2CastShadows:bool
Properties
Color
Decal.Color: Color
Determines the color of the decal.
ImageType
Decal.ImageType: ImageType
The type of image to be used.
ImageID
Decal.ImageID: int
Specifies the image asset ID of the decal.
Example
game["Environment"]["Decal"].ImageID = 11643
TextureOffset
Decal.TextureOffset: Vector2
The offset of the texture on the decal.
TextureScale
Decal.TextureScale: Vector2
The scale of the texture on the decal.
Example
game["Environment"]["Decal"].TextureOffset = Vector2.New(0, 0)
CastShadows
Decal.CastShadows: bool
Determines whether or not the decal should cast shadows.