大约有 2,033 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0071 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...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
...Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 在使用自定义材质之前,一定要记得初始化自己的Shader。LayaAir中自带的材质会随着`Laya3D.init`初始化。这里我们...
来源: Laya2.0_文档 发布时间: 20210715
...值。 */ __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
...请: 与内容相关的链接 提交 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
...; 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
...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
...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
...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
...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
...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