{"id":16207989,"url":"https://github.com/coryleach/unitygiphy","last_synced_at":"2025-03-19T08:30:40.021Z","repository":{"id":138391114,"uuid":"263533909","full_name":"coryleach/UnityGiphy","owner":"coryleach","description":"Library for using the GiphyAPI in Unity to get and play random Gifs as MP4s","archived":false,"fork":false,"pushed_at":"2020-06-13T22:47:37.000Z","size":102,"stargazers_count":38,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-01-28T23:12:58.479Z","etag":null,"topics":["api","gif","giphy","package","ugui","ui","unity","unity3d"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coryleach.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-05-13T05:28:44.000Z","updated_at":"2023-09-02T01:25:17.000Z","dependencies_parsed_at":"2023-04-30T11:00:28.694Z","dependency_job_id":null,"html_url":"https://github.com/coryleach/UnityGiphy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryleach%2FUnityGiphy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryleach%2FUnityGiphy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryleach%2FUnityGiphy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coryleach%2FUnityGiphy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coryleach","download_url":"https://codeload.github.com/coryleach/UnityGiphy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244389665,"owners_count":20444979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","gif","giphy","package","ugui","ui","unity","unity3d"],"created_at":"2024-10-10T10:15:02.254Z","updated_at":"2025-03-19T08:30:39.532Z","avatar_url":"https://github.com/coryleach.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg align=\"center\" src=\"https://raw.githubusercontent.com/coryleach/UnityPackages/master/Documentation/GameframeFace.gif\" /\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003eGameframe.Giphy 👋\u003c/h1\u003e\n\n\u003c!-- BADGE-START --\u003e\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/5b5f5409ad6f4cb8aea6cd40b457a55f)](https://www.codacy.com/manual/coryleach/UnityGiphy?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=coryleach/UnityGiphy\u0026amp;utm_campaign=Badge_Grade)\n![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/coryleach/UnityGiphy?include_prereleases)\n[![openupm](https://img.shields.io/npm/v/com.gameframe.giphy?label=openupm\u0026amp;registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gameframe.giphy/)\n[![license](https://img.shields.io/github/license/coryleach/UnityGiphy)](https://github.com/coryleach/UnityGiphy/blob/master/LICENSE)\n\n[![twitter](https://img.shields.io/twitter/follow/coryleach.svg?style=social)](https://twitter.com/coryleach)\n\u003c!-- BADGE-END --\u003e\n\nThis package contains a simple implementation of the Giphy API required to display random Gif images in Unity as MP4 videos.  \nThis package does not provide a means to display a gif directly but does provide urls to gif version of the images.  \nInstead this package uses the mp4 links provided by giphy's api to display the gifs as movies\n\n## Quick Package Install\n\n#### Using UnityPackageManager (for Unity 2019.3 or later)\nOpen the package manager window (menu: Window \u003e Package Manager)\u003cbr/\u003e\nSelect \"Add package from git URL...\", fill in the pop-up with the following link:\u003cbr/\u003e\nhttps://github.com/coryleach/UnityGiphy.git#2.0.0\u003cbr/\u003e\n\n#### Using UnityPackageManager (for Unity 2019.1 or later)\n\nFind the manifest.json file in the Packages folder of your project and edit it to look like this:\n```js\n{\n  \"dependencies\": {\n    \"com.gameframe.giphy\": \"https://github.com/coryleach/UnityGiphy.git#2.0.0\",\n    ...\n  },\n}\n```\n\n\u003c!-- DOC-START --\u003e\n\u003c!-- \nChanges between 'DOC START' and 'DOC END' will not be modified by readme update scripts\n--\u003e\n\n#### Using OpenUPM\n\nThe package is available on the [openupm registry](https://openupm.com/packages/com.gameframe.giphy/). It's recommended to install it via [openupm-cli](https://github.com/openupm/openupm-cli#openupm-cli).\n\n```\nopenupm add com.gameframe.giphy\n```\n\n\n## Usage\n\nTo get started you must create an app and get an API key on the https://developers.giphy.com/ website.\u003cbr /\u003e\nCreate your GiphyConfig asset by using the Create-\u003eGameframe-\u003eGiphy-\u003eConfig in the project tab's Create menu.\u003cbr /\u003e\nOnce you have created your GiphyConfig asset you should add your API key to it that you got from the Giphy developer website.\u003cbr /\u003e\nYou can use your config asset and the demo scene included in this package to get started.\n\nThis library provides a GiphyRawImageController component that can be used with RawImage and VideoPlayer\nfor displaying random giphy images in your UI but example API code is also shown below.\n\n```C#\n//You can make basic queries to Giphy using the API provide in the GiphyQuery class.\n//As of this writing only Random and Search endpoints are supported.\n//For more info on the query results please see the following documentation\n// https://developers.giphy.com/docs/api/endpoint\n\n//Example code that loads a random image and plays it as a video\npublic async void ShowRandomImage()\n{\n  //Get a single random result\n  var randomResult = await GiphyQuery.Random(apiKey,searchKeywords);\n\n  //Display the random image result using Unity's video player\n  videoPlayer.source = VideoSource.url;\n  videoPlayer.url = randomResult.result.data.images.original_mp4.mp4;\n  videoPlayer.Play();\n}\n```\n\n\u003c!-- DOC-END --\u003e\n\n## Author\n\n👤 **Cory Leach**\n\n* Twitter: [@coryleach](https://twitter.com/coryleach)\n* Github: [@coryleach](https://github.com/coryleach)\n\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n***\n_This README was generated with ❤️ by [Gameframe.Packages](https://github.com/coryleach/unitypackages)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoryleach%2Funitygiphy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoryleach%2Funitygiphy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoryleach%2Funitygiphy/lists"}