My game size became huge suddenly. For determining the problem I deleted all the scenes form project window and let the Unity build the empty apk. But the apk becomes 87mb without any scene! I surprised what did happened or what Unity loading while there is no scene at all!
from what I've experienced unity has a tendency to package any imports into your final build. so any libraries or packages you told it to import when you created get packaged whether you use the assets in them or not. i've only used unity to build for the pc platform but this is what i've seen when doing benchmarks against empty builds. so be very careful what you import and only import exactly what you need.
Related
I have created an app in unity to load asset bundles. When I load asset bundles, game objects with rigid body components and isGravity is off are working fine. But when I enable isGravity, gameo bjects start to pass through each others. This problem is Only happening in IL2CPP build but every thing is working fine in Mono build settings.
My unity version is 2019.4.
Thank you in Advance.
If it works in the Mono version, it is probably a Unity bug.
If you can, update Unity to a newer version, and see if the problem goes away.
While searching some topics, I found out that Unity has a setting called "Strip Engine Code" that is enabled in IL2CPP. This setting is enabled by default in IL2CPP to remove unwanted or not useful codes. As a result, the scripts used in Asset bundles are not included while building IL2CPP Android apps.
I'm new to unity and vuforia to complete a project i need vuforia engine AR in package manager, the steps shown in the video for unity are Window->Package Manager -> All Packages ->Vuforia Engine AR.
I couldn't access the AllPackages menu so someone suggested that i preview all the packages,i used player setting and selected preview packages, for all the other packages, this doesn't work either.
So i downloaded the vuforia sdk form the site, and i imported all of them into the project,it still didn't show me anything in the GameObject window, i tried to search for the required components like ARCamera and GroundPlaneFinder in the file i imported and they weren't in there.
Can anyone help me with this?
Nevermind, i figured it out, apparently in versions above 2020 in unity it is labelled as vuforia engine to access it go to window->package manager-> my assets->vuforia engine-> import(these were my settings don't know if it changes from version to version)
Be careful and don't try to import it in middle of a project though apparently it needs to be initialized/imported at the start of the project to avoid dependencies. you can create your project later.
My Unity project builds to about 16MB for WebGL. I have a build script that enforces settings such as build size, compression, included scenes (we use asset bundling), and more.
When switching from 2018.2 to 2018.4 my build size went from 16MB to 40MB. I have double checked all the build settings, scene inclusion and asset bundle settings. Everything is the same.
I cannot find any reason why it would be so large, or any related issues on the forums / questions. Any ideas of where to start? Happy to provide settings in full if that would help.
I tried on both a windows and mac with same results.
The issue was the introduction of nested prefabs between 2018.2 and 2018.4. I had a build script that removed my theme song audio files from a prefab on my first scene, so that it could be loaded from an asset bundle on webgl. On 2018.2 the prefab auto saved and this was fine, the audio files were taken out of the build so it only existed in the asset bundle, on 2018.4 however you have to manually save the prefab, so the large audio files existed in the build as well as my asset bundle.
note: for those curious, i dont use asset bundles for iOS or Android so thats why i leave the audio files in the first scene. I have a custom webgl build script
Hello I have trouble importing the google vr package in unity , my unity is already updated but this appears
I just had the same issue. I wanted to update the Cardboard SDK on an old project so I downloaded it from Github and imported the GoogleVRForUnity.unitypackage.
Every time I press play I have this message that pops. It works fine if I ignore it, but you can also click Import Package and it will open the gvr-5.2-and-5.3-compatible.unitypackage that's inside the GoogleVR folder. Import the content and the message will stop poping.
It looks like a bug thought, because I'm using Unity 5.4.0, so I should not need any compatibility for 5.2 or 5.3.
EDIT:
I just realized that now you also need a special version of Unity to use the GVR SDK 1.0. Right now (9/10/16) it's Unity 5.4.1f1-GVR7.1 available here. Maybe that's why it was complaining about my Unity version.
I have an unity project with blender objects saved in .blend files. I wasn't able to export them as fbx becouse everything it totally messed them up when I tried this. However I found that .blend files can be imported to unity also. Now, when I finished my project I want to submit it to the leap motion store but I'm afraid the .blend files won't let it work becouse when I runned the project in another computer from unity, it required blender installed on the compute, which won't happen on clients' computers. Is it possible to leave .blend files in the project or I have to export them in any case to spesific format?
Running a project from inside the unity editor and running the project as a compiled game are totally different things. You don't need blender installed to run the compiled game.