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

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

121. 使用 addChild 加载界面后,绑定事件报错 [ 63%]

...面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartUI {     constructor() {         super();          this.btnStart.on(Laya.Event.CLICK, this, this.startGame);     }      startGame(): void {         //Laya.Scene.open("Ga...

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

122. List翻页效果 [ 63%]

...fo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateIte...

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

123. 字体切片组件 · LayaAir3.0文档 · LAYABOX [ 63%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property( { type : Laya.FontClip } ) public fontclp: Laya.FontClip; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwak...

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

124. 2.4.0bate在放大缩小时文本会不同程度的模糊 [ 63%]

...一下内容:   在LayaAir.d.ts 中缺少    class AnimationState extends laya.ani.AnimationState {}    class AnimationState {         static stopped: number;         static paused: number;         static playing: number;         constructor();   ...

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

125. List翻页效果怎么实现 [ 63%]

...fo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateIte...

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

126. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 63%]

...rotation旋转之后检测不了碰撞   附上代码  class FishPonds extends Laya.Sprite { public are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.h...

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

127. laya2.0 IDE继承自定义类要怎么写? [ 62%]

...要怎么写? 比如我有这样一个基类 export default class UIBase extends Laya.View{} 然后在编译界面按F9 添加UIbase到 场景类型里面,这样在创建新的场景的时候就会有UIBase可以继承,但生成的LayaMaxUI.ts文件会报错,请问下我还需要做什么操...

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

128. Laya3D场景加载问题 [ 62%]

...试内容:加载3D场景   代码如下: export default class TestUI extends ui.test.TestSceneUI {     private resource: Array<String> = [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resou...

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

129. 基础文本 · LayaAir3.0文档 · LAYABOX [ 62%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): voi...

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

130. socket.sent [ 62%]

...e.addChild(new Btn1 ());//加入舞台 } } new Game();       class Btn1 extends ui.v1UI{ public socket: Laya.Socket; public byte: Laya.Byte; constructor(){ super(); this.btn1.on(Laya.Event.CLICK,this,this.Btn1On); } Btn1On():void{ // socket.connect(“192.168.0.1.133”,8899); console.log("kjk"...

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