Resources.Load() and Instantiate() of unity

Resources.Load() read resource files

Resources.Load: To load resources in this way, you first need to create a folder named Resources under the Asset directory. This naming is the way specified by U3D, and then put the resource files in. Of course, you can also create a sub-folder in Resources. Folder, the corresponding resource path needs to be added when the code is loaded.
See these 2 articles:
https://blog.csdn.net/Filwl_/article/details/83713887
https://blog.csdn.net/alayeshi/article/details/51093624?utm_medium=distribute.pc_relevant.none-task- blog-baidujs-4&spm=1001.2101.3001.4242

Instantiate() instantiation

Instantiate function instantiation is to completely copy all the sub-objects and sub-components of the original object into a new object. This new object has exactly the same things as the source object, including coordinate values, etc.
See:
https://blog.csdn.net/qq_29413829/article/details/78934579
Why is Instantiate needed after Resources.Load in Unity?

Guess you like

Origin blog.csdn.net/jiachun199/article/details/107586942