大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
... const rig = this.basketball.getComponent(Laya.Rigidbody3D); if (rig) { //默认不生效呢??? // rig.restitution = 0.9; // rig.gravity = new Laya.Vector3(0, -10, 0); // rig.overrideGravity = true; ...
来源: Laya_社区 发布时间: 20230220
...oader=new URLLoader(); this.publicloader.dataFormat=/*iflash.net.URLLoaderDataFormat.VARIABLES*/"variables"; this.publicloader.addEventListener(/*iflash.events.Event.COMPLETE*/"complete",BIND$(this,this.checkListComp)); this.url=new URLR...
来源: Laya_社区 发布时间: 20151217
...ber):void { trace("加载了总文件的:"+pro+"%") progressBar.value=pro; if(progressBar.value==1) { progressBar.value=1; } } } }输出结果:(由于本示例中图片的加载速度很快,所以可能无法看到加载条的加载进度,但是我们可以看到输出结果) LoadingDemo.rar 2...
来源: Laya_社区 发布时间: 20160509
...链接 提交 1 个回复 134*****987 赞同来自: 零下的孤單 ps="#ifdef HIGHPRECISION\n precision highp float;\n#else\n precision mediump float;\n#endif\n\nvarying float v_Discard;\nvarying vec4 v_Color;\nvarying vec2 v_TextureCoordinate;\nuniform sampler2D u_texture;\nuniform vec4 u_Tintcolo...
来源: Laya_社区 发布时间: 20190412
...nLoading,null,false));//预载资源 //加载进度 function onLoading() { if(loadcount>0) { loadcount--; Xinxi.text=("正在载入相关资源...剩余"+loadcount+"文件"); ProgressBar.value=(1-loadcount/length)*100; } } //资源加载完毕回调函数 function LoadResComplete() { ProgressBarP...
来源: Laya_社区 发布时间: 20171207
...reeRender(e):void { //获取每条Item的alpha属性并赋值给Item对象 if(e._dataSource.isAlpha) { var alphaNum:Number=e._dataSource.isAlpha; e.alpha=alphaNum; }//如果未设置alpha的项,则默认透明度为1 else { e.alpha=1; } }附件已经上传,可以参考,把alpha改成你对应...
来源: Laya_社区 发布时间: 20170717
...s: attempt to access out of range vertices in attribute 2 INVALID_VALUE: uniformMatrix4fv: invalid srcOffset 然后模型部份位置错乱 加载动画使用官网的旧版例子中的代码 addSkinComponent(spirit3D: Laya.Sprite3D): void { if (spirit3D instanceof Laya.MeshSpr...
来源: Laya_社区 发布时间: 20180724
...下次再进来播放会导致取出来的不是Texture 而是 Texture2D if (!tex.getIsReady()) { tex.once(Event.READY, this, this.drawImage, [tex, x, y, width, height]); } 导致 tex 找不到 getIsReady 方法报...
来源: Laya_社区 发布时间: 20200417
...通过代码设定Clip相关的属性。 **运行示例效果:**  (图5)通过代码创建计数器  (图6) Clip的其他属性也可以通过代码来设置,上述示例演示了如何通过计时器获取每一秒更新clip.clipX切片,通过...
来源: Laya2.0_文档 发布时间: 20210714
...fixedConstraint.breakForce = 1000; } override public function onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce); //输出当前约...
来源: Laya2.0_文档 发布时间: 20210714