大约有 290 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0039 秒)
... Arial"; Laya.loader.load("data/Questv1_Regular.ttf", Handler.create(this,onLoaded), null, Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf"); if(arr && Browser.window.conch) { Browser.window.conch.setFontFaceFr...
来源: Laya_社区 发布时间: 20180705
... 代码如下 var Tww = laya.utils.Tween; to0(); function to0() { Tww.to(this.lis, { alpha: 0.5 }, 500, null, Handler.create(this, to1)); } function to1() { Tww.to(this.lis, { alpha: 1 }, 500, null, Handler.create(this, to0)); } 在AS中是没有问题的。 2018-05-24 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20180524
...le(): void { Laya.Physics.I.allowSleeping = false; this.strWorldRoot= this.owner.scene.strWorldRoot; Laya.Physics.I.worldRoot = this.strWorldRoot; } onUpdate(): void { var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayer...
来源: Laya_社区 发布时间: 20231123
...请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = (this.scene.addChild(new Laya.Camera(0, 1, 1000))) as Laya.BaseCamera; this.camera.transform.translate(new Vector3(0, 0, 500)); 这样用即可...
来源: Laya_社区 发布时间: 20161017
...大小不生效 ViewActivityLimitedTask.prototype.initComp = function() { this.list_view.vScrollBarSkin = ""; this.list_view.scrollBar.elasticBackTime = ListConst.elasticBackTime; this.list_view.scrollBar.elasticDistance = ListConst.elasticDistance; this.list_view.renderHandler = new Laya.Handler(th...
来源: Laya_社区 发布时间: 20191111
...iniSound类中,增加函数 __proto.resetPlay=function(){ this._sound.stop(); this._sound.volume = 1; this._sound.offPlay(); } 2 在MiniSound类的onDownLoadCallBack函数中,this._sound.onError(MiniSound.bindToThis(this.onError,this)); 这一句的后...
来源: Laya_社区 发布时间: 20181026
... */ __proto.destroyTexture=function(){ if(this._mainTexture!=null){ this._mainTexture.disposeBitmap(); } this._needRecoverTexture = true; } /** * 恢复纹理 */ __proto....
来源: Laya_社区 发布时间: 20201128
...戏怎么加载本地配置文件?在laya是可以 public initConfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; ...
来源: Laya_社区 发布时间: 20180117
...动加上文件夹名? view.wx.getSystemInfoSync() 怎么解决自动加"this. " 或者有时自动加上各种文件夹名? 导出微信小游戏 微信的api前面会自动加上文件夹名? view.wx.getSystemInfoSync() 怎么解决自动加"this. " 或者有时自动加上各种文件夹名?this....
来源: Laya_社区 发布时间: 20180605
...sicsSimulation这个类,但下面这么用一直没有东西,求指点 this.mousePos=new Vector2(MouseManager.instance.mouseX, MouseManager.instance.mouseY); camera.viewportPointToRay(this.mousePos,ray); this.ps.rayCast(ray,this.rayCastHit,500, 0); 2018-12-20 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20181220