Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Mehrdad995 · Jul 12, 2015 at 01:24 AM · scenedataocclusion culling

Share Occlusion Culling Data among Same Scenes

Hi there. Sorry if this question smells a bit Noobish :) Imagine I have a Scene named A and currently being used in ten levels.
all the scenes are the same and just multiplied ten times with different scripts and some other things tweaks.
now i found that my occlusion culling has some problems and i want to re-bake it for one
of the scenes and use it among other same scenes instead of baking it individually.
is there any way/trick to do so? baking OC is really taking to much time and my game has 51 levels
which are created from only 9 base scenes. so is it possible to bake it only for those
9 Base scenes? thanks in advance :)

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by supernat · Jul 12, 2015 at 05:13 AM

You can run a script from the command line, but first you'll need to create an Editor script that bakes the data. See this page for details: http://docs.unity3d.com/ScriptReference/StaticOcclusionCulling.html

And this page for the command line arguments (look at -executeMethod). There's an example just down the page to do this. http://docs.unity3d.com/Manual/CommandLineArguments.html

Comment
Add comment · Show 3 · 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 Mehrdad995 · Jul 12, 2015 at 12:47 PM 0
Share

thanks @supernat for the answer but that really didn't help.
I've noticed 2 things:
1) your second link is exactly the same as the first one which doesn't contain any execute script example.
2) I can't find a copy/paste function in OC API.
it only give you the control over running the process , canceling , check if running and some other useless stuffs.
how to copy data and paste it in another scene?
again thanks for your respond.

avatar image supernat · Jul 13, 2015 at 04:55 AM 0
Share

Oops, sorry, I switch back and forth between $$anonymous$$ac and PC, probably hit the wrong cmd/ctrl key to copy the link. I updated the answer. Unfortunately you can't copy and paste the data into another scene through the API, but you might be able to manage that by looking at the internal structure of the game data...that's beyond me. This solution would only allow you to click a button to kick off a script that goes and builds the occlusion culling for each scene automatically...yes could take a while depending on your scenes, but you could run it overnight (or several days depending).

avatar image Mehrdad995 · Jul 14, 2015 at 11:00 AM 0
Share

thanks @supernat that CommandLine link was quite handy, however I'm working on a brand new OC, this gonna take me around a week to be completed but i think its a better approach for anyone making games on mobile due to heavy builtin OC system which is not that much good on mobile platforms.

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

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Preserve data within a scene 1 Answer

How does Unity manage Scene and it's data.,How does unity handle scene and it's data 0 Answers

Retaining old scene data 2 Answers

Every so often, every script in my scene has its values reset to default 1 Answer

how i can write a text from another code ? 2 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