HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Unity Button Click Events Listener : C# Tutorial

33,250 views October 26, 2019 3:10

Watch on YouTube
ChannelJayanam

Description from the creator

Here is a new Unity C# tutorial for adding a button onclick event listener by using C# code.

I show how to add this dynamically, not in the editor, becasue I had this task for my Unity Low Poly Game kit, which you can get from the Unity asset store:
assetstore.unity.com/packages/templates/packs/l…

See my social profiles here
G+: plus.google.com/+JayAnAm
Twitter: twitter.com/jayanamgames
Facebook: facebook.com/jayanamgames
Patreon: patreon.com/jayanam

Production Music courtesy of Epidemic Sound: epidemicsound.com

About this tutorial

Jayanam published this 3:10 video tutorial on October 26, 2019. It has been watched 33,250 times on YouTube.

Channel
Jayanam
Category
Education
Duration
3:10
Published
October 26, 2019
Views
33,250
Likes
276

Tags

Share

Further reading

  • Unity - Scripting API: UI.Button.onClick docs.unity3d.com

    Use UnityEvent.AddListener to extend the onClick click events. The added UnityAction is called when the Button press is released. A Button can have multiple listeners. As an example, in the script example below, btn3 ca…

  • Unity - Scripting API: Events.UnityEvent.AddListener docs.unity3d.com

    Adding multiple identical listeners results in only a single call being made. //Attach this script to a GameObject //This script creates a UnityEvent that calls a method when a key is pressed //Note that 'q' exits this…

  • c# - How to add Persistent Listener to Button.onClick event ... stackoverflow.com

    Last thing - in my case, the TestMethod I defined simply prints a log. When clicking the button, it logged the message, but in the Button's inspector i could not see any onClick event listed. This probably just means th…

This tutorial in other languages