大约有 1,723 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1004) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(49)
...module 'tslib' cannot be found 定位到代码中是: let { width, height } = Laya.stage; mac上却没有问题,win10上却出问题了,求解?难道只支持ts2.x?不支持解析赋值语法? 附件 : --> 2020-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20200409
...至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgCo...
来源: Laya_社区 发布时间: 20161128
...置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="LoginScene.scene"; static sceneRoot:string=""; static de...
来源: Laya_社区 发布时间: 20190402
...帧时其使用的graphics值与倒数第二帧graphics使用的x/y/width/height一致,故猜测最后一帧使用了和倒数第二帧一样的外观导致动画停止后外观看起来还是倒数第二帧的外观。 对于Spine动画播放的源码我没有全部看一遍故不能找到故...
来源: Laya_社区 发布时间: 20200109
...geTexture(0); console.log(`大纹理尺寸: ${largeTex.width} x ${largeTex.height}`); 获取所有大纹理对象 //接口 getAllLargeTextures(): LargeTexBase[] 获取所有底层大纹理对象的数组,用于调试或高级操作。 返回值:LargeTexBase 对象数组。 //使用示例 const a...
来源: Laya3.0_文档 发布时间: 20260131
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; showApe(); })(); function distort (imageData) { console.log(imageData)...
来源: Laya_社区 发布时间: 20171130
...png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { ...
来源: Laya3.0_文档 发布时间: 20251010
...同皮肤 public function LayaAirDemo() { Laya.init(Browser.width,Browser.height,WebGL);//初始化LayaAir引擎 Stat.show();//舞台左上角显示帧频信息 Laya.stage.bgColor='#EEFFCC';//设置舞台背景色 Laya.stage.alignH='center';//水平居中对齐 Laya.stage.alignV='middle';//垂直居...
来源: Laya_社区 发布时间: 20170324
...= new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.width = videoTexture.video.videoWidth; image.height = videoTexture.video.videoHeight; im...
来源: Laya_社区 发布时间: 20240305
...eateElement('div')"); __JS__("div.style.width='400px'"); __JS__("div.style.height='400px'"); // 相对父级定位,并在最上方显示 __JS__("div.style.position='absolute'"); __JS__("div.style.zIndex=100"); // 获取laya的div,让饼图的div位于laya的上放 __JS__('var divLaya=document.ge...
来源: Laya_社区 发布时间: 20170109