大约有 465 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0040 秒)
...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
...ex | Frames No Frames IBox Packagelaya.uiInterfacepublic interface IBox extends IComponentImplementors Box容器接口,实现了编辑器容器类型。Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By comXml : Object XML 数据。 ICompone...
来源: laya_api 发布时间: 20170929
...lare module laya.editorUI { /** * Graphics解析器 */ class GraphicParser extends laya.display.GraphicAnimation { protected _getTextureByUrl(url: string): string; static parseAnimationData(aniData: any): any; } } 2020-07-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20200707
Sprite鼠标事件不响应 public class LandLayer extends Sprite 给LandLayer 添加了鼠标事件 然而并没有响应…… 看图…… 2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi1...
来源: Laya_社区 发布时间: 20171109
... 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_文档 发布时间: 20251010
...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
...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_示例 发布时间: 20260106
...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
复杂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
...``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