Awake() in the strictest sense.
It is not the constructor function just like Start/Awake in Unity are not constructors. The are functions that called before the first Update call is made when first active in the scene. The distinction is important to make as constructors are called when the object is created.
In Unity, it’s not an uncommon problem for someone to try to call a function on an inactive object in the scene that has never been active only for it to go wrong. This is usually because Awake/Start have not been called yet as the GameObject has never been made active.
But as people tend to think of them as constructors, they think it gets called automatically when it’s first created.
Back to PlayCanvas,
initialize will gives the developer the opportunity to add properties to the class instance before
postInitialize and the