@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
13 lines (12 loc) • 436 B
JavaScript
;
import { ObjectNamedFunction2 } from "./_Base";
import { getOrCreateObjectAttributeRef } from "../../core/reactivity/ObjectAttributeReactivityCreateRef";
export class getObjectAttributeRef extends ObjectNamedFunction2 {
static type() {
return "getObjectAttributeRef";
}
func(object3D, attribName, type) {
const _ref = getOrCreateObjectAttributeRef(object3D, attribName, type);
return _ref.current;
}
}