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

大约有 3,979 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0060 秒)

2601. 位图拉伸 模糊 [ 56%]

位图拉伸 模糊 var i=new Laya.Sprite(); i.loadImage('res/DUMMY1.png'); i.scale(10,10); Laya.stage.addChild(i);   做像素游戏的时候,位图做缩放的话,能不能去掉这个平滑处理,就是如图这样的像素效果 另外,刚才我在UI里面把一个小的像素区域作...

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

2602. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 56%]

...nsform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = this.spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); this.spotLight.transform.worldMatrix = mat; //设置聚光灯范围 this.spotLight.range = 6.0; //设置聚光灯锥形角度 ...

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

2603. app打包后黑屏 [ 56%]

...别加上this.graphics.save()和this.graphics.restore()试下! 譬如: var sp:Sprite=new Sprite(); sp.graphics.save(); sp.graphics.draw。。。。 sp.graphics.restore(); 2017-02-07 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jifm...

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

2604. 请问LayaAir中如何使图片以圆形的方式显示? [ 56%]

...用graphcis绘制一个circle,将circle最为遮罩给图片就可以了 var sp:Sprite=new Sprite() sp.graphics.drawCircle(0,0,50,"#FF0000") img.mask=sp; 2017-01-07 7 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ytd7777 相关问题 ...

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

2605. 多线程教程代码报错 [ 56%]

...链接 提交 1 个回复 hj 赞同来自: 寻寻觅觅 改成这样试试 var worker = new Laya.Browser.window.Worker("../src/my_task.js");   2018-09-22 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 明天当男神 相关问题 【...

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

2606. 材质的加载(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 56%]

...kyBox2/skyBox2.lmat",Handler.create(this,function(mat:BaseMaterial):void { var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` ![](img/1.png)(图1)

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

2607. 物理形状扫描检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 56%]

...D&name=PhysicsWorld_RayShapeCast)) ```typescript //创建球型碰撞器 var sphereCollider = new Laya.SphereColliderShape(0.5); //使用球型碰撞器进行形状检测 if (this.castAll) { //进行形状检测,检测所有碰撞的物体 this.scene.physicsSimulation.shapeCastAll(sphereCollider, ...

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

2608. 无法获取音频的时间长度 [ 56%]

无法获取音频的时间长度     var soundChItem:Laya.SoundChannel = Laya.SoundManager.playMusic("resources/sound/dh/gril1.wav", 1,Laya.Handler.create(this,() => {       }));     console.log(soundChItem.position+"");     console.log(soundChItem.duration+""); 附件 : --> 2023-05-19...

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

2609. 2.0如何射线检测 [ 56%]

...    this.camera.viewportPointToRay(this.mousePos, this.ray);      var phy:Laya.PhysicsSimulation =new Laya.PhysicsSimulation(new Laya.PhysicsSettings()); //射线与3D模型中的碰撞器进行碰撞检测 phy.rayCast(this.ray, this.rayCastHit, 30, 0); 这样使用射线检测么? 2019-05...

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

2610. Animation 播放完成回调有参数吗 [ 56%]

... zjwytqm 赞同来自: 我问的是回调是否有参数,我知道     var dh=new Animation(); dh.on() 2017-07-18 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zjwytqm 相关问题 骨骼动画播放完后的回调时间 谷歌浏...

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