Api Sandbox GameResourceAttribute
class

GameResourceAttribute

public class GameResourceAttribute : AssetTypeAttribute

Attributes

[ Obsolete ]

Constructors

GameResourceAttribute(String title, String extension, String description)

Properties

Name Type Description
Icon String Icon to be used for this asset Can be an absolute path of a PNG Or a material icon for this game resource's thumbnail.
IconBgColor String Background color for this resource's thumbnail.
IconFgColor String Foreground color (icon color) for this resource's thumbnail.
CanEmbed Boolean Can this GameResource be an embedded resource? Allows the ability to edit a resource inline instead of saving it to a specific file.
Description String Description of this game resource. This is obsolete, we'll use the xml summary description.
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.GameResourceAttribute