We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add a versioned scripting define symbol such as METAMASK_{Version Number} to the Unity project settings when Metamask Unity is installed.
METAMASK_{Version Number}
Add a csc.rsp file in Assets/ with contents
-define:METAMASK_V1
Code can be conditionally compiled when Metamask is included in the Unity project. The version should be increased any time there is major changes.
#if METAMASK_V1 //Metamask version 1 specific code #elif METAMASK_V2 //Metamask version 2 specific code #endif
This example script shows usage of a manually added METAMASK scripting define symbol. The script can exist in the project, without compilation errors, when Metamask Unity is not installed and the METAMASK scripting define has not been added. https://github.com/WoodsFiend/Moralis-Unity-SDK/blob/master/Scripts/MetaMask/MetaMaskProxyServerLogin.cs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature Request
Add a versioned scripting define symbol such as
METAMASK_{Version Number}
to the Unity project settings when Metamask Unity is installed.Why it is needed
Possible implementation
Add a csc.rsp file in Assets/ with contents
Code sample
Code can be conditionally compiled when Metamask is included in the Unity project. The version should be increased any time there is major changes.
Example
This example script shows usage of a manually added METAMASK scripting define symbol. The script can exist in the project, without compilation errors, when Metamask Unity is not installed and the METAMASK scripting define has not been added.
https://github.com/WoodsFiend/Moralis-Unity-SDK/blob/master/Scripts/MetaMask/MetaMaskProxyServerLogin.cs
The text was updated successfully, but these errors were encountered: