Displaying object names when pressing a key

  • #1, by nicolas-dekaiseWednesday, 28. February, 14:50 2 months ago
    Hello, it's me again ^^

    So I already have a full demo for my game, developed in Unity, and right now I'm trying to assess if switching to Visionaire is possible.

    In my current demo, I added a functionality : when you press space all the object present in the scene have their names displayed. (A number of test players wanted this)

    So is there a way to do something like that in Visionaire ? (With or without Lua)

    Thanks ! smile

    Newbie

    7 Posts


  • #2, by eric-w-Wednesday, 28. February, 17:01 2 months ago
    HeyHo. You could it like this:
    - top left corner "game properties" (gearwheel icon)
    - tab key actions
    - space key : diplay object text XY, and place it on the correct place you want
    - space key released: hide object text XY
    - repeat for every possible object you have in the scene

    Newbie

    14 Posts

  • #3, by nicolas-dekaiseThursday, 29. February, 18:58 2 months ago
    Thank you for your answer but if that's a solution that work on paper, it will be an gigantic work for all the objects in the full game 

    is there not a way to do it looping over all the objects in a scene in lua, get their name and then displaying them ?

    Newbie

    7 Posts

  • #4, by eric-w-Thursday, 29. February, 19:43 2 months ago
    absolutely no idea of lua, I dont "program", Im oldschool. I got time so I would do them all by hand razz

    Newbie

    14 Posts

  • #5, by esmeraldaFriday, 01. March, 12:42 2 months ago
    you could iterate through the list of objects in the scene and get their names, but I have no idea how to position them correctly with a script. Maybe by finding the center of the poligon? (no idea how to do that)
    I recommend dropping by on the Discord server of VS. It's much more lively there than here and you have better chances to get answers. ;-)


    In case you are not set on the name and are ok with showing a indication:
    There is an inbuilt hotspot-reveal-feature where you can set animations for your hotspots (properties of the scene objects, "effects" tab)
    show/hide with action part

    Key Killer

    514 Posts

  • #6, by nicolas-dekaiseMonday, 18. March, 11:29 A month ago
    Thanks Esmeralda, I'm going to post on the discord yeah smile

    And yeah I saw that there's an inbuilt feature to show/hide the object name, but I don't know how to use it to display all the objects names ^^'

    Newbie

    7 Posts

Write post