@startuml class ReadOnlyTest { + readOnlyInt : int = 5 } class ReadOnlyNest1 { + readOnlyFloat : float = 3.14f } struct ReadOnlyNest2 { + readOnlyString : string } MonoBehaviour <|-- ReadOnlyTest ReadOnlyTest --> "nest1" ReadOnlyNest1 ReadOnlyNest1 --> "nest2" ReadOnlyNest2 @enduml