Skip to main content

GeneralValue

An abstract class in Alta.Values, Alta.

Base for many of the game's ScriptableObject assets: just a description field and a type slot.

Constructors​

MemberWhat it is
protected GeneralValue()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private string descriptionBacking field for Description. Defaults to "No description".

Properties​

MemberWhat it is
string Description { get; }Free text description of the asset. "No description" by default.
virtual Type Type { get; set; }A System.Type that subclasses can use. Null by default.

Used in​

Members of other types that take, return or hold a GeneralValue: