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

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

641. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 54%]

...r login = (function(_super){ function login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo",s...

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

642. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 54%]

...         partIns.play();          partIns.x = Laya.stage.width / 2;          partIns.y = Laya.stage.height / 2;     }        报错如下: ReferenceError: Loader is not defined preload.js:55     at LoveView.onEnable (file:///D:/laya/myLaya/myZootopia/bin/js/bund...

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

643. laya.resource.Texture2D_API3.0 [ 54%]

...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getPixels gpuCompressFormat hasListener isCreateFromURL of...

来源: Laya3.0_api 发布时间: 20231115

644. 示例 骨骼动画换装 加不上点击事件 [ 54%]

...var mSkinList = ["goblin", "goblingirl"]; (function () { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory....

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

645. 微信小游戏截图 [ 54%]

...ring;// = canvas.toTempFilePathSync(); canvas.toTempFilePath({ x: 0, y: 0, width: 1280, height: 720, destWidth: 1280, destHeight: 720, success:function(res:Object):void{ imagePath = res.tempFilePath;//这个就是截屏的图片地址,可以将图片生成到相册,也可以使用这个地址用...

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

646. html固定宽高,设置垂直居中没有效果。只有水平居中才生效。看了下源码,感觉在updatePos函数里的算法不对 [ 54%]

...this),跳进去 在Layout._multiLineLayout(element)里面的updatePos(0,tWidth,i,tY,align,valign,lineHeight)函数里对元素根据对齐方式重新设置坐标。这里面感觉对垂直居中的y坐标的计算方式不对。根据的是行高来计算,而不是我给组件设置的高 Lay...

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

647. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 54%]

... Laya.WebGL; var mFactory; var mArmature; (function () { Laya.init(Browser.width, Browser.height, WebGL); startFun(); })(); function startFun() { mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.loadAni("res/spine/spineRes2/goblins.sk"); } function parseComplete()...

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

648. native下旋转tween卡顿 [ 54%]

...pe.loadImage("res/star.png"); Laya.stage.addChild(ape); ape.x = Laya.stage.width / 2; ape.y = Laya.stage.height / 2; ape.scale(0.3,0.3); ape.pivot(628,613); Laya.Tween.to(ape,{rotation:360},60000); 其中转一圈的时间设置为60s或者更长,native下卡顿是非常明显的,但在web下非常...

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

649. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 53%]

...  spe.x = 100;             spe.y = 100;             spe.width = 512;             spe.height = 512;             spe.size(512, 512);             Laya.stage.addChild(spe);             spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333");  ...

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

650. 升级到1.78beta版后,包编译错误 [ 53%]

...number,...' is not assignable to type '(source: any, x: number, y: number, width: number, height: num ber, offsetX?: number, offsetY?: nu...'.       Types of parameters 'mipMap' and 'offsetX' are incompatible.         Type 'number' is not assignable to type 'boolean'.   2017-07-21 添加评...

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