Nessuna descrizione
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.

IInspectable.cs 977B

123456789101112131415161718192021
  1. using System;
  2. using System.Reflection;
  3. using UnityEngine.UIElements;
  4. namespace UnityEditor.ShaderGraph.Drawing
  5. {
  6. interface IInspectable
  7. {
  8. // Implementors can override this in order to display their desired string when selected and viewed through the inspector
  9. string inspectorTitle { get; }
  10. // This function should return the underlying data object that user wishes to expose to the Inspector
  11. // For simple data properties like Integers/Floats this is the object that contains the properties
  12. // For complex types like GraphData this is the GraphData itself, its up to the PropertyDrawer to define what it needs
  13. object GetObjectToInspect();
  14. // Used to provide any data needed by the property drawer from the inspectable
  15. // The inspectorUpdateDelegate is used to trigger an inspector update
  16. void SupplyDataToPropertyDrawer(IPropertyDrawer propertyDrawer, Action inspectorUpdateDelegate);
  17. }
  18. }