WuhuIslandTesting/Library/PackageCache/com.unity.xr.management@4.2.1/Tests/TestPackage/Editor/TestPackage.cs

35 lines
837 B
C#
Raw Permalink Normal View History

2025-01-07 02:06:59 +01:00
using System.Runtime.CompilerServices;
using UnityEngine;
using UnityEditor.XR.Management.Metadata;
[assembly:InternalsVisibleTo("Unity.XR.Management.EditorTests")]
[assembly:InternalsVisibleTo("Unity.XR.Management.Tests.Standalone")]
namespace Unity.XR.Management.TestPackage.Editor
{
internal class TestPackage : IXRPackage
{
public TestPackage() {}
public IXRPackageMetadata metadata
{
get
{
return TestMetadata.CreateAndGetMetadata();
}
}
public bool PopulateNewSettingsInstance(ScriptableObject obj)
{
TestSettings packageSettings = obj as TestSettings;
if (packageSettings != null)
{
return true;
}
return false;
}
}
}