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

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

411. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...入口中,在代码里给 Tree 对象赋值的示例如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tree }) public tree: Laya.Tree; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法...

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

412. 多个按钮的事件绑定问题 [ 60%]

...何去写?难道只能挨个绑定事件? 能不能像jquery那样$(".classname").click(function(){})类似的写法?   现在来说 尤其是UI里面的按钮 都有一个唯一的var  一般我是通过这个var来绑定事件  ,但是就因为是唯一性的,那么30个按钮就要...

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

413. [LayaAirIDE3]Laya.LayaGL 仲不存在 renderOBJCreate [ 60%]

... renderOBJCreate laya3.0.9 升级到3.1.3 版本 出现 查看源码里面class  LayaGL 确实没有这个createEngine 附件 : --> 2024-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 layabox 赞同来自:...

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

414. 请问红色方块,怎么能在黄色长方形内自动滑动,鼠标点击则停下来 [ 60%]

... qian 赞同来自: https://layaair.ldc.layabox.com/api/?category=Core&class=laya.utils.Tween 你用tween试一试 2018-03-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 15006122705 相关问题 2.0一不小心删了bin目录下...

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

415. 导航容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...暴露的属性入口中。需要添加如下的示例代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ViewStack }) public viewstack: Laya.ViewStack; @property({ type: Laya.Tab }) public tab: Laya.Tab; //组件被激活后...

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

416. 子容器的事件问题 [ 60%]

...nsole.log("为什么这里不进来"); }); } /**  * ViewHeadViewTest  */ class ViewHeadViewTest extends Laya.Sprite {     constructor() {         super();         this.graphics.drawRect(0, 0, 1500, 1500, "#0000ff");         this.on(Laya.Event.CLICK, this, this.onclickTest);     } ...

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

417. hitTestPrior点击穿透 [ 59%]

....display.Sprite; import laya.events.Event; import laya.webgl.WebGL; public class PanelElastic { public function PanelElastic() { Laya.init(800,600,WebGL); Laya.stage.bgColor="#EEFFCC"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,o...

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

418. 类未找到方法 [ 59%]

类未找到方法 public class Welcome extends welcomeUI { public function Welcome() { requestData(); } private function requestData():void{ RequestConfig.instance.getRequestConfig(String(0), requestCallback); } private function requestCallback(success:Boolean):void { if(success) { loadingRes(); }...

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

419. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...。下面给出一个示例代码,实现脚本控制Label: const { regClass, property } = Laya; @regClass() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活...

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

420. Laya.timer.once计时不准确的问题 [ 59%]

...er.once计时不准确的问题 import WebGL = Laya.WebGL; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, WebGL); console.log("Before In One, Time = " + Date.now()); Laya.timer.once(1,this,this.One) console.log("After In One, Time = " + Date.now()); } One():void{ console.log("In ...

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