The Decal class describes a texture of an image that is placed on one of the sides of a part it is parented to. It was released on May 14, 2008.[1] There is another class similar to Decal, Texture, that does the same thing as Decal, but instead of making the image bigger as the part gets bigger, it repeats the image as the part gets bigger.
There is a Creator Marketplace category containing decal assets that represent decals with a linked image. On the Creator Marketplace, the category is labeled "images".
Properties
Color3: Color3
The color of the decal. This property will be applied as a filter on top of the Decal's pre-existing colors.
- Category: Appearance.
- Serialization: can save and load.
- Thread safety: read safe
LocalTransparencyModifier: float
- Category: Appearance.
- Serialization: cannot load or save.
- Thread safety: read safe
Transparency: float
- Category: Appearance.
- Serialization: can save and load.
- Thread safety: read safe
ZIndex: int
- Category: Appearance.
- Serialization: can save and load.
- Thread safety: read safe
History[]
Before May 2008, users could only see their decals in solo mode. To use their own images, they had to create Classic T-shirts and use the image created by it.
On May 14, 2008,[1] Matt Dusek announced support for creating decal assets through the Decal Builder which allows uploading an image file. This provides an easy way for users to use their own images in decals.
On February 8, 2017, the Color3 property was added to decals.[2]
On July 8, 2021, the ZIndex property was added to decals.[3]
External links[]
- Decal in the Roblox Creator Documentation
- Decal in the Roblox API Reference
References[]
- ↑ 1.0 1.1 Dusek, Matt (2008, May 14). "More Fun, Less Frustration". From Roblox Blog. Accessed January 20, 2023. Archived from the original on August 14, 2022.
- ↑ TheGamer101 (2017, February 8). "New Property: Decal.Color3". From DevForum. Archived from the original on January 20, 2023.
- ↑ hyperhumanist (2021, July 8). "New ZIndex Property on Decals and Textures". From DevForum. Archived from the original on January 20, 2023.