大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0244 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) trace('海拔:' + info.altitude + 'm' + (info.altitudeAccuracy != null ? (',...
来源: Laya_社区 发布时间: 20180402
...性能统计信息 Stat.show(); } /** * 初始化场景 */ private init():void { //创建背景 this.spBg = Sprite.fromImage(this.PathBg); Laya.stage.addChild(this.spBg); //创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(this.PathFly); this.aniFly.play(); this.aniFly.pos(250, 100);...
来源: Laya_示例 发布时间: 20260303
...ic class Mouse { public function Mouse() { } public static function hide():void { } public static function show():void { } } } cuixueying • 2017-03-17 19:46 有没有例子,上传一个,我们看下!
来源: Laya_社区 发布时间: 20170317
...r.changeHandler = new Handler(this, this.onChange); } public changeValue():void{ console.log("change"); if (this.loadingBar.value >= 1){ this.loadingBar.value = 0; } this.loadingBar.value += 0.05; } o...
来源: Laya_社区 发布时间: 20180524
...; Laya.stage.bgColor = "#232628"; this.createMap(); } private createMap(): void { this.tiledMap = new TiledMap(); this.tiledMap.createMap("../../res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } } new laya.TiledMap_AnimationTile();pack...
来源: Laya_示例 发布时间: 20260303
...se Methods Static bindCG bindCG(shaderObj: IShaderObjStructor, cgmap: {}): void Defined in laya/d3/loaders/ShaderParser.ts:97 Parameters shaderObj: IShaderObjStructor cgmap: {} [key: string]: string Returns void Static compileToTree compileToTree(sliceFlag: string[], data: string, sliceIndex: number...
来源: Laya3.0_api 发布时间: 20231115
... Vector3(0, 0, 0), new Vector3(0, 0, 0)); public _start(state:RenderState):void { super._start(state); this._phasorSpriter3D = new PhasorSpriter3D(); this._camera = this._owner.getChildByName("Camera") as Camera; } public _postRenderUpdate(state:RenderState):void { super._update(state); this._point....
来源: Laya_社区 发布时间: 20180201
... 类里的init()方法 (第94行), public static function init():void { __JS__("try{Storage.items=window.localStorage;Storage.setItem('laya', '1');Storage.removeItem('laya');Storage.support = true;} catch(e){}if(!Storage.support)console.log('LocalStorage is not supprot or browser is privat...
来源: Laya_社区 发布时间: 20180703
...aMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh:Laya.Mesh):void { ........ //上面省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mes...
来源: Laya2.0_文档 发布时间: 20210715
...er.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒出现下张图片 Laya.timer.loop(50,this,onLoop); } private function onLoop():void { //更改texture的纹理,逐一显示不同的image chageTexture(); //...
来源: Laya_社区 发布时间: 20161107