All Projects → coryleach → UnityGiphy

coryleach / UnityGiphy

Licence: MIT license
Library for using the GiphyAPI in Unity to get and play random Gifs as MP4s

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to UnityGiphy

gifbar
🦄 Find Awesome Gif's right in your Menu Bar
Stars: ✭ 37 (+5.71%)
Mutual labels:  giphy, gif
react-native-giphy
Integrate GIPHY into your React Native project (works with react-native-gifted-chat)
Stars: ✭ 25 (-28.57%)
Mutual labels:  giphy, gif
giphygram
🔎 Experimental React application for searching GIF images on GIPHY
Stars: ✭ 23 (-34.29%)
Mutual labels:  giphy, gif
GiphyImageResultsPreview
Library for GIF results, preview, play, share everything at one place!
Stars: ✭ 28 (-20%)
Mutual labels:  giphy, gif
SwiftyGiphy
A UI and API layer for Giphy discovery and integration.
Stars: ✭ 90 (+157.14%)
Mutual labels:  giphy, gif
giphy-js
Official GIPHY packages
Stars: ✭ 101 (+188.57%)
Mutual labels:  giphy
p5.gif
P5.js gif helper
Stars: ✭ 36 (+2.86%)
Mutual labels:  gif
oembed
PHP OEmbed wrapper for well-known video platforms and services
Stars: ✭ 26 (-25.71%)
Mutual labels:  giphy
giphy-react-native-sdk
GIPHY react native SDK
Stars: ✭ 28 (-20%)
Mutual labels:  giphy
UnityGUI
UGUI Panel Systems for navigation, animation and more
Stars: ✭ 80 (+128.57%)
Mutual labels:  ugui
imagemin-gifsicle
Imagemin plugin for Gifsicle
Stars: ✭ 105 (+200%)
Mutual labels:  gif
slip
Select and upload screenshots, gifs, and screencasts to imgur and gfycat with help of slop.
Stars: ✭ 25 (-28.57%)
Mutual labels:  gif
giphy picker
A giphy picker for flutter
Stars: ✭ 32 (-8.57%)
Mutual labels:  giphy
tootbot
Python tool for mirroring Reddit posts to Twitter and Mastodon
Stars: ✭ 68 (+94.29%)
Mutual labels:  giphy
ios-nd-gif-maker-objc
Resources for Udacity's Gif Maker app in Objective-C.
Stars: ✭ 17 (-51.43%)
Mutual labels:  gif
scifgif
Humorous image microservice for isolated networks
Stars: ✭ 18 (-48.57%)
Mutual labels:  giphy
alfred-imagemin
Alfred workflow - Minify images with Imagemin
Stars: ✭ 29 (-17.14%)
Mutual labels:  gif
movtogif-cli
📺 Convert mov/mp4 to high-quality animated gifs
Stars: ✭ 58 (+65.71%)
Mutual labels:  gif
UnityDynamicScrollView
Dynamic scrollView based on UGUI
Stars: ✭ 161 (+360%)
Mutual labels:  ugui
AMProgressHUD
A gif progress HUD for iOS.
Stars: ✭ 18 (-48.57%)
Mutual labels:  gif

Gameframe.Giphy 👋

Codacy Badge GitHub release (latest by date including pre-releases) openupm license

twitter

This package contains a simple implementation of the Giphy API required to display random Gif images in Unity as MP4 videos.
This package does not provide a means to display a gif directly but does provide urls to gif version of the images.
Instead this package uses the mp4 links provided by giphy's api to display the gifs as movies

Quick Package Install

Using UnityPackageManager (for Unity 2019.3 or later)

Open the package manager window (menu: Window > Package Manager)
Select "Add package from git URL...", fill in the pop-up with the following link:
https://github.com/coryleach/UnityGiphy.git#2.0.0

Using UnityPackageManager (for Unity 2019.1 or later)

Find the manifest.json file in the Packages folder of your project and edit it to look like this:

{
  "dependencies": {
    "com.gameframe.giphy": "https://github.com/coryleach/UnityGiphy.git#2.0.0",
    ...
  },
}

Using OpenUPM

The package is available on the openupm registry. It's recommended to install it via openupm-cli.

openupm add com.gameframe.giphy

Usage

To get started you must create an app and get an API key on the https://developers.giphy.com/ website.
Create your GiphyConfig asset by using the Create->Gameframe->Giphy->Config in the project tab's Create menu.
Once you have created your GiphyConfig asset you should add your API key to it that you got from the Giphy developer website.
You can use your config asset and the demo scene included in this package to get started.

This library provides a GiphyRawImageController component that can be used with RawImage and VideoPlayer for displaying random giphy images in your UI but example API code is also shown below.

//You can make basic queries to Giphy using the API provide in the GiphyQuery class.
//As of this writing only Random and Search endpoints are supported.
//For more info on the query results please see the following documentation
// https://developers.giphy.com/docs/api/endpoint

//Example code that loads a random image and plays it as a video
public async void ShowRandomImage()
{
  //Get a single random result
  var randomResult = await GiphyQuery.Random(apiKey,searchKeywords);

  //Display the random image result using Unity's video player
  videoPlayer.source = VideoSource.url;
  videoPlayer.url = randomResult.result.data.images.original_mp4.mp4;
  videoPlayer.Play();
}

Author

👤 Cory Leach

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by Gameframe.Packages

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].