↧
Answer by Chris Masterton
If you know the name of the prefab you could try GameObject.Find. A return value of null would mean it is not loaded.GameObject myPrefab = GameObject.Find("nameOfMyPrefab"); if( myPrefab == null ) { //...
View ArticleAnswer by LeMoine
Ok, I found the solution here: [How to "Get" prefabs from project View by code][1] To check if a prefab is in the assets, use the `Resources.Load("prefabName")` method, like this: Object prefab; try{...
View Article