Closed
Description
SDK Version: 2.0.0
Parse Server version: 4.5.0
Local or remote host: Local
Use in Unity.
I can use await client.SignUpAsync(username: "Test", password: "Test");
to sign up success in parse,
but i use cloud code, always show me this error: The name 'ParseCloud' does not exist in the current context
I searched every possible keyword, but no solution was found.
Could you please tell me how to solve this problem, Thanks!
void Start()
{
new ParseClient("x", "http://localhost:1337/api", "x"
,
new LateInitializedMutableServiceHub { },
new MetadataMutator
{
EnvironmentData = new EnvironmentData { OSVersion = SystemInfo.operatingSystem, Platform = $"Unity {Application.unityVersion} on {SystemInfo.operatingSystemFamily}", TimeZone = TimeZoneInfo.Local.StandardName },
HostManifestData = new HostManifestData { Name = Application.productName, Identifier = Application.productName, ShortVersion = Application.version, Version = Application.version }
}
).Publicize();
}
public async void fetchGuideInfoAction()
{
IDictionary<string, object> dictionary = new Dictionary<string, object>
{
{ "name", "test" }
};
ParseCloud.CallFunctionAsync<float>("fetchGuideInfo", dictionary).ContinueWith(t =>
{
var result = t.Result;
Debug.Log(result);
});
}