create account

Introducing Hive Keychain for Unity! by crypt0gnome

View this thread on: hive.blogpeakd.comecency.com
· @crypt0gnome · (edited)
$35.49
Introducing Hive Keychain for Unity!
![image.png](https://files.peakd.com/file/peakd-hive/crypt0gnome/23tbKK28KfrZQRvSvdMFCm6hMEYmwjGTKnvf8kSSVUvL9F4DHcEFwCfue4Cedwc4Muq3r.png)


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..)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 245 others
👎  
properties (23)
authorcrypt0gnome
permlinkintroducing-hive-keychain-for-unity
categoryhivedevs
json_metadata"{"app":"peakd/2022.11.2","format":"markdown","description":"I wanted to create an example project to help the community learn how to connect Hive Keychain to a Unity project","tags":["hivedevs","hive","hivegaming","keychain","leofinance","defi","hivedev"],"users":["keychain","splitnterboost"],"image":["https://files.peakd.com/file/peakd-hive/crypt0gnome/23tbKK28KfrZQRvSvdMFCm6hMEYmwjGTKnvf8kSSVUvL9F4DHcEFwCfue4Cedwc4Muq3r.png"]}"
created2022-12-06 15:23:54
last_update2022-12-06 15:30:00
depth0
children14
last_payout2022-12-13 15:23:54
cashout_time1969-12-31 23:59:59
total_payout_value17.772 HBD
curator_payout_value17.718 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,370
author_reputation8,390,441,275,877
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id118,898,239
net_rshares75,349,959,890,529
author_curate_reward""
vote details (310)
@arcange ·
Dear @crypt0gnome,<br>May I ask you to review and support the new [HiveSQL Proposal](https://peakd.com/me/proposals/247) so we can keep it free to use for the community?<br>You can do it on [Peakd](https://peakd.com/me/proposals/247), [ecency](https://ecency.com/proposals/247), [Hive.blog](https://wallet.hive.blog/proposals) or [using HiveSigner](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22247%22%5D&approve=true)<br><br>Thank you!
properties (22)
authorarcange
permlinknotify-crypt0gnome-20221207143835
categoryhivedevs
json_metadata""
created2022-12-07 14:38:36
last_update2022-12-07 14:38:36
depth1
children0
last_payout2022-12-14 14:38:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length459
author_reputation1,146,606,639,109,506
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,923,080
net_rshares0
@discovery-it ·
<div class="pull-left">https://cdn.steemitimages.com/DQmTAn3c753LR7bHCLPo96g9UvRMaPFwaMYn8VQZa85xczC/discovery_logo_colore%20-%20Copia.png</div><br> This post was shared and voted inside the discord by the curators team of <a href="https://discord.gg/cMMp943"> discovery-it</a> <br>Join our community! <a href = "https://hive.blog/trending/hive-193212"> hive-193212</a><br>Discovery-it is also a Witness, vote for us <a href = "https://hivesigner.com/sign/account-witness-vote?witness=discovery-it&approve=true"> here</a>  <br>Delegate to us for passive income. Check our <a href = "https://hive.blog/hive-193212/@discovery-it/delegations-program-80-fee-back"> 80% fee-back Program</a> <hr>
properties (22)
authordiscovery-it
permlinkre-crypt0gnome-mpe8jcemef
categoryhivedevs
json_metadata"{"app": "beem/0.24.26"}"
created2022-12-07 23:15:18
last_update2022-12-07 23:15:18
depth1
children0
last_payout2022-12-14 23:15:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length690
author_reputation67,172,821,304,310
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,936,202
net_rshares0
@hivebuzz ·
Congratulations @crypt0gnome! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@crypt0gnome/upvoted.png?202212061720"></td><td>You received more than 500 upvotes.<br>Your next target is to reach 600 upvotes.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@crypt0gnome) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/hive-102201/@hivebuzz/wc2022-recap-r16-day3"><img src="https://images.hive.blog/64x128/https://i.imgur.com/uNPMgnd.png"></a></td><td><a href="/hive-102201/@hivebuzz/wc2022-recap-r16-day3">HiveBuzz World Cup Contest - Round of 16 - Recap of Day 3</a></td></tr><tr><td><a href="/hive-139531/@hivebuzz/proposal-2324"><img src="https://images.hive.blog/64x128/https://i.imgur.com/RNIZ1N6.png"></a></td><td><a href="/hive-139531/@hivebuzz/proposal-2324">The Hive Gamification Proposal Renewal</a></td></tr><tr><td><a href="/hive-122221/@hivebuzz/pum-202211-delegations"><img src="https://images.hive.blog/64x128/https://i.imgur.com/fg8QnBc.png"></a></td><td><a href="/hive-122221/@hivebuzz/pum-202211-delegations">Our Hive Power Delegations to the November PUM Winners </a></td></tr></table>

###### Support the HiveBuzz project. [Vote](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22248%22%5D&approve=true) for [our proposal](https://peakd.com/me/proposals/248)!
properties (22)
authorhivebuzz
permlinknotify-crypt0gnome-20221206t172252
categoryhivedevs
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-12-06 17:22:51
last_update2022-12-06 17:22:51
depth1
children0
last_payout2022-12-13 17:22:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,685
author_reputation369,398,097,140,070
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,901,092
net_rshares0
@iviaxpow3r ·
This is awesome @crypt0gnome !!

!PIZZA !LUV !ALIVE
properties (22)
authoriviaxpow3r
permlinkre-crypt0gnome-rmhj54
categoryhivedevs
json_metadata{"tags":["hivedevs"],"app":"peakd/2022.11.2"}
created2022-12-06 19:51:03
last_update2022-12-06 19:51:03
depth1
children2
last_payout2022-12-13 19:51:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length51
author_reputation6,791,800,915,590
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,904,439
net_rshares0
@luvshares ·
@crypt0gnome, @iviaxpow3r<sub>(1/10)</sub> sent you LUV. <a href="https://peakd.com/@luvshares/about" style="text-decoration:none"><img src="https://files.peakd.com/file/peakd-hive/crrdlx/AKU7oyCXxGwYyudB42kJ7JtoZ63bdeHvm4icoT9xdGNxA4i4BwudGyPvTQrEwPd.gif"></a> <a href="https://tribaldex.com/wallet/" style="text-decoration:none">wallet</a> | <a href="https://hive-engine.com/trade/LUV" style="text-decoration:none">market</a> | <a
    href="https://crrdlx.websavvy.work/" style="text-decoration:none">tools</a> | <a 
    href="https://discord.gg/K5GvNhcPqR" style="text-decoration:none">discord</a> | <a href="https://peakd.com/c/hive-159259">community | <a href="https://ichthys.netlify.app" style="text-decoration:none"><>< daily</a>
<br>
<center><a href="https://crrdlx.websavvy.work/wiki" target="_blank"><img src="https://files.peakd.com/file/peakd-hive/crrdlx/23sxEPgMNuQ5YPsuGungJ25Dpd6BjwgUmNkFAGCNnsKABBpUPXuRVgahFnwuZm9Qnf8Eh.png"></a><br><a href="https://crrdlx.websavvy.work/wiki" target="_blank">HiveWiki</a></center>
<br>
<center><a href="https://peakd.com/nftforpeace/@hivebuzz/nft-for-peace" target="_blank"><img src="https://files.peakd.com/file/peakd-hive/luvshares/242henrWsje7ivLwY3jxy15af3LJqvUzEmrEKAViGAowE1XsPqkDUuQ6QnwYpVJUWKN7c.gif"></a><br><a href="https://peakd.com/nftforpeace/@hivebuzz/nft-for-peace" target="_blank">HiveBuzz.me NFT for Peace</a></center>
properties (22)
authorluvshares
permlinkre-re-crypt0gnome-rmhj54-20221206t195125z
categoryhivedevs
json_metadata"{"app": "beem/0.24.26"}"
created2022-12-06 19:51:24
last_update2022-12-06 19:51:24
depth2
children0
last_payout2022-12-13 19:51:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,387
author_reputation5,651,102,754,153
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,904,451
net_rshares0
@youarealive ·
<center><p>@crypt0gnome! <b>You Are Alive</b> so I just staked 0.1 <b>$ALIVE</b> to your account on behalf of @iviaxpow3r. <sub>(1/10)</sub></p>
<p>The tip has been paid for by the <a href="https://www.wearealiveand.social/">We Are Alive Tribe</a> through the earnings on @alive.chat, feel free to swing by our daily chat any time you want. <br /> <img src="https://i.imgur.com/p2WXJLn.png"></p></center>
properties (22)
authoryouarealive
permlinkre-re-crypt0gnome-rmhj54-20221206t195127z
categoryhivedevs
json_metadata"{"app": "beem/0.24.26"}"
created2022-12-06 19:51:30
last_update2022-12-06 19:51:30
depth2
children0
last_payout2022-12-13 19:51:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length404
author_reputation10,957,576,749,300
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,904,455
net_rshares0
@libertycrypto27 ·
Very interesting!
!discovery 30
properties (22)
authorlibertycrypto27
permlinkre-crypt0gnome-2022128t01511579z
categoryhivedevs
json_metadata{"tags":["hivedevs","hive","hivegaming","keychain","leofinance","defi","hivedev"],"app":"ecency/3.0.30-vision","format":"markdown+html"}
created2022-12-07 23:15:06
last_update2022-12-07 23:15:06
depth1
children0
last_payout2022-12-14 23:15:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length32
author_reputation1,961,500,653,429,425
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,936,194
net_rshares0
@pizzabot · (edited)
RE: Introducing Hive Keychain for Unity!
<center>🍕 PIZZA !
 @crypt0gnome! The Hive.Pizza team manually upvoted your post.

I gifted <strong>$PIZZA</strong> slices here:
@iviaxpow3r<sub>(1/5)</sub> tipped @crypt0gnome (x1)


<sub>Learn more at https://hive.pizza!</sub></center>
properties (22)
authorpizzabot
permlinkre-introducing-hive-keychain-for-unity-20221206t171341z
categoryhivedevs
json_metadata"{"app": "beem/0.24.19"}"
created2022-12-06 17:13:39
last_update2022-12-06 19:51:21
depth1
children0
last_payout2022-12-13 17:13:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length236
author_reputation7,468,498,245,594
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,900,869
net_rshares0
@poshtoken · (edited)
https://twitter.com/1468626746106789889/status/1600216592826044416
https://twitter.com/40719748/status/1600592611450171393
<sub> The rewards earned on this comment will go directly to the people( @iviaxpow3r, @ubikalo ) sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.</sub>
properties (22)
authorposhtoken
permlinkre-crypt0gnome-introducing-hive-keychain-for-unity17384
categoryhivedevs
json_metadata"{"app":"Poshtoken 0.0.1","payoutToUser":["iviaxpow3r","ubikalo"]}"
created2022-12-06 19:53:36
last_update2022-12-07 20:47:48
depth1
children0
last_payout2022-12-13 19:53:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length335
author_reputation5,211,711,362,417,082
root_title"Introducing Hive Keychain for Unity!"
beneficiaries
0.
accountreward.app
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id118,904,517
net_rshares0
@simplegame ·
Hey man what verison of Unity is this built for??
I tried cloning it today and had errors.
properties (22)
authorsimplegame
permlinkre-crypt0gnome-s17byd
categoryhivedevs
json_metadata{"tags":["hivedevs"],"app":"peakd/2023.9.1"}
created2023-09-18 22:03:48
last_update2023-09-18 22:03:48
depth1
children0
last_payout2023-09-25 22:03:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length90
author_reputation127,747,468,070,210
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id127,274,504
net_rshares0
@ubikalo ·
Very interesting post, I am working with some AR basics in Unity, and you are joining Hive with Unity, I wonder what future will bring us, good job bro
properties (22)
authorubikalo
permlinkre-crypt0gnome-rmjg8x
categoryhivedevs
json_metadata{"tags":["hivedevs"],"app":"peakd/2022.11.2"}
created2022-12-07 20:43:48
last_update2022-12-07 20:43:48
depth1
children2
last_payout2022-12-14 20:43:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length151
author_reputation10,328,545,260,298
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,932,823
net_rshares0
@crypt0gnome ·
Keep me posted on what you are working on!
properties (22)
authorcrypt0gnome
permlinkre-ubikalo-rmjh3f
categoryhivedevs
json_metadata{"tags":["hivedevs"],"app":"peakd/2022.11.2"}
created2022-12-07 21:02:03
last_update2022-12-07 21:02:03
depth2
children1
last_payout2022-12-14 21:02:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length42
author_reputation8,390,441,275,877
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,933,289
net_rshares0
@ubikalo ·
sure! I will. 
properties (22)
authorubikalo
permlinkre-crypt0gnome-rmjlo7
categoryhivedevs
json_metadata{"tags":["hivedevs"],"app":"peakd/2022.11.2"}
created2022-12-07 22:40:57
last_update2022-12-07 22:40:57
depth3
children0
last_payout2022-12-14 22:40:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length14
author_reputation10,328,545,260,298
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,935,531
net_rshares0
@wrestorgonline ·
![untitled.gif](https://media.tenor.com/LlIHdL-eAa8AAAAC/wwe-dean-ambrose.gif)
properties (22)
authorwrestorgonline
permlinkre-crypt0gnome-rmnqsc
categoryhivedevs
json_metadata{"tags":["hivedevs"],"app":"peakd/2022.11.2"}
created2022-12-10 04:21:48
last_update2022-12-10 04:21:48
depth1
children0
last_payout2022-12-17 04:21:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length78
author_reputation144,212,481,881,739
root_title"Introducing Hive Keychain for Unity!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,993,601
net_rshares0