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 /
avatar image
-1
Question by YeOldeSnake 1 · Dec 28, 2010 at 02:07 PM · buildloadlevelsettings

Post-Build Custom Level Loading

So i want the user to be able to load custom levels they put in a specific folder by providing their name , i have the GUI code all done but i don't know how to do the rest

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Peter G · Dec 28, 2010 at 03:23 PM

Unity compiles your scenes when you build the game. So you cannot load a .scene into a Unity build; you need to compile it. There are easier ways fortunately.

You could make a level creator. Create a system using either a text file or an xml that stores information, then store the user's level. Possibly:

//info.xml

<Player> <Position> <x>0</x> <y>1</y> <z>0</z> </Position> <Weapon name="LengendaryEnchantedMagicalThing"></weapon> <Weapon name="TunaFishSandwich"></weapon> </Player>

<Enemy> //Some other stuff </enemy>

Then have an empty scene in your build that's only function is to load all the specified objects into itself. It reads the xml and then instantiates objects based on the data. This is probably the easiest way of doing it.

Comment
Add comment · Show 11 · 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 YeOldeSnake 1 · Dec 28, 2010 at 04:57 PM 0
Share

what about already compiled maps

avatar image YeOldeSnake 1 · Dec 28, 2010 at 04:58 PM 0
Share

using the same assets as the original project

avatar image Peter G · Dec 28, 2010 at 05:57 PM 0
Share

It's still not really doable with the current way Unity is set up.

avatar image YeOldeSnake 1 · Dec 30, 2010 at 02:28 PM 0
Share

How about streamed assets , i saw something related to levels there but my knowledge on the subject is inexistent

avatar image Peter G · Dec 30, 2010 at 02:31 PM 0
Share

You could do that, but it still requires a system of telling Unity where to put them.

Show more comments
avatar image
0

Answer by Berenger · Dec 28, 2010 at 03:02 PM

You just need to get the name of the level from the user don't you ? A textField and a button should be enough, and then something like that

Application.LoadLevel( CustomLevelPath + "/" + userLevelName );
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 YeOldeSnake 1 · Dec 28, 2010 at 04:48 PM 0
Share

nothing similar to this didnt work

avatar image YeOldeSnake 1 · Dec 30, 2010 at 02:51 PM 0
Share

I want to implement something like a DLC system where new maps get added

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

No one has followed this question yet.

Related Questions

How to save a scene that you randomly generated as a new level in your build settings? 1 Answer

Distribute terrain in zones 3 Answers

How to save a level that was randomly generated, so it can be returned to later. 1 Answer

How to save a scene that you randomly generated as a new level in your build settings? 1 Answer

spawn position after application.loadlevel 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