Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
3
Question by Belkin · Mar 18, 2010 at 07:34 AM · dynamicworld

Dynamic world in Unity

Hello i just found this amazing framework and i have question its possible to generate dynamic world? for example we have island and in database we have that on x=1, y=2, z=5 we have building.

thanks

Comment
Add comment · Show 1
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 Belkin · Mar 18, 2010 at 09:10 AM 0
Share

Also i need to show other characters on some coordinates

4 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by duck · Mar 18, 2010 at 10:02 AM

Yes, it's possible. It's a very large subject to cover in a single answer though, however you can:

  • Instantiate objects or characters at any position (also read abobut Prefabs).
  • Send and recieve information to and from WWW servers
  • Create meshes, materials and shaders on-the-fly
  • Sculpt, Texture and add foliage to terrain procedurally (although this is undocumented)

Check out all those links above for answers which go into further detail on the subjects. Like I said, it's a big topic :)

Comment
Add comment · 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
1

Answer by MedianHansen · Mar 18, 2010 at 09:39 AM

Well... if by dynamic you meen randomly generated each time the scene is loaded/the player enters an area, hten yes it's possible. ou should just set the transform position values to random numbers, for an instance:

function Start() { transform.position=Vector3(Random.Range(-10,10),Random.Range(-10,10),Random.Range(-10,10)); }

Keep in mind though, that Random.Range(-10,10) probably shouldn't use -10 and 10 as numbers. Instead of -10, put the lowest number, in which you want the character/building whatever, to be able to be placed, and instead of 10 you should put the highest. If you are not very experienced in random numbers, just use the use-some-numbers-and-try-to-see-if-they-work-and-if-not-adjust-them-method, it usually works pretty fine.

Oh, i thought you meant placing cities and characters randomly in the area, nvm this anwser ^^

Comment
Add comment · 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
1

Answer by Dwair · Mar 18, 2010 at 09:41 AM

With Instantiate() you can spawn a mesh or prefab you need in any location you want.

You'll probably need to use a tileable mesh for that, and maybe some mesh combiners.

Comment
Add comment · 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
1

Answer by Xepherys · Oct 23, 2013 at 08:53 PM

I've been considering this from a psuedo-code perspective for a couple of months, and ran across this article today about probabilistic tiles used in Spelunky. It's actually pretty genius, and now that I'm about to set code to editor, I'm thinking using a variety of pre-fab blocks with variations on probabilistic tile-groups is probably the best answer. My goal would be to allow seeding for specific values, and pseudo-randomly generate seeds for new games. Anyway, the link here and the "Part 2" from it have some interesting insight into one method for doing this - no code, just concept.

Comment
Add comment · 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

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

1 Person is following this question.

avatar image

Related Questions

A node in a childnode? 1 Answer

How can i make artificial gravity for Kinematic Rigidbody? 3 Answers

C# Dynamically add components? 3 Answers

World to Screen 1 Answer

Dynamic Interactive 2d World Map 0 Answers


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