metafiles
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
metafiles [2021/06/21 21:49] – created metafiles page 146.60.10.142 | metafiles [2025/01/15 04:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | == Basics | + | ====== Meta Files ====== |
Unity uses .meta files for each asset you add to a project. These contain a GUID (unique identifier) and additional information about _how_ an asset should be imported, e.g. max texture size, compression settings, ... everything you change in the importer. All the information required to reconstruct the Library representation of an asset is stored in the meta file. | Unity uses .meta files for each asset you add to a project. These contain a GUID (unique identifier) and additional information about _how_ an asset should be imported, e.g. max texture size, compression settings, ... everything you change in the importer. All the information required to reconstruct the Library representation of an asset is stored in the meta file. | ||
Line 9: | Line 9: | ||
// | // | ||
- | == Swapping out a PNG file for a PSD == | + | ===== Swapping out a PNG file for a PSD ===== |
// or: how to replace a file without having to rewire everything // | // or: how to replace a file without having to rewire everything // | ||
Line 35: | Line 35: | ||
This also works for e.g. swapping out an OBJ file with a matching FBX, etc. | This also works for e.g. swapping out an OBJ file with a matching FBX, etc. | ||
- | == Swapping out a Prefab with another one == | + | ===== Swapping out a Prefab with another one ===== |
This is a bit more involved and will only work in specific cases. | This is a bit more involved and will only work in specific cases. | ||
Line 47: | Line 47: | ||
- | == Swapping out High-Quality and Low-Quality Versions of an Asset == | + | ===== Swapping out High-Quality and Low-Quality Versions of an Asset ===== |
// or: a real-world example why you would even want to do the above: | // or: a real-world example why you would even want to do the above: | ||
Line 55: | Line 55: | ||
You can switch out all your high-resolution project assets for low-resolution project assets. | You can switch out all your high-resolution project assets for low-resolution project assets. | ||
- | === Example: Swapping Desktop-quality assets with 100.000 vertices ↔ Mobile-quality assets with 5.000 vertices. === | + | ==== Example: Swapping Desktop-quality assets with 100.000 vertices ↔ Mobile-quality assets with 5.000 vertices. |
Note that these can have different meshes, different textures, ... all that matters is that they' | Note that these can have different meshes, different textures, ... all that matters is that they' | ||
A good way to do the above is to have two Packages, // com.me.high-quality // and // com.me.low-quality // that contain // the same prefab interfaces // and otherwise all the meshes/ | A good way to do the above is to have two Packages, // com.me.high-quality // and // com.me.low-quality // that contain // the same prefab interfaces // and otherwise all the meshes/ |
metafiles.1624312169.txt.gz · Last modified: 2025/01/15 04:35 (external edit)