大约有 1,617 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
Laya_社区(1208) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya3.0_文档(43) Laya2.0_示例(43) Laya2.0_api(13) laya_api(12)
...ntext': parameter 1 is not of type 'WebGLShader'. at ShaderInstance._createShader (laya.d3.js:1) at ShaderInstance._create (laya.d3.js:1) at new ShaderInstance (laya.d3.js:1) at ShaderPass.withCompile (laya.d3.js:1) at SubMeshRenderElement._render (laya.d3.js:1) ...
来源: Laya_社区 发布时间: 20191024
...le_T1 ) 主要就是: Laya.loader.load("SnowParticle.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); public function onAssetsLoaded(settings:ParticleSetting):void { sp = new Particle2D(settings); sp.emit...
来源: Laya_社区 发布时间: 20170522
... function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var BackGround = (function() { __extends(Class, Laya.Sprite); function Class() { Laya.Sprite.call(this); this.img = []; this.init(); } Class.prototype.init = function() {...
来源: Laya_社区 发布时间: 20170619
...Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){//加载完成//使用接口将图集透传到子域Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域Laya.MiniAdpter.sendJsonDataToDataContext("j...
来源: Laya_社区 发布时间: 20190419
...Ani.loadAtlas("http://10.10.20.58/chicken/res ... ot%3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya.stage.addChild(roleAni); roleAni.play(); })); 代码就这几行.... 2018-03-22 0 0 分享 微博 QZONE 微信 wdmingzi2 赞同来自: 只是单纯的调用加载接口 ...
来源: Laya_社区 发布时间: 20180322
...时进行完成事件监听。在这个demo中事先使用了 `Laya.loader.create`来预加载资源。 在游戏中,我们经常打造角色换装系统,有时是换模型,有时是换贴图,有时候两者都换。因为材质贴图部分在后续章节中才讲解,因此本章节中我...
来源: Laya2.0_文档 发布时间: 20210714
...时进行完成事件监听。在这个demo中事先使用了 `Laya.loader.create` 来预加载资源。 在游戏中,我们经常打造角色换装系统,有时是换模型,有时是换贴图,有时候两者都换。因为材质贴图部分在后续章节中才讲解,因此本章节中我...
来源: Laya2.0_文档 发布时间: 20210715
...der.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image = new Laya.Image(); imgMask.skin = img.skin; imgM...
来源: Laya_社区 发布时间: 20170327
...博 QZONE 微信 kylin 赞同来自: 第813行 Config.FunRestart=Handler.create(this,this.on重启); 定义的变量、函数名等,不要出现中文等非ASCII字符,变量的命名最好要符合规范。 LayaAirIDE里的压缩工具会分析代码,类似的中文命名的变量,通不...
来源: Laya_社区 发布时间: 20180806
...克隆。 Quaternion cloneTo(destObject:*):void 克隆。 Quaternion createFromAxisAngle(axis:Vector3, rad:Number, out:Quaternion):void[static] 从指定的轴和角度计算四元数 Quaternion createFromMatrix3x3(sou:Matrix3x3, out:Quaternion):void[static] 根据3x3矩阵计算四元数 Q...
来源: laya_api 发布时间: 20170929