• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,033 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0071 秒)

631. 微信小游戏IDE加载位图字体,提示错误 [ 81%]

...onLoaded=function(data){  在 var bFont=new BitmapFont(); bFont.parseFont(this._data,data);之前加入 this._data = Utils.parseXMLFromString(this._data);就ok了 2018-05-22 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zh920627 相关...

来源: Laya_社区 发布时间: 20180306

632. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 81%]

...Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前,一定要记得初始化自己的Shader。LayaAir中自带的材质会随着`Laya3D.init`初始化。这里我们...

来源: Laya2.0_文档 发布时间: 20210715

633. 在加载swf动画之后在封装的里面报错了 , 用的官网的例子 [ 81%]

...值。     */     __proto.getInt16=function(){         if (this._pos_+2 > this._length)throw "getInt16 error - Out of bounds";         var us=this._d_.getInt16(this._pos_,this._xd_);         this._pos_+=2;         return us;     } 只在那个 If  那...

来源: Laya_社区 发布时间: 20181025

634. JS中List容器里renderHandler和itemHandler渲染器如何使用 [ 81%]

...请: 与内容相关的链接 提交 1 个回复 cry_11858 赞同来自:  this.list_xxx.renderHandler = this.list_bag.renderHandler || new Laya.Handler(this, this.updateList);         ActivityXXXXXUI.prototype.updateList = function(cell, index)     {         var info = cell.dataSource;  ...

来源: Laya_社区 发布时间: 20170808

635. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 81%]

...; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); originalApe.x = (Laya.stage.width - apeT...

来源: Laya2.0_文档 发布时间: 20210714

636. LayaAir开发笔记(1)五十音图连连看 [ 81%]

...true; copyright.pos(20, g_stat_heiht - 35); copyright.on(Laya.Event.CLICK, this, function() { window.location.href = "http://www.coderluan.com"; }); Laya.stage.addChild(copyright); 3.设置积分板和开始菜单 右下弄了个“点击开始游戏”的文本,点击只会游戏开始,这个...

来源: Laya_社区 发布时间: 20160623

637. 如何获得box单独每个面的material [ 81%]

...ConstValue.boxWidth, ConstValue.boxWidth, ConstValue.boxHeight); var box = this.parent.addChild(new Laya.MeshSprite3D(mesh)); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.position = new Laya.Vector3(ConstValue.boxOutScreen,ConstValue.boxHeight/2,0); var material = ne...

来源: Laya_社区 发布时间: 20180113

638. QQ玩一玩 API 中没有 BKLaya.tools.BinaryLoader 的定义 [ 81%]

...tclass.BKWebSocket var BKWebSocket=(function(){ function BKWebSocket(url){ this._socket=null; this.onopen=null; this.onmessage=null; this.onclose=null; this.onerror=null; this._socket=new BK.WebSocket(url); var _self; _self=this; this._socket.onClose=function (ws){ if (_self.onclose !=null){ _self.o...

来源: Laya_社区 发布时间: 20180328

639. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 80%]

...w(); Laya.stage.frameRate = Laya.Stage.FRAME_FAST; //预加载所有资源 this.resource = [ "res/maze/img/demo/toolClock/Conventional/glow.lh", "res/maze/img/demo/Conventional/wang06.lh", "res/maze/img/demo/toolClock/Conventional/puzzleA.lh", "res/maze/img/demo/to...

来源: Laya_社区 发布时间: 20191209

640. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 80%]

...Arr:Array=; proArr.push(pro1,pro2); Laya.loader.load(proArr,Handler.create(this,onProLoaded)); } private function onProLoaded():void { // 将进度条显示到舞台 showProgress(); //开始预加载游戏资源 var ape1:Object={url:"apes/monkey0.png",type:Loader.IMAGE}; var ape2:Object={url:"apes/m...

来源: Laya_社区 发布时间: 20160509