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?
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.
- Please fill out the ticket correctly.
- Judging from your questions, this may have been better to ask in the Discord.
This... Doesn't look like an issue with mirror... This looks like a PEBKAC issue.
这。。。看起来不像是镜子的问题......这看起来像是 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."
- 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.
Support is available through Discord.