API Reference

Class List

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.

Summary

Properties

enabledEnables or disables the component.

Details

Constructor

Component(system, entity)

Base constructor for a Component

Parameters

systempc.ComponentSystemThe ComponentSystem used to create this Component
entitypc.EntityThe Entity that this Component is attached to

Properties

Booleanenabled

Enables or disables the component.