Please provide `GetInstanceOwner()`
complete
LefTonbo
Generally
Master
PlayerApi can be get with GetOwner()
because Master owns most of object, but currently 'InstanceOwner' PlayerApi cannot be get with easy way.Looping and checking with
IsInstanceOwner()
may get who is InstanceOwner but it takes performance cost.So we need
Networking.GetInstanceOwner()
to get InstanceOwner PlayerApi.Log In
Momo the Monster
complete
IsInstanceOwner is available as of SDK 3.7.0: https://creators.vrchat.com/releases/release-3-7-0/#new-features
Momo the Monster
tracked
What is it that you want to do with GetInstanceOwner that you cannot do with IsInstanceOwner? An example of what you're trying to do would help us understand the underlying problem you're trying to solve.
Jar
Momo the Monster: Functionally the same thing but I think they're saying it would just be nice to have, and take less code to get a reference to the owner. Like how we have bool playerApi.IsLocal but we also have PlayerApi Networking.LocalPlayer. I agree it would be nice to have both playerApi.IsInstanceOwner and also Networking.GetInstanceOwner.