I spawned in objects with the Instantiate command (as childrens of other Instantiated objects) and I tried to find them with Physics.CheckBox. But it didn’t work so I tried to find them with the GameObject.FindGameObjectsWithTag(“[Place Holder]”) but for some reason it only found the original object! I really tried to find the reason why, but I couldn’t really think of anything.
You haven’t given us any code so I can only guess what you’re doing. My immediate reaction is that, if you want to keep track of your instantiated objects, you should keep reference to them in a List. Here’s some very simplified code:
using System.Collections.Generic;
using UnityEngine;
public class Instan : MonoBehaviour
{
[SerializeField] GameObject prefab;
List<GameObject> myObjects = new();
void Update()
{
if (Input.GetKeyDown(KeyCode.Space))
{
myObjects.Add(Instantiate(prefab));
}
}
}
Much better to do that than to create them and then search for them later…