readonly or [ReadOnly] ?

is

the same as using that

public Rect r;```

Nope.
readonly is a C# language thing

[ReadOnly] only affects [NativeContainer] types and alters which safety checks throw exceptions.

2 Likes

gotcha, thanks