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
0
Question by Lance · Oct 31, 2010 at 04:30 PM · gameobjecteditor-scriptingscene-loadingplanetiling

Tiles pre-built or generated?

I think I read somewhere that you can run object generation code in the editor to then have objects baked into a scene. If I'm wrong about that than this question is irrelevant. However...

If I have a thousand or so "tiles" (just planes) that I want to stack together would it be better for me to generate them once in the designer and then simply assign the dynamics to them on the scene's loading (textures, sound emitters, etc...)? Would I gain performance doing this, or would it really even matter in the end?

Also, if I am generating them on the fly, I tend to want to keep them as few as possible because of the generation time, but if they were baked into the scene could I get more of the actual objects out there, or is the object count what's really killing me in the end?

Thanks much in advance for any and all advice.

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
Best Answer

Answer by Lance · Nov 16, 2010 at 02:22 AM

Okay, so I ended up pre-baking the tiles from planes created by http://www.unifycommunity.com/wiki/index.php?title=CreatePlane.

I can safely generate and level-load 16x16 with minimal impact, but going too far over that generates too much strain upon the initial rendering. I'm guessing it's because they are more than just planes (they are fully instantiated GameObjects), but either way - it's working now.

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 Proclyon · Nov 16, 2010 at 01:53 PM 0
Share

$$anonymous$$udos on answering it ins$$anonymous$$d of bleeding out the question. Nice link aswell , I probably will be using that soon. So thanks :)

avatar image
1

Answer by JesusChristChangedMe · Oct 31, 2010 at 09:39 PM

not really sure what you mean by tiles... but if you mean terrain then just make one by going to the top menu bar and click terrian,and create terrain. but if your asking about putting different objects in a scene using one prefab then you can create a new prefab and drag all the gameobjects into that prefab. but if your asking if too many objects in a scene slows down unity then no matter how you group them... unity wont slow down very easily.

sorry, i dont really know what your asking.

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 Lance · Oct 31, 2010 at 09:56 PM 0
Share

I'm sorry, I don't know how better to clarify. As stated, I'm working with planes as tiles (think a grid to walk on), not a terrain. And no, I'm not talking about prefabs, I'm asking if I should be generating my grid of planes every time the level is loading, or if I would get a benefit from generating them in the editor and just having them baked into the scene. As of now, I have written an editor window that will allow the editor to generate the tiles for me and then I can just call that good. It does load faster, yes, but generating over 20x20 almost crashes Unity.

avatar image JesusChristChangedMe · Oct 31, 2010 at 10:36 PM 1
Share

sorry, dont know much about generating grids. but you look like your getting somewhere with that. so the best i can do is wish you good luck and hope that someone that knows about this stuff can help you out. sorry i couldnt be more helpful. Good Luck :)

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

(Editor Scripting) Is it possible to generate MenuItems? 2 Answers

Asset Bundle starts loaded 0 Answers

How to get the particular static state(s) of a certain GameObject via script? 0 Answers

How to access Custom Inspector own gameObject 1 Answer

GameObject HideFlags.DontSave not working as expected 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