Displaying object names when pressing a key

  • #1, z nicolas-dekaiseWednesday, 28. February, 14:50 hodinky 7 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

    Bažant

    7 Posts


  • #2, z eric-w-Wednesday, 28. February, 17:01 hodinky 7 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

    Bažant

    16 Posts

  • #3, z nicolas-dekaiseThursday, 29. February, 18:58 hodinky 7 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 ?

    Bažant

    7 Posts

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

    Bažant

    16 Posts

  • #5, z esmeraldaFriday, 01. March, 12:42 hodinky 7 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

    Zabiják klíčů

    525 Posts

  • #6, z nicolas-dekaiseMonday, 18. March, 11:29 hodinky 6 months 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 ^^'

    Bažant

    7 Posts

Napsat příspěvek