Skip to content

Commit 2d391ed

Browse files
test - update
switching to a Light component as opposed to BoxCollider as BoxCollider requires the physics package and we are just testing the functionality of ComponentController and not specifically any one other type of component.
1 parent db05292 commit 2d391ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

com.unity.netcode.gameobjects/Tests/Runtime/ComponentControllerTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Unity.Netcode.Components;
66
using Unity.Netcode.TestHelpers.Runtime;
77
using UnityEngine;
8+
using UnityEngine.Experimental.GlobalIllumination;
89
using UnityEngine.TestTools;
910

1011
namespace Unity.Netcode.RuntimeTests
@@ -38,7 +39,7 @@ protected override void OnServerAndClientsCreated()
3839
var sourceChild = new GameObject("Child");
3940
sourceChild.transform.parent = m_TestPrefab.transform;
4041
var meshRenderer = sourceChild.AddComponent<MeshRenderer>();
41-
var boxCollider = sourceChild.AddComponent<BoxCollider>();
42+
var light = sourceChild.AddComponent<Light>();
4243
var controller = m_TestPrefab.AddComponent<ComponentController>();
4344
controller.Components = new List<ComponentControllerEntry>
4445
{
@@ -49,7 +50,7 @@ protected override void OnServerAndClientsCreated()
4950
new ComponentControllerEntry()
5051
{
5152
InvertEnabled = true,
52-
Component = boxCollider,
53+
Component = light,
5354
}
5455
};
5556
base.OnServerAndClientsCreated();

0 commit comments

Comments
 (0)