graph管线必须开启兼容模式

This commit is contained in:
2025-12-18 17:57:10 +08:00
parent ab60b35be2
commit 209df04d82
5 changed files with 64 additions and 67 deletions

View File

@@ -194,20 +194,20 @@ namespace Demo
public RScriptVariables GenerateVariables(ScriptableObject self)
{
RScriptVariables variables = new()
{
{ "this", new() { data = self, type = self.GetType() } },
{ "self", new() { data = self, type = self.GetType() } },
{ "console", new() { data = new ConsoleTool(gameObject), type = typeof(ConsoleTool) } },
{ nameof(MathExtension.EaseCurveType), new() { data = EaseCurveTypeInstance.instance, type = typeof(EaseCurveTypeInstance) } },
{ $"Spline{nameof(SplineComputer.SampleMode)}",
new() { data = SplineComputerSampleModeInstance.instance, type = typeof(SplineComputerSampleModeInstance)} },
{ $"Spline{nameof(Spline.Type)}",
new() { data = SplineTypeInstance.instance, type = typeof(SplineTypeInstance)} },
{ nameof(IEffectHookObject.InteractiveEffectType),
new() { data = IEffectHookObjectInstance.instance, type = typeof(IEffectHookObjectInstance)} },
{ nameof(IInteraction.JudgementLevel),
new() { data = IInteractionJudgementLevelInstance.instance, type = typeof(IInteractionJudgementLevelInstance) } }
};
{
{ "this", new() { data = self, type = self.GetType() } },
{ "self", new() { data = self, type = self.GetType() } },
{ "console", new() { data = new ConsoleTool(gameObject), type = typeof(ConsoleTool) } },
{ nameof(MathExtension.EaseCurveType), new() { data = EaseCurveTypeInstance.instance, type = typeof(EaseCurveTypeInstance) } },
{ $"Spline{nameof(SplineComputer.SampleMode)}",
new() { data = SplineComputerSampleModeInstance.instance, type = typeof(SplineComputerSampleModeInstance)} },
{ $"Spline{nameof(Spline.Type)}",
new() { data = SplineTypeInstance.instance, type = typeof(SplineTypeInstance)} },
{ nameof(IEffectHookObject.InteractiveEffectType),
new() { data = IEffectHookObjectInstance.instance, type = typeof(IEffectHookObjectInstance)} },
{ nameof(IInteraction.JudgementLevel),
new() { data = IInteractionJudgementLevelInstance.instance, type = typeof(IInteractionJudgementLevelInstance) } }
};
return variables;
}