• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)

1401. 体验LayaAir 3.0.0-beta.4遇到的一些问题 [ 43%]

... 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

1402. 求HTTP相关的文档或者例子谢谢了 [ 43%]

...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

1403. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 43%]

...ber):void { trace("加载了总文件的:"+pro+"%") progressBar.value=pro; if(progressBar.value==1) { progressBar.value=1; } } } }输出结果:(由于本示例中图片的加载速度很快,所以可能无法看到加载条的加载进度,但是我们可以看到输出结果) LoadingDemo.rar 2...

来源: Laya_社区 发布时间: 20160509

1404. 2.0 添加场景雾之后 粒子特效离原点越远 效果越淡 [ 42%]

...链接 提交 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

1405. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 42%]

...nLoading,null,false));//预载资源 //加载进度 function onLoading() { if(loadcount>0) { loadcount--; Xinxi.text=("正在载入相关资源...剩余"+loadcount+"文件"); ProgressBar.value=(1-loadcount/length)*100; } } //资源加载完毕回调函数 function LoadResComplete() { ProgressBarP...

来源: Laya_社区 发布时间: 20171207

1406. 使用UI组件tree时,添加的数据结构必须是xml吗?添加xml时对于tree的单元格里面的label如何控制例如visible的属性 [ 42%]

...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

1407. 加载 unity3D导入的旧版蒙皮动画时出现错误 [ 42%]

...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

1408. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 42%]

...下次再进来播放会导致取出来的不是Texture 而是 Texture2D  if (!tex.getIsReady()) {                     tex.once(Event.READY, this, this.drawImage, [tex, x, y, width, height]);                 }   导致 tex 找不到 getIsReady 方法报...

来源: Laya_社区 发布时间: 20200417

1409. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 42%]

...通过代码设定Clip相关的属性。 **运行示例效果:** ​ ![1](gif/1.gif) ​ (图5)通过代码创建计数器 ​ ![1](img/5.png) ​ (图6) ​ Clip的其他属性也可以通过代码来设置,上述示例演示了如何通过计时器获取每一秒更新clip.clipX切片,通过...

来源: Laya2.0_文档 发布时间: 20210714

1410. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 42%]

...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