GlobalConfigAttribute

This attribute is used by classes deriving from GlobalConfig and specifies the asset path for the generated config file.

namespace Sirenix.Utilities
{
[AttributeUsageAttribute((AttributeTargets)4)]
public class GlobalConfigAttribute : Attribute
}

Requirements

Namespace: Sirenix.Utilities
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

See Also

Constructors

Definition Description
GlobalConfigAttribute() Initializes a new instance of the GlobalConfigAttribute class.
GlobalConfigAttribute(string) Initializes a new instance of the GlobalConfigAttribute class.

Properties

Return Type Definition Description
string AssetPath Gets the relative asset path. Only relevant if IsInResourcesFolder is false.
string FullPath Gets the full asset path including Application.dataPath. Only relevant if IsInResourcesFolder is false.
bool IsInResourcesFolder Gets a value indicating whether this asset is located within a resource folder.
string ResourcesPath Gets the resources path. Only relevant if IsInResourcesFolder is true.
bool UseAsset Whether the config should be associated with an asset in the project. If false, no config asset will be generated or loaded, and a new "temporary" config instance will be created for every reload. This is true by default.