Ctrl+K

KillOutOfSceneComponent

Declaration

public class Strawberry.Components.Lifecycle.KillOutOfSceneComponent

Kills the owner when it goes out of scene

Inherits: Strawberry.Core.BaseComponent

Properties

Border

Gets or sets a border in pixels which is added to the scene bounds when checking for out of scene

Vector2 Border { get set }

Methods

OnComponentAdded override

void OnComponentAdded(BaseComponent component)

Parameters:

Name Type Description
component Strawberry.Core.BaseComponent

OnUpdate override

void OnUpdate()