Ei kuvausta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }