• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Onclick

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

kne4752 commented

Function Not Appearing In OnClick Editor

May 22, '23 in Help Room

13 Replies

31 Votes

avatar image

Reaktion answered

A button that is supposed to only work where there is an image

May 1, '23 ui·button·onclick

1 Reply

0 Votes

avatar image

johnfernow asked

debouncing for UnityEngine.UI.Button.onClick

Apr 7, '23 input·button·button trigger events·onclick·override

0 Replies

0 Votes

avatar image

djm asked

Button animations are failing on iOS but not in Unity.

Apr 2, '23 ios·animations·buttons·onclick

0 Replies

0 Votes

avatar image

LagMakesGames asked

How would I disable buttons being selected upon click?

Mar 14, '23 in Help Room

0 Replies

0 Votes

avatar image

Powzone commented

How to re-arrange button onclick event in unity?

Mar 6, '23 button·onclick

3 Replies

6 Votes

avatar image

a-d-h-a-m asked

Animation won't play on click of object using raycasting, setTrigger never intiates

Feb 14, '23 in Help Room

0 Replies

0 Votes

avatar image

Camden9 commented

Button OnClickEvent is being called when the gameobject is enabled.

Jan 28, '23 in Help Room

0 Replies

0 Votes

avatar image

CristiGAMING asked

OnClick event is set on all objects when i set it for one.

Dec 25, '22 c#·build·loop·onclick

0 Replies

0 Votes

avatar image

MirkaP answered

Cards in the memory game don“t flip after first click.

Dec 17, '22 game·onclick

1 Reply

0 Votes

avatar image

dkvic commented

how to change image on button click

Dec 4, '22 ui·image·buttons·onclick

1 Reply

1 Votes

avatar image

ibrahimxyz edited

How to hide UI panel when an other one shows up

Nov 30, '22 ui·button·onclick·textbox

2 Replies

0 Votes

avatar image

LouWorldOrder commented

My prototype uses OnClick to fire projectiles, but so does my button

Nov 25, '22 in Help Room

1 Reply

0 Votes

avatar image

NachoTaco published

How to change a onclick event from 1 object to another,How to change Onclick Object from 1 thing to another

Nov 15, '22 unity 2d·buttons·onclick

0 Replies

0 Votes

avatar image

tormentoarmagedoom edited

Clone/Destroy OnClick(),Clone Create/Destroy OnClick() Wiki

Aug 8, '22 in Help Room

0 Replies

0 Votes

avatar image

Paul_Hughes answered

Event Triggers or onClick For Mobile

Aug 2, '22 in Help Room

1 Reply

0 Votes

avatar image

gliiv_ answered

Change Onclick Object via script

Jun 28, '22 c#·ui·onclick

1 Reply

0 Votes

avatar image

Chen5464 asked

Change Button's Object via script

Jun 28, '22 in Help Room

0 Replies

0 Votes

avatar image

D_4rk commented

How to trigger a button click from script

Jun 22, '22 unity 5·gui·button·unity 4.6·onclick

2 Replies

26 Votes

avatar image

grange9 commented

Change text value

Jun 13, '22 c#·scripting problem·text·change·onclick

3 Replies

1 Votes

avatar image

NchucreZ commented

Move Button OnClick listeners to another button

Apr 13, '22 ui·button·event·onclick·event-listener

3 Replies

0 Votes

avatar image

theriser777 answered

Slider OnValueChanged() not showing object methods in Inspector.

Mar 30, '22 ui·slider·onclick

2 Replies

0 Votes

avatar image

kevindapkus edited

onclick.addlistener only works on the second click,onclick.addlistener only working on second click

Mar 22, '22 onclick

0 Replies

0 Votes

avatar image

NeilH176 commented

Argument Exception when no arguments? Method Arguments are Incompatible

Mar 20, '22 in Help Room

0 Replies

0 Votes

avatar image

spaceman8 commented

How do you register a click on a TMP text?

Mar 14, '22 in Help Room

3 Replies

0 Votes

avatar image

snoboxstudio edited

On click, select game object -working with objects in scene but not instantiated objects

Jan 27, '22 rigidbody2d·collider2d·onclick

2 Replies

1 Votes

avatar image

jakewcurrie01 commented

Upgrade Button 3 & 4 calling on the Upgrade 2 method

Jan 22, '22 button·button trigger events·onclick

1 Reply

0 Votes

avatar image

nglasl commented

UI Button OnClick Function - How to get name of button that was clicked?

Oct 19, '21 ui·button·events·onclick

2 Replies

2 Votes

avatar image

Hellium edited

UI button works fine in the unity editor but when I build it it doesn't do any function.

Oct 18, '21 build·button·vr·onclick

0 Replies

0 Votes

avatar image

jandd661 answered

Audio.PlayOneShot Doesn't Work

Sep 25, '21 c#·sound·onclick·audio.playoneshot

2 Replies

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

Followers

avatar image avatar image

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Related Topics

button ui c# buttons button trigger events listener gui gameobject prefab canvas unity 5 event scripting problem events function text eventsystem script. functions onmousedown android event triggering easy collider delegate


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges