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

Can Mirror be used to call methods with the [Command] attribute through UI buttons? Why am I getting a NullReferenceException error with the message "Object reference not set to an instance of an object" when I make the call? Does anyone knowledgeable about this issue? #3817

Closed
FangChenmie opened this issue Apr 28, 2024 · 5 comments

Comments

@FangChenmie
Copy link

Describe the bug
A clear and concise description of what the bug is.

[IMPORTANT] How can we reproduce the issue, step by step:
Please tell us how to reproduce your issue, STEP BY STEP, with one of our built in examples.
-> Tell us every single click / key press so we can reproduce it
-> If it can't be reproduced with our built in examples, tell us what else to do
-> Explain like we are five

Any bug that can be reproduced, can be fixed.
If we can't reproduce it, we can't fix.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows, MacOS]
  • Build target: [e.g. Android, webgl, standalone, iOS]
  • Unity version: [e.g. 2017.4]
  • Mirror branch: [e.g. master, 2018]

Additional context
Add any other context about the problem here.

@SoftwareGuy
Copy link
Contributor

  • Please fill out the ticket correctly.
  • Judging from your questions, this may have been better to ask in the Discord.

@RPDevJesco
Copy link

This... Doesn't look like an issue with mirror... This looks like a PEBKAC issue.

@FangChenmie
Copy link
Author

这。。。看起来不像是镜子的问题......这看起来像是 PEBKAC 问题。
I want to remotely control the movement of a crane model on a server through Mirror. Initially, I successfully controlled the model's movement via keyboard input on the server side. Later, I switched to using button clicks for control. Besides this change, nothing else was altered. However, this resulted in an error. Subsequently, I tried to simplify the process by having the button send a string of numbers to the server, but the same error still occurred."

@FangChenmie
Copy link
Author

  • Please fill out the ticket correctly.
  • Judging from your questions, this may have been better to ask in the Discord.

Thank you for your suggestion, I'll give it a try.

@MrGadget1024
Copy link
Collaborator

Support is available through Discord.

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

4 participants