GameBanana shows no ads to members. Sign up now!
Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Customizable Keycode Input Button

A Config Script for Unity 3D

17 336 bytes Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

public class KeyCodeButton : MonoBehaviour
{
    // Start is called before the first frame update
    public void OnPress()
    {
        Input.GetKeyDown(this.keyCode);
        {

        }
    }
    public KeyCode keyCode;
}
Create a script called "KeyCodeButton", then delete everything in it and copy-paste the code into Visual Studio or whatever coding program you use. Then, attach it to your button, and in the on press section, add the button, then choose the script in the selector, then choose onPress as the action.
Sign up to access this!

No comments yet

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Announcement

For BBISLOC, I am working on the head indicator, i swear!
- CyndaquilDAC

Credits

Key Authors
CyndaquilDAC avatar The Federation of Modification Flag
Affiliation
The Federation of Modification
CyndaquilDAC username pic Joined 2y ago
Off The Banana
88 points Ranked 69574th
21 medals 2 legendary 3 rare
  • Became a Ripe Supporter Medal icon
  • Returned 5000 times Medal icon
  • Returned 1000 times Medal icon
  • Submitted 20 Gamefiles Medal icon
  • Thanked 50 submitters Medal icon
  • One month a member Medal icon
Script

Submitter

CyndaquilDAC username pic Joined 2y ago
Off The Banana
88 points Ranked 69574th
21 medals 2 legendary 3 rare
  • Became a Ripe Supporter Medal icon
  • Returned 5000 times Medal icon
  • Returned 1000 times Medal icon
  • Submitted 20 Gamefiles Medal icon
  • Thanked 50 submitters Medal icon
  • One month a member Medal icon
CyndaquilDAC avatar
CyndaquilDAC
The Federation of Modification Flag
Affiliation
The Federation of Modification

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 229
  • 1mo
  • 1mo

More from Submitter

WiPs by Submitter