protected override void Reset() { base.Reset(); var iso_object = GetComponent<IsoObject>(); radius = iso_object ? IsoUtils.Vec3MinF(iso_object.size) * 0.5f : 0.0f; offset = iso_object ? iso_object.size * 0.5f : Vector3.zero; EditorUtility.SetDirty(this); }