Skip to content
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

Idea for debug aid for NetworkTrigger objects #172

Open
jackjansen opened this issue May 15, 2024 · 0 comments
Open

Idea for debug aid for NetworkTrigger objects #172

jackjansen opened this issue May 15, 2024 · 0 comments

Comments

@jackjansen
Copy link
Collaborator

One of the problems with the NetworkTrigger and the other subclasses of NetworkIdBehaviour is that it is very difficult to make sure the NetworkId fields have all been initialised correctly and consistently.

Here is an idea to help that.

  • We implement a ping or touch event that all NetworkIdBehaviour subscribe to. They set a field touched=true when touched.
  • We implement a Unity editor extension command Touch All Networked Objects. This will find all NetworkIdBehaviour in the scene and have each emit a touch message.
  • We use this command while running, in a multi-user session. This should touch all remote instances of every local NetworkIdBehaviour. Any one that doesn't exist remotely should give an error message there.
  • Now, remotely we run Ensure All Networked Objects Touched. This enumerates over the NetworkIdBehaviour objects and ensures each one has touched==true.
  • We could also run it locally (on the machine where we touched) to ensure the commands are also executed locally.

@ashutosh3308 @malte-khora (and maybe @troeggla ?): comments please...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant