大约有 3,979 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0060 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
位图拉伸 模糊 var i=new Laya.Sprite(); i.loadImage('res/DUMMY1.png'); i.scale(10,10); Laya.stage.addChild(i); 做像素游戏的时候,位图做缩放的话,能不能去掉这个平滑处理,就是如图这样的像素效果 另外,刚才我在UI里面把一个小的像素区域作...
来源: Laya_社区 发布时间: 20180613
...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
...别加上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
...用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
...链接 提交 1 个回复 hj 赞同来自: 寻寻觅觅 改成这样试试 var worker = new Laya.Browser.window.Worker("../src/my_task.js"); 2018-09-22 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 明天当男神 相关问题 【...
来源: Laya_社区 发布时间: 20180918
...kyBox2/skyBox2.lmat",Handler.create(this,function(mat:BaseMaterial):void { var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` (图1)
来源: Laya2.0_文档 发布时间: 20210715
...D&name=PhysicsWorld_RayShapeCast)) ```typescript //创建球型碰撞器 var sphereCollider = new Laya.SphereColliderShape(0.5); //使用球型碰撞器进行形状检测 if (this.castAll) { //进行形状检测,检测所有碰撞的物体 this.scene.physicsSimulation.shapeCastAll(sphereCollider, ...
来源: Laya2.0_文档 发布时间: 20210715
无法获取音频的时间长度 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
... 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
... zjwytqm 赞同来自: 我问的是回调是否有参数,我知道 var dh=new Animation(); dh.on() 2017-07-18 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zjwytqm 相关问题 骨骼动画播放完后的回调时间 谷歌浏...
来源: Laya_社区 发布时间: 20170718