This document is archived and information here might be outdated. Recommended version. |
Indicates if the camera has valid parameters.
[Visual Basic .NET]
Public ReadOnly Property IsUsable As Boolean
[C#]
public bool IsUsable {get;}
[C++]
HRESULT get_IsUsable(
Boolean* isValid
);
[C++] Parameters isValid [out, retval]
isValid is a parameter of type bool*
Before doing something with a camera it is advisable to call IsUsable first. It's possible the camera has some properties which are undefined or is unable to perform certain requests. This happens when a camera is associated with an empty scene, the target/observer or other parameters has invalid values (not a number, for instance), or when the target and the observer share the same location etc.