Structure

PointLight.ComponentSet

Declaration

struct ComponentSet

Topics

Creating a Set

func set([Component])

Adds all the component in the input array to the set.

Accessing Members

subscript(Component.Type) -> Component?

Gets or sets the component of the specified type.

subscript<T>(T.Type) -> T?

Gets or sets the component of the specified type.

Counting Members

Checking for Membership

func has(Component.Type) -> Bool

Returns a Boolean that indicates whether the set contains a component of the given type.