Ctrl+K

KillOutOfViewportComponent

Declaration

public class Strawberry.Components.Lifecycle.KillOutOfViewportComponent

Kills the owner when it goes out of a viewport

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 }

ViewportName

Gets or sets The name of the viewport to check. (Default is "Default")

string ViewportName { get set }

Methods

OnComponentAdded override

void OnComponentAdded(BaseComponent component)

Parameters:

Name Type Description
component Strawberry.Core.BaseComponent

OnUpdate override

void OnUpdate()