Search Feedback

20
votes

UI Button OnClick support for functions with enum argument via inspector

GUI

-

-

Right now editing UI Button OnClick functions via inspector allow for functions with basic types such as int and string. Since enums can be casted as ints, it should be reasonable to build on the underlying system handling int functions and just change the input field to a dropdown to select the enum much like how the inspector already handles serialized enums

Comments (1)

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10750)

2D

(281)

Ads

(54)

AI & Navigation

(81)

Analytics

(130)

Animation

(395)

Asset Store

(355)

Asset Store Publisher

(15)

Assets

(543)

Audio

(184)

Cloud Build

(144)

Collaborate

(63)

Docs & Tutorials

(239)

Editor

(2507)

Everyplay

(17)

Game Performance Reporting

(21)

General

(978)

Graphics

(869)

GUI

(430)

Input

(172)

Licensing

(90)

Networking

(188)

Physics

(383)

Platforms

(440)

Profiling & Optimization

(84)

Runtime

(181)

Scripting

(1168)

Terrain

(170)

WebGL

(142)