Is there an plug-in SDK method to check if an object is within the 3D camera viewport?
For example, how the engine might determine using the 3D Shape's x, y, z elevation, bbox, and z height if Draw() should be called or not (I'm not sure how it's done, just guessing.)
I want to check if my 3D Object is visible or not depending on the camera location and orientation. If it is, I want to have the option to pause animations to save CPU cycles.
For 2D I used to do the below, but, this is not applicable for 3D.
let wi = this.GetWorldInfo();
let layerRect = wi.GetLayer().GetViewport();
let instanceRect = wi.GetBoundingBox();
let onScreen = instanceRect.intersectsRect(layerRect);