I want to display an object in the project, which is not preloaded. I use postrender(and frameend) to get the last frame of the object rendering, and then print the text. But my text has been printed, and the object has not been fully displayed.Is there a way to get the state of the object after it is completely displayed
var IsFrameEnd = pc.createScript('isFrameEnd');
// initialize code called once per entity
IsFrameEnd.prototype.initialize = function () {
var self = this;
this.app.once('postrender', function (e) {
console.log('entityName:', self.entity.name);
});
};
// update code called every frame
IsFrameEnd.prototype.update = function (dt) {
};
// pc.Application.getApplication().once('postrender', function () {
// console.log('load.....');
// });