Class: Component

pc.Component

Components are used to attach functionality on a pc.Entity. Components can receive update events each frame, and expose properties to the PlayCanvas Editor.

Constructor

new Component(system, entity)

Base constructor for a Component
Parameters:
Name Type Description
system pc.ComponentSystem The ComponentSystem used to create this Component
entity pc.Entity The Entity that this Component is attached to
Properties:
Name Type Description
enabled Boolean Enables or disables the component.
Source: