I have a custom Component, SpawnPoint, that I use to handle spawning players at a random spawn point of their team color. I'm trying to give the Component a custom icon by setting EditorHintImage attribute, but it just defaults to the folder icon. Can someone help me figure out where I'm going wrong?
In SpawnPoint.cs:
Code:
[EditorHintImage(ResNames.ImageSpawnPoint)]
public class SpawnPoint : Component, ICmpRenderer
{
// normal Component code
}
In ResNames.cs:
Code:
public static class ResNames
{
private const string ManifestBaseName = "TestGame.EmbeddedResources.";
public const string Category = "TestGame";
public const string ImageSpawnPoint = ManifestBaseName + "iconResSpawnPoint.png";
}
In my CorePlugin project, I've created a folder "EmbeddedResources". Inside is my 16x16 image with the name iconResSpawnPoint.png. Is there anything else I need in that folder to make it work?