UI Customization
Summary
Reference
Parameter
Type
Definition
Example
using Metafi.Unity;
using System.Dynamic;
public class StartButton : MonoBehaviour {
async void Start() {
Debug.Log("Initializing Metafi Provider");
dynamic _options = new ExpandoObject();
_options.logo = @"Assets/Resources/logo-2.png";
_options.theme = new {
fontColors = new {
primary = "#FFFFFF",
secondary = "#e8e8e8"
},
bgColor = "#29327F",
ctaButton = new {
color = "#F19B28",
fontColor = "#FFFFFF"
},
optionButton = new {
color = "rgba(255,255,255,0.1)",
fontColor = "#FFFFFF"
},
metafiLogoColor = "light",
};
await MetafiProvider.Instance.Init(
"apiKey",
"secretKey",
_options,
new List<Chain> {Chains.ETH, Chains.MATIC, Chains.GOERLI, Chains.MUMBAI},
new List<Token> {},
false
);
Debug.Log("Metafi Provider initialized");
}
}Last updated