Creating a delegate that accept a ref from a struct method
Yeah, for struct using a PropertyDrawer that relies on SerializedObject would make more sense (it would make even more sense for people to stop trying to listen for changed made on a struct).
Creating a delegate that accept a ref from a struct method
I'm not trying to serialize the delegate. It just creates a schedule in the inspector that will call the getter (ShowIf in the example) and then invoke a callback using the output.