KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2022-10-04 to 1 day

typescript 継承

import * as THREE from 'three'; import { MeshBasicMaterial } from 'three'; import gsap from 'gsap'; export class Hoge extends THREE.Mesh{ mat: THREE.MeshBasicMaterial; count: number = 0; constructor(m:THREE.Mesh){ let mat = new MeshBasicMa…

gasp使い方

callbackとか忘れる this.count=0; gsap.to(this,{ count: 99, duration: 5, ease: "power3.inOut", onComplete:()=>{window.alert("unko")} }) gsap.delayedCall(5,()=>{ this.hoge(); })

"FOOTER"