Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Mesh
  5. isOnCamera

isOnCamera

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Get whether mesh is seen by any camera, also applies to sprites or trail renderers if we don’t have a mesh renderer, otherwise false

returns a Boolean (true or false) value

Example:

1
obj.isOnCamera()
Tags
Was this article helpful to you? Yes No

How can we help?