Property IconPath
| Improve this Doc View SourceIconPath
The path to load an icon png/jpg file from.
If you wish to load from an asset bundle, use a
This sample shows how you would load a sprite from an asset bundle:
$
to separate the path to the asset bundle,
and your sprite name in the asset bundle
This cannot be set if Icon is also set. You can only set one of them at once.
IconPath = "MyMod/Assets/assetbundle$mysprite"
Declaration
public string IconPath { set; }
Property Value
Type | Description |
---|---|
string |