public void CreatePrimitiveAndFindComponents() { GameObject go = GameObject.CreatePrimitive(PrimitiveType.Sphere); int instanceID = go.GetInstanceID(); Assert.IsNotNull(FindComponentWithGameObjectID(ObjectUtility.FindSceneComponents <MeshFilter>(), instanceID)); Assert.IsNotNull(FindComponentWithGameObjectID(ObjectUtility.FindSceneComponents <MeshRenderer>(), instanceID)); Assert.IsNotNull(FindComponentWithGameObjectID(ObjectUtility.FindSceneComponents <SphereCollider>(), instanceID)); Object.DestroyImmediate(go); }