Isn't it better to disable the tick if no 'PressurePlate' has been set?

The OpenDoor component needs the ‘PressurePlate’ TriggerVolume to be able to work.
Isn’t it easier just to disable the tick function in BeginPlay if some necessary arguments are null?
This also prevents the tick function from running unnecessarily.

But only if the tick function has no other functionality to it besides checking the TriggerVolume obviously.

Arguably, yes it is.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms