Class AssetReferenceAttribute
Specifies a options for an asset reference picker in the editor. Allows to customize view or provide custom value assign policy.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
public class AssetReferenceAttribute : Attribute
Constructors
AssetReferenceAttribute(Boolean)
Initializes a new instance of the AssetReferenceAttribute class.
Declaration
public AssetReferenceAttribute(bool useSmallPicker)
Parameters
System.Boolean
useSmallPicker
True if use asset picker with a smaller height (single line), otherwise will use with full icon. |
AssetReferenceAttribute(String, Boolean)
Initializes a new instance of the AssetReferenceAttribute class.
Declaration
public AssetReferenceAttribute(string typeName = null, bool useSmallPicker = false)
Parameters
System.String
typeName
The full name of the asset type to link. Use null or empty to skip it. Can be used as file extension filter if starts with a dot and used over string property. |
System.Boolean
useSmallPicker
True if use asset picker with a smaller height (single line), otherwise will use with full icon. |
AssetReferenceAttribute(Type, Boolean)
Initializes a new instance of the AssetReferenceAttribute class.
Declaration
public AssetReferenceAttribute(Type typeName = null, bool useSmallPicker = false)
Parameters
System.Type
typeName
The full name of the asset type to link. Use null or empty to skip it. |
System.Boolean
useSmallPicker
True if use asset picker with a smaller height (single line), otherwise will use with full icon. |
Fields
TypeName
The full name of the asset type to link. Use null or empty to skip it. Can be used as file extension filter if starts with a dot and used over string property.
Declaration
public string TypeName
Field Value
System.String
|
UseSmallPicker
True if use asset picker with a smaller height (single line), otherwise will use with full icon.
Declaration
public bool UseSmallPicker
Field Value
System.Boolean
|