CheckObjectVisibility()

Syntax

Result = CheckObjectVisibility(#Camera, ObjectID)
Description
Check if an object is visible from the specified camera

Parameters

#Camera The camera to use.
ObjectID The object ID to check the visibility. It can be one of the following type:
  - Entity         : use EntityID() to get a valid ID.
  - Light          : use LightID() to get a valid ID.
  - Mesh           : use MeshID() to get a valid ID.
  - Node           : use NodeID() to get a valid ID.
  - ParticleEmitter: use ParticleEmitterID() to get a valid ID.
  - BillboardGroup : use BillboardGroupID() to get a valid ID.
  - Text3D         : use Text3DID() to get a valid ID.

Return value

Returns non-zero if the object is visible, returns zero otherwise.

See Also

CreateCamera()

Supported OS

All

<- BodyPick() - Engine3D Index - ConvertLocalToWorldPosition() ->