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 hexagonius · Mar 24, 2015 at 01:18 PM · editortexturebuildloadingreference

Temporary textures or Materials in Editor removed in build

Hey everyone,

I have a question about something 2D Toolkit could achieve. It's about "dereferencing" textures or materials prior to building for a platform.

How would one have all visuals during editing levels, which are completely removed from them when built? I ask this, because we want to create our own way to distinguish between low and high res devices to preload all necessary assets prior to scene loading.

Does anyone have experience with this? What would be the better approach? To somehow create temporary textures during editing which will never be packed because they only exist on ram or something like that? Or to deference everything prior to building?

Would be nice if someone could share some knowledge on the topic

Comment
Add comment · Show 3
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 _dns_ · Mar 24, 2015 at 01:43 PM 0
Share

Hi, I think asset bundles can do that, not only to download data from the web (like DLC) but also to have different data for multiple platforms or quality/resolution.

avatar image hexagonius · Mar 24, 2015 at 03:15 PM 0
Share

Thanks dns, but we want to ship the build as a whole. Is it possible to ship bundles right with the build?

avatar image hexagonius · Mar 25, 2015 at 11:42 AM 0
Share

Thanks dns, sounds like the easiest solutions for now. Convert your comment to an answer, k?

1 Reply

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

Answer by _dns_ · Mar 24, 2015 at 04:49 PM

Well, I only made some researches about this because I'll need it for a project (but didn't try it yet). According to the documentation it's possible: if I understand well: assetbundles are a kind of zip that needs to be downloaded + extracted before it can be instantiated from using LoadAsset. It's apparently possible to use the "file:" prefix in an url passed to LoadFromCacheOrDownload to load from a filesystem (source) or to store the bundle as an uncompressed asset in the StreamingAssets folder.

The alternative would be to use the resources folder and load resource A or B depending on the situation (and I guess you would have to manually remove the unused A or B resources before building). There are new functionality to ease the asset bundle creation in Unity5 so I guess the Unity team wants us to go this path. There are some discussions on the forums about that too.

That's all I know for 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 _dns_ · Mar 25, 2015 at 01:49 PM 0
Share

Also, it could be interesting if you tell the community how it goes: there are not so much answers/search results about that subject :-)

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

21 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

Related Questions

Delta event out of Editor Problem 4 Answers

Serious Rendering Issue - editor vs build 3 Answers

Distribute terrain in zones 3 Answers

Scriptable Objects, how to force Include in Compile / Build without referencing it in the scene? 1 Answer

OnGUI() works in editor, but not in build with an odd twist! 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