Show / Hide Table of Contents

Property IconPath

| Edit this page View Source

IconPath

The path to load an icon png/jpg file from. If you wish to load from an asset bundle, use a $ 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.

This sample shows how you would load a sprite from an asset bundle:
IconPath = "MyMod/Assets/assetbundle$mysprite"
Declaration
public string IconPath { set; }
Property Value
Type Description
string
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾