We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Programatticaly Variable Creation

Home Forums Puzzles Programatticaly Variable Creation

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32235
    GlifTekGlifTek
    Customer

    hi
    i think a long time ago i asked about this.
    is there any way to create new variables programmatically on the fly in verge3d/javascript?
    i remember researching and there was a lot of talk about “eval” and how it’s a no-no because it may cause problems with some browser things.

    say for instance the app needs new cloned objects and thus new variables to refer to them.

    i guess an option would be to have tons of blank unused variables pre-made waiting for clones to take their space…

    #32237

    Hi,

    you might consider saving your army of clones into a list and access them through indices.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #37314
    petropetro
    Participant

    …if the clone list will change materials each in several possible ways… how may we identify which in the list was the clone with the new material ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.