大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
...始游戏,通过激活本脚本方式开始游戏*/ startGame(): void { if (!this._started) { this._started = true; this.enabled = true; } var ground=this.owner.getChildByName("ground"); ground.addComponent(Laya.ChainCollider); this._chains=ground.getComponent(Laya.ChainCollider); } 静...
来源: Laya_社区 发布时间: 20181128
...128); console.log("data:" + imageData.data.length); sprite3DMat.diffuseTexture = dataTexture; sprite3D.meshRender.material = sprite3DMat; } //绘制文字到canvas,判断换行位置,和设置canvas高度 public canvasWrapText(options) { var settings = { canvas:null, canvasWidth:512, /...
来源: Laya_社区 发布时间: 20180814
...d Laya3D._onTextureCubeLtcLoaded=function(loader,ltcData){ if (loader._class.destroyed){ loader.endLoad(); }else { var ltcBasePath=URL.getPath(loader.url); var urls=[ ...
来源: Laya_社区 发布时间: 20180508
...d { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf"); if(arr && Browser.window.conch) { Browser.window.conch.setFontFaceFromBuffer("hu",arr); } var text:Text=new Text(); text.font="hu"; text.fontSize=50; text.text="لحسن نهر123"; text.pos(100, 100); text.width = 50...
来源: Laya_社区 发布时间: 20180705
...可 */ onUpdate(): void { // 如果角色可移动 (ismoveing为true时) if (this.ismoveing) { // 调用角色控制器的 move 方法,使角色按照 moveVector 向量移动 this.characterController.move(this.moveVector); } } /** * 停止角色移动 */ public moveStop(): void { // 标记角色...
来源: Laya3.0_文档 发布时间: 20251010
...s:16581) laya.core.js:15946里面的代码是:Texture._create方法中if (bitmap.width && (x+width)> bitmap.width) 里的bitmap为null,往上看可能是source为null 但是仍然无法判断到是我的场景UI的问题还是代码的问题 2020-02-01 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20200201
...834 关注: 2 人 A梁马勇 • 2018-10-10 16:38 加上这句就可以了 if (!sharedCanvas.hasOwnProperty('_addReference')) { sharedCanvas['_addReference'] = () => { } } Laya_Aaron • 2018-10-10 20:43 要做一个判断,他存在再执行,也就是楼上说的。 扬了二正 • 2018-10-1...
来源: Laya_社区 发布时间: 20181001
...邀请: 与内容相关的链接 提交 2 个回复 阿噗 赞同来自: if(Browser.onMiniGame) { WXOpenDataViewer.postMsg({command:"open", curScore:GameModel.getInstance().money, data:{windowWidth:Laya.stage.width, windowHeight:Laya.stage.height}}); } 2018-12-04 0 0 分享 微博 QZONE 微信 谢...
来源: Laya_社区 发布时间: 20181123
...useMove(e:Event){ this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; if(Utils3D.getThis.getDistance(this.pos0,this.pos1)>10){ this.bmp.graphics.drawLine(this.pos0.x,this.pos0.y,this.pos1.x,this.pos1.y,"#ff0000",5); this.pos0.x=this.bmp.mouseX; this.pos0.y=this.bmp.mouseY; } } __mouseUp(e:Ev...
来源: Laya_社区 发布时间: 20170831
...源前加这样一句; var s:Sprite = Loader.getRes("路径"); if (s) { Loader.clearRes("路径"); s.destroy(); } 或者最好用的是再你的资源后加版本管理,版本管理你可以去官网看一下相关的文档。 付俊峰 • 2018-10-15 19:58 你好。我两次...
来源: Laya_社区 发布时间: 20180928