大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0099 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...这么写吗?字符串我无法输出,不知道是不是load写错了 function initJson() { var fileURL="json/ENDLESS_TABLE.json"; var strJson=Laya.loader.load(fileURL,Handler.create(this,readJsonFinish),null,Loader.JSON); function readJsonFinish() { console.log(strJson); var contact =...
来源: Laya_社区 发布时间: 20151110
...续通过注册时传入的字体名称“layabox”使用关联字体。 function registerFont() { var assetFontData = conch.readFileFromAsset('font/layabox.ttf', 'raw'); if (assetFontData) { if (conch.registerFont("layabox", assetFontData)) { log('字体注册成功'); } else { log('字体注册...
来源: Laya3.0_文档 发布时间: 20260128
...时候回调的时候面板中保存数据的数组变为undifine public function update():void { Utils.removeAll(panelHeroInfo); var heros:Array = GameMain.mainModel.heros.Heros; //获取 MainModel里的武将信息 var leng:int = heros.length; var item:HeroResolveItem; var heroInfo:SHeroInfo; for ...
来源: Laya_社区 发布时间: 20170321
Sprite graphics的显示比例问题 function createCharacter(skin) { var character = new Laya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(...
来源: Laya_社区 发布时间: 20170828
...维码真机调试也是如此。 TypeError: this.cxt.fillText is not a function this.cxt.fillText(text, this.cav.width / 2, this.cav.height); ^^ TypeError: this.cxt.fillT...
来源: Laya_社区 发布时间: 20200409
...取器 * @param {头像Url} headUrl * @param {显示头像Img} showImg */ function getWXHead(headUrl, showImg){ if(headCache[headUrl] != undefined){ showImg.skin = (headCache[headUrl]); }else{ // 创建请求 let httpRequest = new Laya.HttpRequest(); httpRequest.once(Laya.Event.COMPLETE, this, (data...
来源: Laya_社区 发布时间: 20190430
...xture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //平面添加物...
来源: Laya2.0_文档 发布时间: 20210715
...); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //平面添加物理碰...
来源: Laya2.0_文档 发布时间: 20210714
...oPage2(): void { my.redirectTo({ url: "/subpackage1/page2/index", success: function () { console.log("success") }, fail: function (err) { console.log("2222", err) } }) } ``` 注意:在加载资源的时候,分包文件夹名称前也需要加“ / ” #### 2.2 资源分包 资源分包适合页...
来源: Laya2.0_文档 发布时间: 20210715
...过方法: TextTexture.as 替换这两个函数 public function discard():void { Laya.stage.setGlobalRepaint(); this.destroy(); } public static function getTextTexture(w:int, h:i...
来源: Laya_社区 发布时间: 20190515