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

fix: fixing rpc return values for unity 2021.2 #1000

Merged
merged 1 commit into from
Dec 4, 2021

Conversation

James-Frowen
Copy link
Member

making Skeleton method static and adding the behaviour as the first arg.

Previously method was an instance method, and behaviour was assumed to be first arg, this seemed to work in older versions of unity but has broken in 2021.2 when the method has a return value

fixes: #997

@sonarcloud
Copy link

sonarcloud bot commented Dec 4, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

making Skeleton method static and adding the behaviour as the first arg.

Previously method was an instance method,. and behaviour was assumed to be first arg, this seemed to work in older versions of unity but has broken in 2021.2 when the method has a return value
@James-Frowen James-Frowen merged commit a6ee5e8 into master Dec 4, 2021
@James-Frowen James-Frowen deleted the return-rpc-fix-2 branch December 4, 2021 22:34
github-actions bot pushed a commit that referenced this pull request Dec 4, 2021
## [113.0.3](v113.0.2...v113.0.3) (2021-12-04)

### Bug Fixes

* fixing rpc return values for unity 2021.2 ([#1000](#1000)) ([a6ee5e8](a6ee5e8))
@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2021

🎉 This PR is included in version 113.0.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Calling async ServerRpc that returns value crashes the server on 2021.2
1 participant