1.0.0 • Published 7 months ago

com.iron-mountain.inspector-attributes v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Inspector Attributes

Version: 1.0.0 Custom attribute that extend basic inspector functionality.

Use Cases:

  • Make a field read-only
  • Show a field conditionally based on other fields.

Package Mirrors:

Key Scripts & Components:

  1. public class ReadOnlyAttribute : PropertyAttribute
  2. public class ShowIfAttribute : PropertyAttribute
    • Properties:
      • public String ComparedPropertyName { get; }
      • public Object ComparedValue { get; }
      • public ComparisonType Comparison { get; }
      • public DisablingType Disabling { get; }

Tests

  1. public class ShowIfTestBooleans : MonoBehaviour
  2. public class ShowIfTestEnumerations : MonoBehaviour
  3. public class ShowIfTestFloats : MonoBehaviour
  4. public class ShowIfTestIntegers : MonoBehaviour
1.0.0

7 months ago