dilmerv / Unityrestclient
A Restful Client For Unity3d Developers
Stars: ✭ 53
Labels
Projects that are alternatives of or similar to Unityrestclient
Testbedhdrp
Testbed project for Unity HDRP (High Definition Render Pipeline)
Stars: ✭ 859 (+1520.75%)
Mutual labels: shaderlab
Arfoundation vfx
AR Foundation setup for URP and VFX graph
Stars: ✭ 41 (-22.64%)
Mutual labels: shaderlab
2d Shaders Book Foundations Exercises
Exercises for the first book of the 2D Shader Development series.
Stars: ✭ 15 (-71.7%)
Mutual labels: shaderlab
Stanford Bunny Fur With Unity
Using the Geometry Shader to generate fur on GPU.
Stars: ✭ 33 (-37.74%)
Mutual labels: shaderlab
Sprites Outline
Outline effect for Unity SpriteRenderer
Stars: ✭ 39 (-26.42%)
Mutual labels: shaderlab
Shaderlabvs
ShaderlabVS is a Visual Studio plugin for Unity Shaderlab programming
Stars: ✭ 841 (+1486.79%)
Mutual labels: shaderlab
Xrinteractiondemo
XR Interaction Toolkit examples for AR and VR.
Stars: ✭ 47 (-11.32%)
Mutual labels: shaderlab
Cubism Shader
A shader that creates a cubism effect based on voronoi segmentation in Unity 3d
Stars: ✭ 34 (-35.85%)
Mutual labels: shaderlab
Packedrgbmshader
32-bit packed color format with RGBM encoding for shader use
Stars: ✭ 39 (-26.42%)
Mutual labels: shaderlab
Post Processing Demo
Demo for post-processing implement in Unity.
Stars: ✭ 42 (-20.75%)
Mutual labels: shaderlab
Distortionimageeffect
An image effect based distortion/heat effect that doesn't use grab pass
Stars: ✭ 51 (-3.77%)
Mutual labels: shaderlab
UnityRestClient
A Restful Client that allows making simple GET, POST, PUT, and DELETE http calls from within Unity3d.
How to Use It ?
There are two scenes currently in the project that can be used to find out how to use it. Also few snippets below to demo its functionality within Unity3d.
- Example of how to call Azure Vision API
// setup the request header
RequestHeader clientHeader = new RequestHeader {
Key = clientId,
Value = clientSecret
};
// build image url required by Azure Vision OCR
ImageUrl imageUrl = new ImageUrl {
Url = "https://github.com/dilmerv/AzureVisionAPI/blob/master/images/IMG_5301.JPG?raw=true"
};
// send a post request
StartCoroutine(RestWebClient.Instance.HttpPost(baseUrl, JsonUtility.ToJson(imageUrl), (r) => OnRequestComplete(r), new List<RequestHeader>
{
clientHeader
}));
- Example of Get and Post
// send a get request
StartCoroutine(RestWebClient.Instance.HttpGet($"{baseUrl}api/values", (r) => OnRequestComplete(r)));
// setup the request header
RequestHeader header = new RequestHeader {
Key = "Content-Type",
Value = "application/json"
};
// send a post request
StartCoroutine(RestWebClient.Instance.HttpPost($"{baseUrl}api/values",
JsonUtility.ToJson(new Player { FullName = "John Doe" }),
(r) => OnRequestComplete(r), new List<RequestHeader> { header } ));
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].