当前位置:网站首页>Unity Detailed explanation of meta file function
Unity Detailed explanation of meta file function
2022-06-21 08:21:00 【kuilaurence】
If you use something like SVN Version control tools , Then you have to understand Meta Role of documents .
Reference a game resource in the game scene ,Unity Not directly according to the file path and name , Instead, use a unique GUID To point to the resource file in the project . This GUID Stored in the Unity The project generates for each resource and folder Meta In the document .
Use GUID Is that , Even if you move 、 Rename or modify the content of the resource , This resource can still be accessed through GUID To be quoted ( as long as GUID unchanged , Resources can be referenced ).
The disadvantage is that you must be clearly aware of Meta Files are associated with specific resources , If you delete one meta file ,Unity It will be considered that the original resource file has been deleted , And then for this “ new ” The resource file generates a new GUID. This is the most common reason for the interruption of resource references in game scenes .
except GUID,meta The file also stores information about resource import . for example , Map assets can be imported as standard maps 、 Normal map 、GUI Mapping 、cookie Or ray mapping . These import settings are stored in meta In the document .
There was a problem before , I uploaded it to SVN The monster of Prefab, Check on the planning side to see if “Missing Script” The problem of , After inspection , Is the of the missing script meta The file was not uploaded to SVN. therefore , According to the above theory , thus Prefab Could not find a reference to the script .
边栏推荐
- 关于sql的问题:两张表的字段关联问题
- Linux安装达梦数据库/DM8(附带客户端工具安装完整版)
- 日記(C語言總結)
- Represent each record in the dataframe as a dictionary
- Unity写多线程注意事项
- (greedy) B. avoid local maximums
- PHP类与对象详细介绍
- 线上GO服务出现GC故障,我当时就急了
- 面试经验---字节
- Global and Chinese market for crankshaft position sensors 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

Cobaltstrike office macro virus utilization

5 minutes to understand MySQL - row to column

Joking Domain Driven Design (VI) -- Boundary context -- Design

Unity写多线程注意事项

The market value of Jinshan office fell below 100 billion yuan: the shareholder Qiwen n-dimensional cash out exceeded 1.2 billion yuan

Using elastic stack to analyze Olympic data (II)
![[yuanuniverse 3D competition]](/img/5e/386d2299ba62a78bd73982997d4df9.png)
[yuanuniverse 3D competition]

How to build a deep learning framework?

日记(C语言总结)

Fd: file descriptor
随机推荐
General business plan
使用Lua+Redis+OpenResty实现电商首页并发优化
Send using queue mailbox
26. Hikvision camera configuration and preliminary test
This article takes you to interpret the advertising advantages of tiktok
请问这些要求用mysql能实现吗
Complex four operations (23 lines of concise code)
Kotlin---- control statement
Post-Process初级使用笔记(重要的几项)
Figure neural network and cognitive reasoning - Tang Jie - Tsinghua University
[kotlin] first day
4.6 lodash usage documents
Cluster hui dsm7 add suite source
测试入门——软件测试模型
关于sql的问题:两张表的字段关联问题
[DB written interview 274] in Oracle, what is deferred segment creation?
面试经验---字节
怎么搭建深度学习框架?
The market value of Jinshan office fell below 100 billion yuan: the shareholder Qiwen n-dimensional cash out exceeded 1.2 billion yuan
Markdown rule for writing articles