13using System.Collections;
17 public class TestInstantiation : GraphicRendererTestBase {
24 public IEnumerator InstantiateToRootOfScene() {
25 InitTest(
"OneDynamicGroup");
29 var otherGraphic =
Object.Instantiate(oneGraphic);
31 Assert.That(otherGraphic.isAttachedToGroup, Is.False);
32 Assert.That(oneGraphic.attachedGroup.graphics, Does.Not.Contains(otherGraphic));
40 public IEnumerator InstantiateChildOfRenderer() {
41 InitTest(
"OneDynamicGroup");
45 var otherGraphic =
Object.Instantiate(oneGraphic, renderer.transform);
49 Assert.That(otherGraphic.isAttachedToGroup, Is.True);
50 Assert.That(oneGraphic.attachedGroup.graphics, Does.Contain(otherGraphic));