Hello i've want to change text the gui added in scene there is code:
Code:[ChatCommand("bot")] void BotCommand(PlayerSession session, string command, string[] args) { AlertManager.Instance.GenericTextNotificationServer("Bot spawned!",session.Player); foodText = GameObject.Find("Canvas/FoodText").GetComponent<Text>(); foodText.text = "Halo"; waterText = GameObject.Find("Canvas/WaterText").GetComponent<Text>(); waterText.text = "Halo"; }
Changing UI text?
Discussion in 'Hurtworld Development' started by Vakoss, Jul 1, 2016.
-
Wulf Community Admin
It's not possible to change the UI, it is never sent from the server to the client.
-
So how can i sent it from server to the client?
-
Wulf Community Admin
-
So [*] my idea
-
There is now (with 0.3.6.2) the very basic ability to rig up custom UIs, for simple inventory based machines. You will have to make a Workshop mod with the UI. More functionality will hopefully come soon.
-
-
+1 on more SDK related tutorials. We're not all indie game developers (yet)
-
+1 any simple example?