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

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

821. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 54%]

...回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     matrix.a = -1;     matrix.tx = 2*...

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

822. List 组件列表渲染异常 [ 54%]

...信 风神 赞同来自: 第二项没渲染出来原因是忘记设置Laya.handler 的 once ,不过列表滚动后,依然覆盖数据。 2021-04-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 风神 相关...

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

823. native 获取Texture上的某个区域的像素点 getPixels中有报错 [ 54%]

...e = new Laya.Texture();         tex.load("res/img/108879.png",Laya.Handler.create(this,function(): void{             tex.getPixels(0,0,1,1);         })); 附件 : --> 2019-06-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

824. layabox打包有问题用cordova打包没问题 [ 54%]

...ace("---------------loadBaseConfAfterGame"); Laya.loader.load( temploaArr, Handler.create(this,loadAllBaseConfFun,[_afterGameConfigArr])/*,progressHandler*/); } private function loadAllBaseConfFun(configURLArr:Array):void { trace("-------------loadAllBaseConfFun------------"); } loadconfig这个...

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

825. discard property,please use transform's property instead [ 54%]

... "res/plane.lh",             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoop(1, null, function () {             Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion...

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

826. 微信小游戏加载ProtoBuf文件和图片加载问题 [ 54%]

..., type: Loader.IMAGE}, //这张图有问题。 ]; Laya.loader.load(loadArr,Handler.create(this, onLoad2)); 目前不知道如何解决。 有些图片没有问题,有些图片不可以,也有可能是这个图的问题,我再排查一下,重点是上个问题,protobuf文件的加载问题...

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

827. laya.ui.CheckBox_API3.0 [ 54%]

... CheckBox 实例。 package { import laya.ui.CheckBox; import laya.utils.Handler; public class CheckBox_Example { public function CheckBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check...

来源: Laya3.0_api 发布时间: 20231115

828. 场景天空(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 54%]

... Laya.BaseMaterial.load("res/threeDimen/skyBox/skyBox1/SkyBox.lmat", Laya.Handler.create(null, function(mat) { var skyRenderer:SkyRenderer = camera.skyRenderer; skyRenderer.mesh = Laya.SkyBox.instance; skyRenderer.material = mat; })); ``` 效果如下(图3): ![](img/3.png)(图3) **使用Un...

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

829. 什么情况下Tween缓动会停止?除了暂停函数外 [ 54%]

...告 laya.utils.Tween.to(self.richText, { x: 0 }, 10000, null, laya.utils.Handler.create(self, self.onTween1));   然后执行游戏里面代码的时候有时候会卡住不动,没报错,非必现。 //播开始动画 var kaishi = new StartAnimView(); this.addChild(kaishi); kaishi.playAnim(); t...

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

830. 物理刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 54%]

...`typescript //加载模型 Laya.Sprite3D.load("Conventional/shoot.lh",Laya.Handler.create(this,function(sp:Laya.Sprite3D){ //获取到Meshsprite3d var cube = scene.addChild(sp.getChildAt(0)) as Laya.MeshSprite3D; //获取刚体 var cubeRigid:Laya.Rigidbody3D = cube.getComponent(Laya.Rigidbody3D)...

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