ReadOnly Inspector Attribute Kit


ReadOnly Inspector Attribute Kit makes Unity Inspector fields read-only. Supports various types including Vector3, Color, AnimationCurve, GameObject and Components.


by xeetsh - Maximilian T. Schmitt


Price History +

Enhance your Unity development workflow with the ReadOnly Inspector Attribute Kit, a powerful tool designed to make fields in the Unity Inspector read-only. This asset ensures that certain values cannot be altered during runtime, preserving data integrity and preventing accidental modifications.


Docs - Forum Thread - Contact - Website


Key Features:

  • Read-Only Fields: Apply the [ReadOnly] attribute to any field in your MonoBehaviour or ScriptableObject scripts to lock them in the Inspector. This feature is perfect for displaying constant values or safeguarding critical data.
  • Extensive Type Support: The kit supports a broad range of data types, including: Integer, Float, Boolean, String, Color, Vector2, Vector3, Vector4, Vector2Int, Vector3Int, Rect, RectInt, Quaternion, Bounds, BoundsInt, AnimationCurve, Gradient (Unity 6), LayerMask, Enum, GameObject, Prefabs, Components, Object References
  • Enhanced Display: Custom styling is applied to special data types like Color, AnimationCurve, and GameObject to improve their visibility and representation in the Inspector.
  • Clickable References: For GameObject and Component types, clicking the field will show their reference in the scene or project view.

Installation & Usage:

  1. Import the ReadOnly Inspector Attribute Kit from the Unity Asset Store.
  2. Import the extension to your script using xeetsh.ReadOnlyInspectorAttributeKit;
  3. Add the [ReadOnly] attribute to fields in your scripts. To display private fields, use [SerializeField] alongside [ReadOnly].

Limitations:

  • Arrays cannot be fully locked; while values are read-only, array size and order can be adjusted in newer Unity versions.

For support, contact us at support@xeet.sh. Published under Unity Asset Store Terms of Service and EULA.


League Spartan font (Used for AssetStore Graphics) licensed under SLI Open Fonts License