大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0128 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...urves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 如何获取Sprite上用graphics.drawTexture绘制的texture? 微信小游戏在开放数据域绘制排行榜无法显示图...
来源: Laya_社区 发布时间: 20190730
...iscreteDynamicsWorld::~btDiscreteDynamicsWorld() + 20 laya::JSCFunction<void (*)(long)>::call(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, u... + 40 附件 : --> crash.zip 2019-09-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20190919
...e.create(url, {onload: onload, onerror: onerror, onCreate: function(img:*):void { image = img; //增加引用,防止垃圾回收 imgCache[url] = img; }}); 这里的调用create本身就是返回一个对象了,为什么这里还能在new那个对象呢,而且如果用一个t去接create再new...
来源: Laya_社区 发布时间: 20180702
... */ __proto.destroy=function(force){ (force===void 0)&& (force=false); if (!this._destroyed){ this._destroyed=true; var bit=this._bitmap; if (bit){ ...
来源: Laya_社区 发布时间: 20190704
...eturn super.visible; } override public function set visible(value:Boolean):void { super.visible = value; if (value) _mcAni.removeFromParent(); } 1.7之后的转换 __getset(0,__proto,'visible',function(){ return Laya.superGet(SwatAniUI,this,'visible'); },function(value){ Laya.superSet(SwatAniUI...
来源: Laya_社区 发布时间: 20180227
...iform mat4 mmat; varying vec2 v_texcoord;varying vec4 v_color; void main(){ vec4 pos =mmat*vec4(position.x,position.y,0,1); gl_Position = vec4((pos.x/size.x-0.5)*2.0, (0.5-pos.y/size.y)*2.0, pos.z, 1.0); v_color = color;v_texcoord = texcoord;}`class ShaderValue...
来源: Laya_社区 发布时间: 20180313
...er.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //获取图集下的单张小图 var texture:Texture=Laya.loader.getRes("atlas_res/01.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture,200,100); Laya.stage.addChild(sp); } } } 小图路径请参考.js...
来源: Laya_社区 发布时间: 20160707
... button.onTap(function(res):void { if(res.errMsg=="getUserInfo:ok") { UserManager.userInfo = res.userInfo; ...
来源: Laya_社区 发布时间: 20190109
...a.Handler.create(this, this.updateMsk, null, false); } private updateMsk():void { this.img.mask.graphics.clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffffff"); } 附件 : --> LayaTest.rar 2019-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20190722
...",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); onEffectOK() : void{ this._createSprite3D -= 1; if(this._createSprite3D <= 0){ // var loginPanel:LoginPanel = new LoginPanel(); // loginPanel.init(); var s = new Laya.Scene(); Laya.stage.addChild(s); s.addChild(Laya.Sprite3D.load("res/h5...
来源: Laya_社区 发布时间: 20180403