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

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

1311. Laya.Handler.create 加载图片回调参数问题 [ 53%]

....width, Laya.Browser.height, Laya.WebGL); var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.loadImage("res/img/popular.png", 0, 0, 0, 0, Laya.Handler.create(this, function (a1, a2) { console.log(a1, a2); }), [100]);   为什么不能把Laya.Hander.create后面带的这个参数传到Function...

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

1312. 绘制能力 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...坐标 path.push(-33, -33);//五角星J点坐标 sp.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50"); this.owner.addChild(sp); 代码运行效果如下图所示: (图4-5) 通过上面的示例代码的写法,是不是感觉代码的可读性得到了增强,...

来源: Laya3.0_文档 发布时间: 20251010

1313. ttf字体带版本号会导致加载不正常 [ 53%]

...ext=new Laya.Text(); txt.text=""; txt.font="fzy3jw"; txt.fontSize=50; Laya.stage.addChild(txt); })我应该修改哪里? 附件 : --> 2019-04-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同...

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

1314. 如何用Tween 给graphics.drawLine 设置缓动 [ 53%]

... public function LayaAirDemo() { Laya.init(600,600); sp=new Sprite(); Laya.stage.addChild(sp); endX=0; endY=0; sp.graphics.drawLine(10,10,endX,endY,'#FF0000'); Laya.timer.frameLoop(1,this,onFrameLoop); } private function onFrameLoop():void { endX+=2; endY+=2; sp.graphics.drawLine(10,10,endX,endY,'#F...

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

1315. layaAir1.3.1版本SWF组件播放速度异常 [ 53%]

...ovieClip(); swf.load("data.swf"); swf.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(swf); } private function onLoaded():void { // TODO Auto Generated method stub swf.interval=500; } } } 2016-09-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...

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

1316. 谷歌浏览器 不触发 ROLL_OVER 事件 [ 53%]

...也正常 157*****121 • 2018-04-04 10:50 下载个5.0版本的谷歌,stage.on(Event.ROLL_OVER,this,function(){alert(22});一试便知。。 157*****121 • 2018-04-04 10:50 移动端

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

1317. laya.display.Scene_API3.0 [ 53%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scene3D s...

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

1318. 淘宝创意互动小程序如何加载外部资源 [ 53%]

...Scene3D){ //这里打印出_scene不存在。 that._scene3D = _scene; Laya.stage.addChild(_scene); }));

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

1319. 自定义格式模型创建&渲染问题 [ 53%]

...aya.MeshSprite3D(NewMesh); 用这种方式声明一个MeshSprite3D后 Laya.stage.getChildAt(0).addChild(Mesh);加入到测试场景,发现并没有渲染该物体,跟踪调试发现在cull阶段执行 FrustumCulling.renderObjectCulling的时候 var renderElements=baseRender._renderElements;为...

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

1320. laya.ui.Slider_API3.0 [ 52%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask max min mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY sc...

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