暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

BoltStateResources.cs 918B

123456789101112131415161718192021222324252627282930313233343536
  1. namespace Unity.VisualScripting
  2. {
  3. [Plugin(BoltState.ID)]
  4. public sealed class BoltStateResources : PluginResources
  5. {
  6. private BoltStateResources(BoltState plugin) : base(plugin)
  7. {
  8. icons = new Icons(this);
  9. }
  10. public Icons icons { get; private set; }
  11. public override void LateInitialize()
  12. {
  13. icons.Load();
  14. }
  15. public class Icons
  16. {
  17. public Icons(BoltStateResources resources)
  18. {
  19. this.resources = resources;
  20. }
  21. private readonly BoltStateResources resources;
  22. public EditorTexture graph { get; private set; }
  23. public EditorTexture state { get; private set; }
  24. public void Load()
  25. {
  26. graph = typeof(StateGraph).Icon();
  27. state = typeof(State).Icon();
  28. }
  29. }
  30. }
  31. }