大约有 72 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0046 秒)
Laya_社区(35) Laya2.0_示例(9) Laya_示例(8) Laya3.0_api(7) Laya3.0_文档(6) Laya2.0_文档(3) Laya2.0_api(3) laya_api(1)
... private mDecorate:Decorate;//装饰器 private mHost: string; private mPort: number; private mConnected: boolean; /** 开启*/ public static OPEN: string = "open"; /** 关闭*/ public static CLOSE: string = ...
来源: Laya_社区 发布时间: 20161109
...rt WebGL = Laya.WebGL; export class Skeleton_SpineEvent { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; priv...
来源: Laya_示例 发布时间: 20241118
...rt WebGL = Laya.WebGL; export class Skeleton_SpineEvent { private mAniPath:string; private mStartX:number = 400; 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_示例 发布时间: 20241118
...etX: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<len;++i){ //从"Lay...
来源: Laya3.0_文档 发布时间: 20241014
...= parseInt(durationInput.text); }); } private createInputWidthLabel(label: string, prompt: string, x: number, y: number): Input { var text: Text = new Text(); text.text = label; text.color = "white"; Laya.stage.addChild(text); text.pos(x, y); var input: Input = new Input(); input.size(50, 20); input...
来源: Laya2.0_示例 发布时间: 20241118
...= parseInt(durationInput.text); }); } private createInputWidthLabel(label: string, prompt: string, x: number, y: number): Input { var text: Text = new Text(); text.text = label; text.color = "white"; Laya.stage.addChild(text); text.pos(x, y); var input: Input = new Input(); input.size(50, 20); input...
来源: Laya_示例 发布时间: 20241118
...= 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...
来源: Laya_示例 发布时间: 20241118
...= 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_示例 发布时间: 20241118
...X; Tween.from(characterB, { x: 0 }, 1000); } private createCharacter(skin: string): Sprite { var character: Sprite = new Sprite(); character.loadImage(skin); Laya.stage.addChild(character); return character; } } } new laya.Tween_SimpleSample();package { import laya.display.Sprite; import laya.displa...
来源: Laya_示例 发布时间: 20241118
...rawLine(fromX: number, fromY: number, toX: number, toY: number, lineColor: string, lineWidth: number = 1): DrawLineCmd { return this.addCmd(DrawLineCmd.create(fromX, fromY, toX, toY, lineColor, lineWidth)); } 代码示例: let sp = new Laya.Sprite(); //画直线 sp.graphics.drawLine(10, 58, 146, 5...
来源: Laya3.0_文档 发布时间: 20241014