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
enabled | Enables or disables the component. |
Details
Constructor
Component(system, entity)
Base constructor for a Component
Parameters
system | pc.ComponentSystem | The ComponentSystem used to create this Component |
entity | pc.Entity | The Entity that this Component is attached to |