- Home /
Change from Editor utility to Game Object ,Change Editor Utility in to Game Object
I am working MS Hololens. I am beginner in Programming. And i am using Holographic buttons in my project and on the Click event i am calling REST apis (Only GET for time being). I want to call from my button and result should be available on the UI TEXT prefab (Microsoft provided interactable objects ) So how should i point it to my GameObject (UITextPrefab) rather than Unity UI. Editor Uitlity is not allowing me to display and click event should be HolographicButton.
RestClient.GetArray(basePath + "/posts").Then(res => { EditorUtility.DisplayDiaglog("Posts", JsonHelper.ArrayToJsonString(res, true), "Ok"); return RestClient.GetArray(basePath + "/todos"); }).Then(res => { EditorUtility.DisplayDialog("Todos", JsonHelper.ArrayToJsonString(res, true), "Ok"); return RestClient.GetArray(basePath + "/users"); }).Then(res => { EditorUtility.DisplayDialog("Users", JsonHelper.ArrayToJsonString(res, true), "Ok");
// We can add specific options and override default headers for a request
requestOptions = new RequestHelper { Uri = basePath + "/photos", Headers = new Dictionary<string, string> { { "Authorization", "Other token..." } } };
return RestClient.GetArray<Photo>(requestOptions);
}).Then(res => {
EditorUtility.DisplayDialog("Header", requestOptions.GetHeader("Authorization"), "Ok");
// And later we can clean the default headers for all requests
RestClient.CleanDefaultHeaders();
}).Catch(err => EditorUtility.DisplayDialog("Error", err.Message, "Ok"));
}
any help would be great Thanks in advance
Your answer
Follow this Question
Related Questions
How to make paint coloring game in unity and COLOR specific part of image 0 Answers
Moving Line with Collider 0 Answers
Is it possible to create a hole for a door in a wall-like cube? 2 Answers
Draw a line from object to indicate power 0 Answers
Unity Editor not installing from unity hub.,Unity Editor is not installing from unity hub. 0 Answers