大约有 1,625 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0050 秒)
Laya_社区(663) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya_示例(58) Laya3.0_文档(54) Laya2.0_示例(54)
...r; import WebGL = Laya.WebGL; export class Filters_Glow { private apePath: string = "../../res/apes/monkey2.png"; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.s...
来源: Laya_示例 发布时间: 20241126
...方案 Laya_Aaron • 2018-08-06 16:09 webglcharimage.as 里面 var sFont:String = "normal 100" + nFontSize +"px Arial"; 改为 var sFont:String = "normal 100 " + font; ggg333 • 2018-08-06 16:39 依然会出问题,然而我没办法给你demo,小demo出不来问...
来源: Laya_社区 发布时间: 20180803
...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_示例 发布时间: 20241126
... input.y = i * this.SPACING + this.Y_OFFSET; } } private createInput(skin: string): TextInput { var ti: TextInput = new TextInput(); ti.skin = skin; ti.size(300, 50); ti.sizeGrid = "0,40,0,40"; ti.font = "Arial"; ti.fontSize = 30; ti.bold = true; ti.color = "#606368"; Laya.stage.addChild(ti); return...
来源: Laya_示例 发布时间: 20241126
...L = Laya.WebGL; export class PerformanceTest_Maggots { private texturePath:string = "../../res/tinyMaggot.png"; private padding:number = 100; private maggotAmount:number = 5000; private tick:number = 0; private maggots:Array = []; private wrapBounds:Rectangle; private maggotTexture:any; constructor(...
来源: Laya_示例 发布时间: 20241126
... input.y = i * this.SPACING + this.Y_OFFSET; } } private createInput(skin: string): TextInput { var ti: TextInput = new TextInput(); ti.skin = skin; ti.size(300, 50); ti.sizeGrid = "0,40,0,40"; ti.font = "Arial"; ti.fontSize = 30; ti.bold = true; ti.color = "#606368"; Laya.stage.addChild(ti); return...
来源: Laya2.0_示例 发布时间: 20241126
...r; import WebGL = Laya.WebGL; export class Filters_Glow { private apePath: string = "res/apes/monkey2.png"; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.a...
来源: Laya2.0_示例 发布时间: 20241126
...粘贴即可。 源代码类似如下代码格式://{{ var vertexShader:String = null; var fragmentShader:String = null; /*[IF-FLASH]*/vertexShader=AGAL_ShaderList.shader.QB_NOT_TEX_VS; /*[IF-FLASH]*/fragmentShader = AGAL_ShaderList.shader.QB_NOT_TEX_FS; //[IF-JS]vertexShader=GLSL_ShaderList.shade...
来源: Laya_社区 发布时间: 20151221
...NE 微信 风信子 赞同来自: private createAnimation(images: Array<string>): Laya.Animation { this.animation = new Laya.Animation(); this.ui.addChild(this.animation); this.animation.loadImages(images); this.animation.interval = 70; this.animation.play(0); return this.animation } 我不...
来源: Laya_社区 发布时间: 20190325
... // also filters out NaN, non-number types, including empty strings, but allows bigints const valid = ms > 0 && ms < Infinity if (valid === false) { if (typeof ms !== 'nu...
来源: Laya_社区 发布时间: 20201201