How to Start the UiCanvas Ebus connect in lua?

0

I'm now sure if this tutorial is still working on Ui but Its not working. How to make the UI buttons work.

질문됨 6년 전195회 조회
3개 답변
0
수락된 답변
답변함 6년 전
0

For UI buttons, I have this code:

   function someClass:OnActivate()
self.buttonConnection = UiButtonNotificationBus.Connect(self, self.entityId)
end
function someClass:OnDeactivate()
self.buttonConnection:Disconnect()
end
function someClass:OnButtonClick()
Debug.Log("SomeClass Button pressed")
--Do actual stuff in your code
end

Without seeing the Lua code / UI you have, I can't really help you further. Is the UI showing up, but no buttons? Are the buttons receiving hover events, but not doing anything when you press them? Are the buttons active to start?

답변함 6년 전
0

Thank you for your help Roosevelt Boyland This is the best community I've been apart. Everyone's been a big help.

답변함 6년 전

이 게시물은 마감됨: 새 답변, 댓글 및 투표 추가가 비활성화되었습니다.

관련 콘텐츠