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

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

101. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 77%]

...Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var WebGL = Laya.WebGL;...

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

102. 为什么全局属性赋值后,在另外个函数中调用会自动变成undefined [ 77%]

... function(scene:Scene3D):void {                 Laya.stage.addChild(scene) as Scene3D;                 camera = scene.getChildByName("Main Camera") as Camera;                 Laya.stage.on(Event.MOUSE_DOWN, this, onMouseDown);             ...

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

103. 降帧模式下oppo真机上闪屏 [ 77%]

..._FULL; Laya.stage.bgColor="#444"; var sprite=new Laya.Sprite(); Laya.stage.addChild(sprite); sprite.loadImage("img/bg.jpg"); } start(); 附件 : --> test-low-frame.zip 2020-05-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

104. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 77%]

...lect); list.renderHandler = new Handler(this, this.updateItem); Laya.stage.addChild(list); // 设置数据项为对应图片的路径 var data: Array = []; for (var i: number = 0; i < 10; ++i) { data.push("res/ui/listskins/1.jpg"); data.push("res/ui/listskins/2.jpg"); data.push("res/ui/listskins/3.j...

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

105. dialog的popup方法不会关闭其他弹窗 [ 77%]

...new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog);  }  }     // 弹窗代码   class NormalDialog extends ui.normalDialogUI { constructor( text: string ) { super(); // 设置label文字 this.context.text = text; this.btn_close.on(Laya.Event.C...

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

106. 把摄像机添加到一个物体上,然后绕着这个物体旋转 [ 77%]

...t3D,给它添加一个cameraMoveScript脚本组件,然后​cameraroot.addchild创建一个摄像机,设置好摄像机的默认位置角度使其朝向物体就行了 var map: Laya.Sprite3D = Laya.loader.getRes("cj/cj.lh"); this.scene.addChild(map); var cjd0: Laya.Sprite3D = new Laya.Sprite3D...

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

107. 我在unity打开模型是有颜色的,但是在laya中打开是白色的 [ 77%]

...导出的场景。 var scene = Laya.Scene.load('h5/3333d.ls'); Laya.stage.addChild( scene );   附件 : --> 归档.zip 2017-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 qian 赞同来自: 你的模型 预...

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

108. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 77%]

...'sp2'; sp2.graphics.drawRect(0,0,100,100,"#0000FF"); sp2.x=110; Laya.stage.addChild(sp1); Laya.stage.addChild(sp2); onAddEvent(sp1); onAddEvent(sp2); } private function onAddEvent(target:Sprite):void { target.on(Event.MOUSE_OVER,this,onMouse); target.on(Event.MOUSE_OUT,this,onMouse); } private funct...

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

109. textinput(type=password)手机打开华为安全键盘后,无法关闭(官网的例子) [ 77%]

....bold = true;         ti.color = "#606368";         Laya.stage.addChild(ti);         return ti;     } })(); 附件 : --> TSET.zip 2019-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya...

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

110. 关于graphics.drawPath手机端和PC端不一致的问题 [ 76%]

...owall"; Laya.stage.bgColor = "#ffffff"; this.sp = new Sprite(); Laya.stage.addChild(this.sp); this.sp.graphics.drawPath(100, 100, [["moveTo", 100, 0], ["arcTo", 200, 0, 200, 100, 100], ["arcTo", 200, 200, 100, 200, 100], ["arcTo", 0, 200, 0, 100, 100], ["arcTo", 0, 0, 100, 0, 100]], {fillStyle: "#00...

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