-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
642 face cam #646
642 face cam #646
Conversation
Previously, it was set in the prefab, but we changed its visibility from public to private, in which case it is not serialized by default.
The FaceCam prefab will become a child of a player prefab, which is also a NetworkObject. Nested NetworkObjects are not allowed.
The FaceCam prefab will become a child of a player prefab, which is also a NetworkObject. Nested NetworkObjects are not allowed. That is why we just instantiate, but not spawn it.
It is used in the context of players.
Is does not need to be instantiated here. We want it to be instantiated for all players, not only those for the player on the server.
Previously, it was only deactivated, but it still didn't work.
when OnNetworkSpawn(). OnNetworkSpawn() can be called before Start().
instead of adding them as an instantiated child. This way we can make changes to the FaceCam only once for all players.
It caused trouble even though it was deactivated.
FaceCamOnOffToggle() is using this field, too.
LocalPlayer is now in a class of its own. It didn't belong here.
Added debugging output.
This may be the case on artificial nodes, such as the artificial roots on reflexion cities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two violations of our naming rules.
Co-authored-by: Falko <10247603+falko17@users.noreply.github.com>
Co-authored-by: Falko <10247603+falko17@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be good to merge once the pipeline runs through.
This branch is workings towards showing the video of all desktop player on all clients. Currently that is not the case as reported in issue #642. The problem is not yet fixed but in the course of starting to work on this issue here in this branch I fixed a null-pointer dereference during start-up of a player's avatar, reported by @falko17.
The changes made in this pull request fixes the problem and should be merged into the master. The branch will continue to exist for the additional work required for issue #642.