📜  在脚本统一中加载预制件 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:41.011000             🧑  作者: Mango

代码示例1
/*
To use Resources.Load,
the object must be in a Resources folder.(there can be multiple).
So your folder structure could look like "Assets/Resources/Prefabs/prefabName"
Then to load it use*/
Resources.Load("Prefabs/prefabName") as GameObject;