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

ControlInputWidget.cs 644B

1234567891011121314151617
  1. using UnityEngine;
  2. namespace Unity.VisualScripting
  3. {
  4. [Widget(typeof(ControlInput))]
  5. public class
  6. ControlInputWidget : UnitInputPortWidget<ControlInput>
  7. {
  8. public ControlInputWidget(FlowCanvas canvas, ControlInput port) : base(canvas, port) { }
  9. protected override Texture handleTextureConnected => BoltFlow.Icons.controlPortConnected?[12];
  10. protected override Texture handleTextureUnconnected => BoltFlow.Icons.controlPortUnconnected?[12];
  11. protected override bool colorIfActive => !BoltFlow.Configuration.animateControlConnections || !BoltFlow.Configuration.animateValueConnections;
  12. }
  13. }