3 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
This tutorial Answered my question >> https://s3.amazonaws.com/gamedev-tutorials/Tutorials/How-to-Interact-with-UI-Using-Lua_1.9.pdf
répondu il y a 6 ans
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?
répondu il y a 6 ans
0
Thank you for your help Roosevelt Boyland This is the best community I've been apart. Everyone's been a big help.
répondu il y a 6 ans
Cette publication est fermée : l'ajout de nouvelles réponses, commentaires et votes est désactivé.
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans