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

ShaderInputViewModel.cs 848B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using UnityEditor.ShaderGraph.Internal;
  3. using UnityEngine;
  4. using UnityEngine.UIElements;
  5. namespace UnityEditor.ShaderGraph.Drawing
  6. {
  7. class ShaderInputViewModel : ISGViewModel
  8. {
  9. public ShaderInput model { get; set; }
  10. public VisualElement parentView { get; set; }
  11. internal bool isSubGraph { get; set; }
  12. internal bool isInputExposed { get; set; }
  13. internal string inputName { get; set; }
  14. internal string inputTypeName { get; set; }
  15. internal Action<IGraphDataAction> requestModelChangeAction { get; set; }
  16. public void ResetViewModelData()
  17. {
  18. isSubGraph = false;
  19. isInputExposed = false;
  20. inputName = String.Empty;
  21. inputTypeName = String.Empty;
  22. requestModelChangeAction = null;
  23. }
  24. }
  25. }