ReadOnlyΒΆ
Make a serialized field readonly
Note
If you want to use it on fields that are nested inside serialized structs or classes you need to use the AllowNesting attribute.
public class NaughtyComponent : MonoBehaviour
{
[ReadOnly]
public Vector3 forwardVector = Vector3.forward;
}