WuhuIslandTesting/Library/PackageCache/com.unity.addressables@1.21.12/Tests/Editor/DocExampleCode/CustomBuildScript.cs
2025-01-07 02:06:59 +01:00

31 lines
746 B
C#

namespace AddressableAssets.DocExampleCode
{
#if UNITY_EDITOR
using UnityEditor.AddressableAssets.Build;
using UnityEditor.AddressableAssets.Build.DataBuilders;
internal class CustomBuildScript : BuildScriptBase
{
#region doc_CustomBuildScript
public override bool CanBuildData<T>()
{
return typeof(T).IsAssignableFrom(typeof(AddressablesPlayerBuildResult));
}
#endregion
}
internal class CustomPlayModeScript : BuildScriptBase
{
#region doc_CustomPlayModeScript
public override bool CanBuildData<T>()
{
return typeof(T).IsAssignableFrom(typeof(AddressablesPlayModeBuildResult));
}
#endregion
}
#endif
}