大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)
...teVideo, [texture2D]); },true); } updateVideo(tempTexture:Laya.Texture2D){ if(this.htmlvideo.video.readyState === this.htmlvideo.video.HAVE_ENOUGH_DATA) { //更新视频纹理 tempTexture.loadImageSource(this.htmlvideo.video); } } } 如果使用上述代码遇到问题,在继续提交新问题。 ...
来源: Laya_社区 发布时间: 20240305
...arse error"); } private function play(): void { console.log("1111111111"); if(++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton.play(this.index, false, true) } } ``` 具体效果大家可以在官网引擎事例中查看。https://layaair2.ldc2.layabox.com/demo2/?language=...
来源: Laya2.0_文档 发布时间: 20210715
... Laya.Physics.rayCast(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); if (this._outHitInfo.sprite3D.name === "tlj"){ isRotate = !isRotate; } // this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, state); // //绘出射线 // this.phasorSpriter3D.line(this.ray.origin.x, this.ray.origin.y, this.ray...
来源: Laya_社区 发布时间: 20170323
...图反射 material.albedo = new Laya.Vector4(0.8, 0.8, 0.8, 0); material.diffuseTexture = Laya.Texture2D.load("images/bg03.png"); box.meshRender.material = material; //平面 var plane = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(15, 15, 1, 1))); plane.transform.position = new Laya.V...
来源: Laya_社区 发布时间: 20180103
....Pool.recover('Skeleton', mArmature); } function play() { mCurrIndex++; if (mCurrIndex >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArmature.play(mCurrIndex, false); } })(); 报错信息: laya.core.js:18207 Uncaught TypeError: Cannot read property 'scaleX' of null at Skeleton....
来源: Laya_社区 发布时间: 20181120
...;">'+"fgdfdfgdfgdfgdf"+'</span>'}, visible:true }; if(chatListData[i].state==0){ arr.push({ friends:obj, my:{visible:false} }); }else{ arr.push({ my:obj, friends:{visible:false} }); } } chatList.array=arr; } 130*****113 • 2018-03-22 20:45 谢谢各位大神
来源: Laya_社区 发布时间: 20180319
...ationClip = Loader.getRes("res/gltfMode/Aniamtor/dalaozuo-dalaozuo.lani"); if (!clip) return; var layer: AnimatorControllerLayer = new AnimatorControllerLayer("test"); var animatorState: AnimatorState = new AnimatorState(); animatorState.clip = clip; layer.addState(animatorState); layer.defaultState...
来源: Laya2.0_文档 发布时间: 20210715
...束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce); //输出当前约...
来源: Laya2.0_文档 发布时间: 20210715
...节点名 */ private function findChild(sp:Sprite3D,name:String):Sprite3D{ if(sp.name==name) return sp; else return _findChild(sp._children,name); } private function _findChild(spArr:Array,name:String):Sprite3D{ var arr:Array = []; for(var i:int = 0;i (图 new)新版本骨骼挂点 ### 老版本...
来源: Laya2.0_文档 发布时间: 20210714
...束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce); //输出当前约...
来源: Laya2.0_文档 发布时间: 20210715