feat(scripting): add managed srp base api

This commit is contained in:
2026-04-15 20:14:48 +08:00
parent cafe3c8076
commit 04ecac26d6
6 changed files with 75 additions and 3 deletions

View File

@@ -20,10 +20,10 @@ namespace XCEngine
set
{
if (value != null &&
!typeof(RenderPipelineAsset).IsAssignableFrom(value))
!typeof(ScriptableRenderPipelineAsset).IsAssignableFrom(value))
{
throw new ArgumentException(
"GraphicsSettings.renderPipelineAssetType must derive from RenderPipelineAsset.",
"GraphicsSettings.renderPipelineAssetType must derive from ScriptableRenderPipelineAsset.",
nameof(value));
}