Voltaia
Voltaia7mo ago

Undeprecate IsOwnedX

Just a nitpick, but ownership flags ending in "Self" (i.e. "isOwnedRemotelySelf") was really confusing when I was getting started. I understand the purpose is to differentiate from hierarchal ownership, but hierarchal ownership flags already end with "InHierarchy" (i.e. "isOwnedLocallyInHierarchy") so the distinction already exists. It simply confuses newcomers searching for the proper flag.
3 Replies
Voltaia
VoltaiaOP7mo ago
To clear up my past confusion, my thought process went a bit like this: "isOwnedLocallySelf? What does it mean to be owned locally and owned by myself? Doesn't that just mean the same thing twice?" Like I said though, just a nitpick. Things like this itch at the back of my brain from time to time.
liamc
liamc7mo ago
The naming matches unity's gameObject activeSelf and activeInHierarchy naming conventions. On its own it could be unintuitive, but in a unity context it makes sense imo
Voltaia
VoltaiaOP7mo ago
I hadn't thought about that. So then I have Unity to blame!