Class RuleSO
ScriptableObject defining a rule that connects conditions to layer weights or action triggers.
Rules are evaluated in priority order (highest first).
Conditions are configured inline using the [SerializeReference] pattern.
Assembly: Serenity.UnityProceduralExpression.Infrastructure.dll
Syntax
public class RuleSO : ScriptableObject
Constructors
RuleSO()
Declaration
Properties
AllowRetrigger
Declaration
public bool AllowRetrigger { get; }
Property Value
BlendInSeconds
Declaration
public float BlendInSeconds { get; }
Property Value
BlendOutSeconds
Declaration
public float BlendOutSeconds { get; }
Property Value
CooldownSeconds
Declaration
public float CooldownSeconds { get; }
Property Value
Effect
Declaration
public RuleEffect Effect { get; }
Property Value
Priority
Declaration
public int Priority { get; }
Property Value
RuleCondition
Declaration
public Condition RuleCondition { get; }
Property Value
TargetAction
Declaration
public ProceduralActionSO TargetAction { get; }
Property Value
TargetLayer
Declaration
public ProceduralLayerSO TargetLayer { get; }
Property Value
WeightProvider
Declaration
public WeightProviderSO WeightProvider { get; }
Property Value
Methods
GetMappedWeight(in UnityProceduralContext)
Gets the layer weight from the weight provider.
Declaration
public float GetMappedWeight(in UnityProceduralContext ctx)
Parameters
Returns
IsConditionMet(in UnityProceduralContext)
Evaluates whether this rule's condition is currently met.
Declaration
public bool IsConditionMet(in UnityProceduralContext ctx)
Parameters
Returns
ResetCondition()
Resets the condition's internal state.
Declaration
public void ResetCondition()
ValidateConfiguration()
Validates the rule configuration and returns any issues found.
Declaration
public string ValidateConfiguration()
Returns