GameResourceAttributeclass

objectAssetTypeAttributeGameResourceAttribute
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.GameResourceAttribute : Sandbox.AssetTypeAttribute

Obsolete

Use AssetType instead

Constructors1

Showing 1 constructors

public GameResourceAttribute(string title, string extension, string description)PUBLICCONSTRUCTOR

ParameterTypeDescription
titlestring
extensionstring
descriptionstring

Properties5

Showing 5 properties

public bool Sandbox.GameResourceAttribute.CanEmbed { get; set; }PUBLICGETSET

Can this GameResource be an embedded resource? Allows the ability to edit a resource inline instead of saving it to a specific file.

Returns:bool

public string Sandbox.GameResourceAttribute.Description { get; set; }PUBLICGETSETOBSOLETE

Description of this game resource. This is obsolete, we'll use the xml summary description.

Obsolete: This API member is obsolete.

Returns:string

public string Sandbox.GameResourceAttribute.Icon { get; set; }PUBLICGETSET

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.

Returns:string

public string Sandbox.GameResourceAttribute.IconBgColor { get; set; }PUBLICGETSET

Background color for this resource's thumbnail.

Returns:string

public string Sandbox.GameResourceAttribute.IconFgColor { get; set; }PUBLICGETSET

Foreground color (icon color) for this resource's thumbnail.

Returns:string

On this page