大约有 390 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0043 秒)
Laya_社区(179) Laya3.0_api(65) Laya2.0_api(59) laya_api(54) Laya2.0_文档(10) Laya3.0_文档(9) Laya2.0_示例(8) Laya_示例(6)
... this.img2 = "../laya/assets/comp/haoyuobang-hui.png"; var img = new Laya.Sprite(); //实例 img.width = 300; //宽高 img.height = 200; switchImg(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var img...
来源: Laya_社区 发布时间: 20180502
...sspublic class FrameAnimationInheritanceFrameAnimation AnimationPlayerBase Sprite Node EventDispatcher ObjectSubclasses EffectAnimation 关键帧动画播放类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值...
来源: laya_api 发布时间: 20170929
...候,把a的纹理取出来重新绘制,但是好像没有效果 var a:Sprite = new Sprite(); var count:int = 0; for(var i:int=0; i<200; i++) { for(var j:int=0; j<100; j++) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture...
来源: Laya_社区 发布时间: 20181113
...加载同一份资源时候,会导致gpu内存不断增加! 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 引擎有没有管理或访问系统剪贴板的方法函数 LayaAir 2D有没有夜晚灯光照明效果实现的内置方法? Anim...
来源: Laya_社区 发布时间: 20180814
...因的吗?~~~~~~~~~~~~~ 拖尾Trail Render的问题 关于遍历产生的sprite的点击事件,急,大神帮看哈 ios14系统下 blendMode='lighter' 图片异常 使用了u3D导出来的粒子,不停的显示移除并销毁其克隆对象,统计面板的显存和内存就会显示成负...
来源: Laya_社区 发布时间: 20200329
...layClasspublic class FrameAnimationInheritanceFrameAnimation AnimationBase Sprite Node EventDispatcher ObjectSubclasses EffectAnimation 节点关键帧动画播放类。解析播放IDE内制作的节点动画。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Pro...
来源: Laya2.0_api 发布时间: 20190513
...按下状态”? Tween如何实现无限循环改变alpha? matter中layasprite怎么改变图片大小? 如何设置Sprite的宽高和点击区域? 请问 《学习开发HTML5游戏《打地鼠》(LayaAir引擎)TS》的视频教程是否有配到代码下载? 打包android版本 点击...
来源: Laya_社区 发布时间: 20170727
...= 0; _proto.onInit = function(){ this.guaSpr.cacheAs = "bitmap"; ape = new Sprite(); this.guaSpr.addChild(ape); ape.loadImage("WBSign/img_guakaituceng.png"); ape.on(Event.MOUSE_MOVE, this, onMouseMove); interactionArea = new Sprite(); interactionArea.blendMode = "destination-out"; ape.addChild(inter...
来源: Laya_社区 发布时间: 20170615
...候,把a的纹理取出来重新绘制,但是好像没有效果 var a:Sprite = new Sprite(); var count:int = 0; for(var i:int=0; i<200; i++) { for(var j:int=0; j<100; j++) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture...
来源: Laya_社区 发布时间: 20181113
... * 绘制开放域数据 * @param {*} layout 用来显示开放域数据的Sprite */ function drawOpenData(layout: Laya.Sprite) { var openDataContext = wx.getOpenDataContext() var sharedCanvas = openDataContext.canvas sharedCanvas.width = layout.width; sharedCanvas.height = layout.height; //先清...
来源: Laya_社区 发布时间: 20180625