UIEvent

ButtonInteraction.lua.txt

通过LuaBehaviour执行此Lua脚本,并通过Injections数组中添加一组input

  1. Name:input
  2. Value:InputField
  1. function start()
  2. print("lua start...")
  3. self:GetComponent("Button").onClick:AddListener(function()
  4. print("clicked, you input is '" ..input:GetComponent("InputField").text .."'")
  5. end)
  6. end

?