Hey, about loading scenarios

Home Forums Puzzles Hey, about loading scenarios

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by Avatar Citrus sinensis 3 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12685

    How do I load a new scenario while preserving the original environment

    #12696
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Hi,

    You can load more JavaScript code in run time using this method:

    You can run this snippet with Puzzles as descibed here

    Took it from here.

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #12699

    Thank you for your reply
    It’s difficult for me. Maybe there will be a simpler way?
    For example, in the example given by you (load_unload), can I grab the surrounding environment and then give it to a new scene?

    #12700
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    can I grab the surrounding environment and then give it to a new scene?

    yes you can export it to a separate glTF file and load with a new scene

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #12701

    Is there a way to read the color above the button and assign it to the object?

    Attachments:
    You must be logged in to view attached files.
    #12763
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    It is better to hard-code the color value and not retrieve it from an HTML element or an object. And yes, you can set the material color with Puzzles.
    https://www.soft8soft.com/docs/manual/en/puzzles/Materials.html

    Founder & CEO at Soft8Soft
    LinkedIn | FB | Twitter | VK | 新浪微博

    #12767

    Thank you very much, I got the results I wanted from your suggestion. Although it is not simple

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.