oyaditekiko
11 months ago  Karma: 10
When using UnitySDK, how to get return value?

Hello,
I want a return value using UnitySDK from the contract below

Contract function
function get() public view returns(uint[10])

UnitySDK「EvmContract.cs」function
CallSimpleTypeOutputAsync("get")
But using this function did not succeed ...
Please tell me how you can earn

en
#Unity
evm
#contracts
oyaditekiko
11 months ago  Karma: 10
When using UnitySDK, how to get return value?

Hello,
I want a return value using UnitySDK from the contract below

Contract function
function get() public view returns(uint[10])

UnitySDK「EvmContract.cs」function
CallSimpleTypeOutputAsync("get")
But using this function did not succeed ...
Please tell me how you can earn

en
#Unity
evm
#contracts

ONE ANSWER
kayden.hughes
11 months ago Karma: 1622

Can you please provide more details? What error did you get?

Can you please provide more details? What error did you get?

oyaditekiko

The following error appears in UnityConsole

MissingMethodException: Default constructor not found for type System.UInt32[]
System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) (at :0)
System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) (at :0)
.
.
.

Aug 29 '18 at 2:04 pm
Earn tokens by posting and answering questions about blockchain!
Karma to eth
YOUR ANSWER