Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Scripting Canvas Text

Discussion in 'Testing & Automation' started by nakotte1, Apr 23, 2019.

  1. nakotte1


    Apr 23, 2019
    Hello :)

    I have a problem with my 3D game and hope someone can help me.

    -> My player moves over a surface and can be steered through game objects (3D texts).

    -> my script: As soon as the player runs through a game object, it is destroyed and the name (of the 3 D text) is displayed in the console (Debug. Log.):

    If collision with "Player" ->

    Destroy game object

    Debug. Log (Name. Gameobject)

    My question: I would like the names of the gameObjects to be displayed on canvas in the game after destruction (canvas panel text). The text that appears in the console in the moment should bei visible on the canvas. I would lile to create a list of destroyed gamObjectNames on the Canvas in the game. (The names should not be replaced by each other ).

    I hope someone can help me. I can not say on my own how that should work: D

    Deutsch » Englisch-Wörterbuch | PONS › übersetzung › deut