Returns whether the instance contains all required resources to be functional.
- Source:
Example
import musketeers from 'three-musketeers';
const $$$ = musketeers();
$$$.isValid(); // returns false
$$$.setResource({
camera,
renderer,
scene
});
$$$.isValid(); // returns true
Returns:
- Whether the instance is valid.
- Type
- boolean