Class AssetPathAttribute
Runtime equivalent of FilePathAttribute.
Used to define the relative path for ScriptableObjects that are loaded at runtime.
For example:
[AssetPath("Settings/MySettings", AssetPathAttribute.Location.ResourcesFolder)]
public class MySettings : ScriptableInstance<MySettings>
will load the ScriptableObject from:
Assets/Resources/Settings/MySettings.asset
Inherited Members
Namespace: Glitch9
Assembly: Glitch9.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public class AssetPathAttribute : Attribute
Constructors
| Edit this page View SourceAssetPathAttribute(string, Location)
Declaration
public AssetPathAttribute(string relativePath, AssetPathAttribute.Location location)
Parameters
| Type | Name | Description |
|---|---|---|
| string | relativePath | |
| AssetPathAttribute.Location | location |
Properties
| Edit this page View Sourcefilepath
Declaration
public string filepath { get; }
Property Value
| Type | Description |
|---|---|
| string |