Home Reference Source Repository

js/SceneKit/SCNReferenceLoadingPolicy.js

'use strict'


/**
 * Options for when to load the reference node’s content, used by the loadingPolicy property.
 * @typedef {Object} SCNReferenceLoadingPolicy
 * @property {number} immediate - Load the node’s external content immediately when the reference node is unarchived.
 * @property {number} onDemand - Load the node’s external comment only when the load() method is called.
 * @see https://developer.apple.com/documentation/scenekit/scnreferenceloadingpolicy
 */
const SCNReferenceLoadingPolicy = {
  immediate: 0,
  onDemand: 1
}

export default SCNReferenceLoadingPolicy