private static void DefineReadOnlyProperty(ScriptableObject obj, string name, object value) { ScriptableObject.PutProperty(obj, name, value); obj.SetAttributes(name, ScriptableObject.READONLY | ScriptableObject.PERMANENT); }