大约有 1,625 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0047 秒)
Laya_社区(663) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya_示例(58) Laya3.0_文档(54) Laya2.0_示例(54)
...= Laya.WebGL; export class Interaction_CustomEvent { public static ROTATE: string = "rotate"; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.A...
来源: Laya2.0_示例 发布时间: 20241126
...os(50, 210); input.restrict = "\u4e00-\u9fa5"; } private createLabel(text: string): Text { var label: Text = new Text(); label.text = text; label.color = "white"; label.fontSize = 20; Laya.stage.addChild(label); return label; } private createInput(): Input { var input: Input = new Input(); input.siz...
来源: Laya2.0_示例 发布时间: 20241126
... private var m_mapLayer:Sprite; private var m_MapImgUrl:String; private var m_Role:Animation; private var m_RolePosition:Point = new Point(1200,1000); private var m_MovStartPos:Point = new Point(); private var m_MovDistanceX:i...
来源: Laya_社区 发布时间: 20170921
...id 立即提前执行定时器,执行之后从队列中删除 Timer toString():String 返回统计信息。TimerProperty DetailcurrFramepropertypublic var currFrame:int = 0 当前的帧数。currTimerproperty public var currTimer:Number 当前帧开始的时间。deltaproperty delta:int [r...
来源: laya_api 发布时间: 20170929
...r offsetX:number = Laya.stage.width - w >> 1; //显示的字符串 var demoString:string = "LayaBox"; var letterText:Laya.Text; //根据"LayaBox"字符串长度创建单个字符,并对每个单独字符使用缓动动画 for(var i:number = 0,len:number = demoString.length;i(动图2) 结合实...
来源: Laya2.0_文档 发布时间: 20210715
...EI); this.img = new Image(); this.addChild(this.img); } public setImg(src: string): void { this.img.skin = src; } } } new laya.UI_List();package { import laya.display.Stage; import laya.ui.List; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_List { public function UI_List() { //...
来源: Laya2.0_示例 发布时间: 20241126
...EI); this.img = new Image(); this.addChild(this.img); } public setImg(src: string): void { this.img.skin = src; } } } new laya.UI_List();package { import laya.display.Stage; import laya.ui.List; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_List { public function UI_List() { //...
来源: Laya_示例 发布时间: 20241126
...r(): void { var numKeyDown: number = this.keyDownList.length; var newText: string = '[ '; for (var i: number = 0; i < numKeyDown; i++) { if (this.keyDownList[i]) { newText += i + " "; } } newText += ']'; this.logger.changeText(newText); } /**添加提示文本*/ private createLogger(): void { this.l...
来源: Laya_示例 发布时间: 20241126
...ort WebGL = Laya.WebGL; export class Skeleton_SpineVine { private mAniPath:string; private mStartX:number = 200; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; priv...
来源: Laya2.0_示例 发布时间: 20241126
...------------------------ module AM{ export class AC { public static myname:string = "I'm AC!"; } } export default AM; b.ts ---------------------------- module AM{ export class BC { public static myname:string = "I'm BC!"; } } export default AM; c.ts -------------------------- import AM from './a'; /...
来源: Laya_社区 发布时间: 20181026