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

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

81. IDE-显示IDE创建的界面 [ 70%]

...; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Laya.CLICK, this, this.onBtnClick); this.btn2.on(Laya.CLICK, this, ...

来源: Laya_示例 发布时间: 20240930

82. IDE-显示IDE创建的界面 [ 70%]

...; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Laya.CLICK, this, this.onBtnClick); this.btn2.on(Laya.CLICK, this, ...

来源: Laya2.0_示例 发布时间: 20200319

83. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 70%]

...部代码如下所示: ```typescript export default class ImageRunTime extends Laya.Image{ constructor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this...

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

84. tsc编译报错 [ 70%]

...题! 2017-03-01 0 0 分享 微博 QZONE 微信 jiye 赞同来自: 我在extends 后面多写了class 所以报了这个诡异的错 @xiaosong 2017-03-01 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jiye 相关问题 Layabox 2.0 bate5...

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

85. Laya 绑定显示内容到骨骼动画 [ 70%]

...1. 可绑定内容的骨骼动画   export default class BindSkeleton extends Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; }  /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(...

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

86. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 70%]

...了个例子,发现个新问题 import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } private _initView():void { let sprite:Sprite = new Sprite(); sprite.loadImage("res/scene/1001/layer1/qiang.jpg", 100, 100, 100, 100); this.addChild(sprite); sprite = ...

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

87. 单选框组件 · LayaAir3.0文档 · LAYABOX [ 70%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Radio }) public radio: Laya.Radio; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.radio.skin = "atlas/co...

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

88. 如何才能生成scene配套的代码 [ 70%]

...i.test { import laya.ui.*; import laya.display.*; public class TestSceneUI extends Scene { public var scoreLbl:Label; public var tipLbll:Label; override protected function createChildren():void { super.createChildren(); loadScene("test/TestScene"); } } } 2018-10-24 添加评论 免费帖 --> 分享 ...

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

89. 2.0版本,Particle2D is not a constructor [ 70%]

2.0版本,Particle2D is not a constructor export default class RunMain extends Laya.Sprite{ constructor(){ super(); Laya.loader.load([{url:"res/213.part",type:Laya.Loader.JSON}],Laya.Handler.create(this,this.onAssetsLoaded)); } onAssetsLoaded(){ let pg = Laya.loader.getRes("res/213.part"); let pd...

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

90. UI-Tree [ 69%]

..."Box", "props": {"name": "render", "right": "0", "left": "0"}}; class Item extends Box { constructor() { super(); this.right = 0; this.left = 0; let selectBox = new Clip("res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; // 设置 selectBox 的name 为“selectBox”时,将被...

来源: Laya2.0_示例 发布时间: 20240930