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

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

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

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

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

102. 编译时候报错 如下 怎么解决呢 [ 68%]

...0,11): error TS2417: Class static side 'typeof RenderTarget2D' incorrectly extends base class static side 'typeof Texture'. Types of property 'create' are incompatible. Type '(w: number, h: number, surfaceFormat?: number, surfaceType?: number, depthStencilFormat?: number,...' is not assignable to ty...

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

103. laya.filters.IFilterActionGL [ 67%]

...s | Methods Packagelaya.filtersInterfacepublic interface IFilterActionGL extends IFilterActionImplementors ColorFilterActionGL, FilterActionGLPublic Properties PropertyDefined By  typeMix : int[read-only] IFilterActionGLPublic Methods Hide Inherited Public Methods Show Inherited Public Methods...

来源: laya_api 发布时间: 20170929

104. 复杂UI类卸载 [ 67%]

复杂UI类卸载 class GameUI extends View{ container:Laya.Sprite; img1:Laya.Image; anim1:Laya.Animation; ... }, 类似这样的复杂UI类,里面包含了各种类型的组件,当需要卸载GameUI类的时候,gameUI.removeSelf();gameUI.destroy(true);gameUI = null ,用这种方式是否可行...

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

105. 性能测试-卡通人物2 [ 67%]

...Frame % 60 === 0) { text.text = Stat.FPS.toString(); } } } class Character extends Laya.Sprite { constructor(images) { super(); this.speed = 5; this.bloodBar; this.animation; this.nameLabel; this.createAnimation(images); this.createBloodBar(); this.createNameLabel(); } createAnimation(images) { cons...

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

106. Laya.stage.on(Laya.Event.DISPLAY,this,this.ddddd); 无法监听到。 [ 67%]

...e { import laya.display.Sprite; import laya.events.Event; public class AAA extends Sprite { public function AAA() { super(); this.on(Event.DISPLAY,this,onDisplay); } private function onDisplay():void { alert("display"); } } } 2017-02-14 0 0 分享 微博 QZONE 微信 hfeiop12 赞同来自: 已经解...

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

107. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 67%]

...``typescript /* ImageRunTime逻辑类 */ export default class ImageRunTime extends Laya.Image{ public scaleTime:number = 100; constructor() { super(); //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DO...

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

108. 关于.ui文件生成的ts类如何正确使用这个.ui皮肤,自动生成的代码有误 [ 67%]

...的界面,比如我写了A.ui文件,自动生成一个ts类,class A extends ui.AUI,但是这个ui命名空间并不存在,如果我手动改成extends Laya.View(.ui文件里用的View标签),那么我如何让这个类去使用这个.ui文件呢?就像eui里指定skin一样。 2018-0...

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

109. 下拉选项框组件 · LayaAir3.0文档 · LAYABOX [ 66%]

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

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

110. 已经在vs上引用相关的类,编译后bundle.js却没有相关的代码 [ 66%]

...然后在其他类里面继承。并导包。export default class xxxx extends SDispatcher{},在vs里面没有发现报错。进行指令编译后,运行bundle.js。却提示Uncaught ReferenceError: SDispatcher is not defined. 我也尝试过 去掉 default ,都一样 2020-08-17 添加评...

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