大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...。 - 2.为Shader3D添加SubShader ``` addSubShader(subShader: SubShader): void; ``` - 3.通过宏定义遮罩编译shader,建议使用compileShaderByDefineNames。 ```typescript static compileShader(shaderName: string, subShaderIndex: number, passIndex: number, ...defineMask) ``` - 4.注册宏定...
来源: Laya2.0_文档 发布时间: 20210714
...AL; Laya.stage.bgColor = "#232628"; this.showText(); } private showText(): void { var text: Text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> ...
来源: Laya_示例 发布时间: 20260303
...AL; Laya.stage.bgColor = "#232628"; this.showText(); } private showText(): void { var text: Text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1...
来源: Laya_示例 发布时间: 20260303
...随机种子。 Accessors seed get seed(): number set seed(seed: number): void Defined in laya/d3/math/Rand.ts:35 获取随机种子。 Returns number 随机种子。 Defined in laya/d3/math/Rand.ts:43 设置随机种子。 Parameters seed: number 随机种子。 Returns void 随机种子。 Methods...
来源: Laya3.0_api 发布时间: 20231115
...his.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private onError():void { console.log("parse error"); } private parseComplete() : void { let skeleton0 : Laya.Skeleton; skeleton0 = this.m_templet.buildArmature(1); skeleton0.pos(200,700); skeleton0.showSkinByIndex(1); Laya.stage.addChild(skele...
来源: Laya_社区 发布时间: 20180126
...}], Handler.create(this, this.onAssetsLoaded)); } public onAssetsLoaded(): void { var tTexture: Texture = Loader.getRes(this.mTexturePath); var arraybuffer: ArrayBuffer = Loader.getRes(this.mAniPath); this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFa...
来源: Laya2.0_示例 发布时间: 20260303
...ny = new Laya.Browser.window.FileReader(); file.onchange = function(e:any):void { if(file.files.length>0) { if(20*1024<file.files[0].size) { console.log("图片大小不能超过20kb!") }else{ fileReader.readAsDataURL(file.files[0]); //转换图片格式为字符编码 } } }; fileReader.onload...
来源: Laya_社区 发布时间: 20190129
....bgColor = "#232628"; this.createMovieClip(); } private createMovieClip(): void { var mc: MovieClip = new MovieClip(); mc.load(this.SWFPath); mc.x = (Laya.stage.width - this.MCWidth) / 2; mc.y = (Laya.stage.height - this.MCHeight) / 2; Laya.stage.addChild(mc); } } } new laya.Animation_SWF() package ...
来源: Laya_示例 发布时间: 20260303
...,Loader.JSON); private function onParticleLoaded(settings:ParticleSetting):void { settings.minStartSize = 200; settings.minEndSize = 200; settings.maxStartSize = 200; settings.maxEndSize = 200; par = new Particle2D(settings); //par.emitter.start(); par.x = -50; par.y = 1280; par.autoPlay = false; Mo...
来源: Laya_社区 发布时间: 20180409
... Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D节点 this.videoPlane = this.scene.getChildByName("Plane") as Laya.Sprite3D; //使用指定路径的视频文件 this.createVideo("resources/mov_bbb.mp4"); } //创建视频...
来源: Laya3.0_文档 发布时间: 20251010