9092858a58
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
18 lines
444 B
C#
18 lines
444 B
C#
#if TEST_FRAMEWORK
|
|
using UnityEditor;
|
|
using UnityEditor.TestTools.TestRunner.Api;
|
|
using UnityEngine;
|
|
|
|
namespace Packages.Rider.Editor.UnitTesting
|
|
{
|
|
[InitializeOnLoad]
|
|
internal static class CallbackInitializer
|
|
{
|
|
static CallbackInitializer()
|
|
{
|
|
if (CallbackData.instance.isRider)
|
|
ScriptableObject.CreateInstance<TestRunnerApi>().RegisterCallbacks(ScriptableObject.CreateInstance<TestsCallback>(), 0);
|
|
}
|
|
}
|
|
}
|
|
#endif |