Jump to content

Question serialize objet


Dad72
 Share

Recommended Posts

Hi,

 

I see that we can serialized a complete scene.
But can serialize us just an object. I have a scene or I create a character changing textures, name, class, race, gender... by an interface and I would like to be able to serialize this character to go on the next scene which is another html page.
 
Would it be possible to do that, or is that this could add a babylon
 
Thanks
Link to comment
Share on other sites

Hi, 

 

In babylon there is a local function called 'serializeMesh', and several others (serializeCamera, lights, materials, ..)

If I were you, I would update my library babylon1.9.0.js into babylon1.9.dadVersion.js, make this function public and add it in the babylon namespace.

Link to comment
Share on other sites

Ah, I had not seen that this was already possible. Thank you.

 

I is not understand what you mean by: update my library babylon1.9.0.js into babylon1.9.dadVersion.js, make this function public and add it in the babylon namespace.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...