Introducing Hive Keychain for Unity!
hivedevs·@crypt0gnome·
0.000 HBDIntroducing Hive Keychain for Unity!
 I wanted to create an example project to help the community learn how to connect @keychain to a Unity project, this should be helpful for game and application developers looking for a easy to setup option. This is currently an Unity Scene in the simplest form showing you how to Connect and using your username and set it to PlayerPrefs in the Unity Project. There are also some other simple examples but you will have to adjust the code to fit your needs until I build more on this. I Plan to make a simple dapp/ game in the future that I will open source showing how it can be used in more detail but think this is needed in the space to bring more indie developers to the Hive blockchain and will continue to build it out over the next few months. Here is a snippet of the connect function, pretty simple. ``` public void ConnectWallet() { #if !UNITY_EDITOR && UNITY_WEBGL GameObject canvas = GameObject.Find("Canvas"); //get text input from usernameInput TextMesh InputField TMP_InputField usernameInput = canvas.transform.Find("usernameInput").GetComponent<TMP_InputField>(); if (usernameInput.text == "") { //create webgl alert Application.ExternalEval("alert('Username is empty, please enter your hive username & use hive keychain to sign in')"); } else { //if not empty, connect to hive keychain Debug.Log("Username Sent: " + usernameInput.text); Connect(usernameInput.text); } #endif } ``` and a simple transfer ``` public void Transfer() { #if !UNITY_EDITOR && UNITY_WEBGL Transfer(username, "crypt0gnome", "1", "test xfer unity"); #endif } ``` You can view the full repo here and perhaps this should be bookmarked somewhere for users looking to find this in the future. https://github.com/CryptoGnome/Hive-KeyChain-Unity If you want to help support me you can check out my other project on Hive @splitnterboost or vote for us as wintess [here](https://hivesigner.com/sign/op/WyJhY2NvdW50X3dpdG5lc3Nfdm90ZSIseyJhY2NvdW50IjoiX19zaWduZXIiLCJ3aXRuZXNzIjoic3BsaW50ZXJib29zdCIsImFwcHJvdmUiOnRydWV9XQ..)
👍 splinterboost, atnep111, steemincome, splinterob, kryptofire, thepeoplesguild, apoloo1, glimpsytips.dex, thranax, steemadi, hivetrending, hive.pizza, drunksamurai, fieryfootprints, fireguardian, nooblogger, shauner, kyleana, portsundries, dadspardan, cooperclub, creodas, dajokawild, stickupmusic, thaddeusprime, banzafahra, nane-qts, epicur0, h3m4n7, kqaosphreak, queenstarr, zeclipse, bacon-dub, incantia, hurtlocker, plicc8, funnel, anikekirsten, luciannagy, nata86, dw-glgsy112321s, vault.tokens, kennysgaminglife, goliathus, birdbeaksd, rondonshneezy, eldritchspig, huzzah, pizzabot, dibblers.dabs, john9inch, szmobacsi, onthemountain, onewolfe, rentaw03, momongja, kettchup, marcinxyz, spiritverve, stickupcash, tillmea, swearingradio, cherute, thunderjack, lothbrox, blocktunes, the-pockets, studio3141, luckbound, prosocialise, rondonsleezy, fefe99, jbros, masterfarmer, scrodinger, dumnebari, thercek, lostkluster, ravenmus1c, efastromberg94, andriko, mcgilli, tdctunes, quentincc, blocktunesdao, brianoflondon, hivehydra, podping, cryptoccshow, blocktvnews, sovstar, sammyhive, crypt0gnome, nahupuku, arcange, achimmertens, shainemata, laruche, rohansuares, soychalbed, walterjay, robotics101, pboulet, ykretz, sagarkothari88, ancolie, roozeec, uruiamme, eirik, treasuregnome, ocd, roelandp, askari, newsflash, diegoameerali, zyx066, hanggggbeeee, tomatom, artmedina, javyeslava.photo, squareonefarms, chucknun, leveluplifestyle, rt395, martibis, indigoocean, ocdb, tristan.todd, pgm-curator, sholex94, ascendingorder, justinw, eonwarped, brotherhood, haccolong, apokruphos, zeesh, partiesjohall, cli4d, rawselectmusic, ocd-witness, kork75, zottone444, traderhive, josdelmi, justbekindtoday, the-burn, steem.services, dcrops, oleg326756, mamalikh13, straykat, madefrance, fotogruppemunich, hoaithu, anhvu, devann, kawsar8035, senseiphil, elgatoshawua, aprasad2325, bhdc, xocdb, myegoandmyself, stream4fun, variedades, meritocracy, ebargains, poliwalt10, detlev, jlsplatts, gabrielatravels, twosomesup, drax, usainvote, beerlover, pradeepdee6, iviaxpow3r, draygyn, iproto, ingi1976, olaunlimited, photographercr, stayoutoftherz, unklebonehead, resonator, ura-soul, informationwar, leprechaun, ausbitbank, investinfreedom, tftproject, ironshield, firstamendment, truthforce, risemultiversity, dmwh, empress-eremmy, deepdives, riskneutral, inigo-montoya-jr, n0m0refak3n3ws, shanhenry, delver, stevescoins, thecontesttrain, retard-gamer-de, v4vapid, primeradue, wakeupnd, insanityisfree, tydynrain, newsnownorthwest, commonlaw, clownworld, jimbobbill, eternalsuccess, maxsieg, ubikalo, libertycrypto27, ginnungagap, discovery-it, vittoriozuccala, nattybongo, adinapoli, juanbg, samuel.steem, maryincryptoland, maruskina, discovery-blog, delilhavores, ghastlygames, jilt, bindalove, cryptogillone, gianluccio, carolineschell, marcolino76, mad-runner, cooltivar, armandosodano, coccodema, middleearth, lallo, david.steem, titti, stregamorgana, tinyhousecryptos, victoriaxl, damaskinus, riccc96, peterpanpan, matteus57, ilpaso, mattbrown.art, farmingtales, dimascastillo90, castles, spiceboyz, ciuoto, stevenson7, jacopo.eth, alequandro, pab.ink, piumadoro, sbarandelli, spaghettiscience, phage93, pialejoana, meeplecomposer, omodei, capitanonema, flewsplash, yggdrasilwind, kkartdesign, maridmc, gaottantacinque, cribbio, gasaeightyfive, travelingmercies, serialfiller, rebekica, cooperfelix, donatello, romytokic, valenpba, joseluis91, martthesquire, retzark, dbuzz, youdontknowme, paulmoon410, nathansenn, mehmetfix, magnacarta.buzz, wlffreitas, richardslater, iamraincrystal, joeyarnoldvn, rbhayes, bustillo, nuagnorab, ronbong, everrich, catanknight, moneyheist-sl, krischy, nicolemoker, wrestorgonline, tobias-g,