poplakk.blogg.se

Vrchat unity assets
Vrchat unity assets










When building a player, you should avoid any dependencies on System.dll or. DLLsīy default, Unity includes only the following DLLs in the built player: See documentation on Animation Clips for more information about this. Animation keyframe reduction produces smaller data files and uses less memory at run time generally you should always have it enabled. Note that Mesh compression only produces smaller data files, and does not use less memory at run time. Experiment with what level of compression is acceptable for your models. Mesh and Animation compression uses quantization, which means it takes less space, but the compression can introduce some inaccuracies. To enable Mesh compression, select the Mesh, then in the Inspector window set the Mesh Compression to Low, Medium or High. You can compress Meshes and imported Animation Clips so that they take up less space in your game file. All Textures are compressed in the build, regardless of this setting. For faster workflow in the Editor, go to Unity < Preferences and untick the checkbox for Compress Assets on Import. Changing the Maximum Texture Size does not affect your Texture Asset, just its resolution in the gameīy default, Unity compresses all Textures when importing. Changing the maximum Texture size does not affect your Texture Asset, just its resolution in the game. To see how this looks in-game, zoom in on a GameObject that uses the Texture, then adjust the Max Size until it starts looking worse in the Scene view. To do this without modifying the actual source content, select the Texture in the Project view, and in the Inspector window reduce the Max Size. If that doesn’t reduce the file size enough, try to reduce the physical size (in pixels) of the Texture images. See documentation on platform-specific Texture compression for more information. The first solution to this is to use compressed Texture formats. Textures usually take up the most space in the build. Suggestions for reducing build size Textures You might be able to replace Assets in the Resources folder with AssetBundles - this means that Unity loads Assets dynamically, thereby reducing the player size. With this in mind, you should make sure that the only Assets in the Resources folder are the ones you need for the game. The only Assets that are not removed are scripts (which are generally very small anyway) and Assets in the Resources folder (because Unity can’t determine which of these are needed and which are not). Unity strips most unused Assets during the build, so you don’t gain anything by manually removing Assets from the Project. png file does not make any difference to build size, so you should stick to the format that is most convenient for you during development. For example, if you have a multi-layer Photoshop Texture in the Project, it is flattened and compressed before building. Unity re-codes imported Assets into its own internal formats, so the choice of source Asset type is not relevant. The Editor Log helps you identify Assets that you might want to remove or optimize, but you should consider the following before you start: The headers normally make very little difference to Asset size, but the value might be large if you have numerous large Assets in the Resources folder. The File headers mentioned in the list are not Assets - they are actually the extra data that is added to “raw” Asset files to store references and settings. Typically, things like Textures, Sounds and Animations take up the most storage, while Scripts, Levels and Shaders usually have the smallest impact. The Editor Log provides a summary of Assets broken down by type, and then lists all the individual Assets in order of size contribution. Go to the Console window (menu: Window < Console), click the small drop-down panel in the top right, and select Open Editor Log. This information is available in the Editor Log just after you have performed the build. The first step in reducing the size is to determine which Assets contribute most to it, because these Assets are the most likely candidates for optimization. Keeping the file size of the built app to a minimum is important, especially for mobile devices or for app stores that impose a size limit.












Vrchat unity assets