-
-
Notifications
You must be signed in to change notification settings - Fork 23
Actor Interactable Component Validations
LifecycleCount is validated by this logic:
if LifecycleMode == Cycled then LifecycleCount = Max(2, InputValue)
if LifecycleMode == Once then LifecycleCount = 1
CooldownPeriod is validated by this logic:
if LifecycleMode == Cycled then LifecycleCount = Max(0.1, InputValue)
DefaultInteractableState is validated by this logic:
if DefaultInteractableState == Active then DefaultInteractableState = Awake
else if DefaultInteractableState == Cooldown then DefaultInteractableState = Awake
else if DefaultInteractableState == Completed then DefaultInteractableState = Awake
State Machine is a way to verify the State of the component. Some state paths cannot be traversed, and that is to avoid conflicts for validation. In the simple graph below you can see which State can be accessed from which.
Can Interact is a function with determines whether this Component can Interact or not. This function can be overridden in Blueprint to give game developers finer control over the validation flow. Default control is:
if State == Awake then return True else return False

