Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by Gianca · Aug 31, 2010 at 03:36 PM · webplayerruntimeloadobjects

loading object @ runtime in webplayer....

Hello Unityrs,

I have my unity 3D environment in a webpage... and I need to load object at runtime. Now, I know that if I would have a local project I could use the "Resource" directory but what happens if I am on the webplayer!?

As I don't have the PRO version the solution I think would be the AssetBundles...but the are not available in the non-PRO.

Any suggestion?

Cheers, Giancarlo

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer Wiki

Answer by Daniel-Brauer · Aug 31, 2010 at 03:40 PM

Without Pro (and thus without AssetBundles), your best option is probably the WWW class. It will let you load text and images, from which you can build the objects you need. Of course, this requires that you create/find a format and a parser, but for many types of objects this solution will be adequate.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Gianca · Sep 01, 2010 at 09:08 AM 0
Share

And if I save my prefabs on the webserver and somehow I find the way to upload that prefab on clientside, do you think it is possible to load prefabs dynamically in my 3D scene?

avatar image Gianca · Sep 01, 2010 at 10:02 AM 0
Share

What I am trying to do is uploading in my game Prefabs saved on my webserver. To get the data I call

var www = new WWW("http://localhost/prefabs/myroom.prefab"); yield www;

but what it's not clear to me is ...once yield is done, what www contains? where is my Prefab? is there a default client-side directory where I can upload my prefab?

avatar image
0
Best Answer Wiki

Answer by Gianca · Sep 02, 2010 at 08:59 AM

Well actually I've found a parser for OBJ data objects so I can transform my objects in OBJ format and upload them at runtime. So, at least for now I can avoid AssetBundles.

Many thanks. Giancarlo

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Daniel-Brauer · Sep 02, 2010 at 02:34 PM 0
Share

Ok, so if it's just models then all you need is a model format and parser, which you've found.

avatar image
0
Wiki

Answer by Aurelio Tapia · Oct 26, 2010 at 01:04 AM

i need to do same. Can u please tell me what is the link of this obj parser. Ill be glad to know.

That i need is to load an object and change position, rotation, textures, colors, etc once it is loaded. If somebody want to help me it could be grat.

Sorry for my english, i try to do my best.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Gianca · Oct 26, 2010 at 08:37 AM 0
Share

HI!, this is the link: http://www.everyday3d.com/blog/index.php/2010/05/24/loading-3d-models-runtime-unity3d/

avatar image Aurelio Tapia · Oct 28, 2010 at 08:30 PM 0
Share

Tks a lot, it really help me so much.

avatar image
0

Answer by rahuxx · Jan 08, 2013 at 11:16 AM

how can we load sequence of objects? Like one loaded, then deleted and then second loaded and then deleted and then third loaded and deleted and so on.

Any help will be great for newbie.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AlucardJay · Jan 08, 2013 at 11:16 AM 0
Share

Hi There.

Please don't post comments as answers. Post comments by clicking the [add new comment] button, a window then open for you to type in. Answer fields are for answers only, as this is a knowledge base.

You can convert this answer to a comment (or just edit your original question), you'll also get a better chance of getting an actual answer if the main list shows none or one answer in blue =]

Under the answer where it says edit | delete | more , click on more , then convert to comment

Also you don't have to wait for a moderator to approve a comment.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

PlayerPrefs: force *Load*? 2 Answers

How to load a script at runtime? 0 Answers

Save and share from Web Player 1 Answer

Load the content via XML in webplayer 1 Answer

Load model & animation during runtime 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges