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

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

191. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 59%]

...ideoElement.setAttribute('preload', 'preload'); videoElement.setAttribute('width', '100%'); videoElement.setAttribute('height', '100%'); // videoElement.playbackRate = 2;//加速播放 // 设置画布上的对齐参照物 reference = new Sprite(); this.addChild(reference); reference.pos(0, 0); refer...

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

192. sound manager在MOUSE_OVER事件中无法播放 [ 59%]

...GL时自动切换至Canvas             Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);              Laya.stage.alignV = Stage.ALIGN_MIDDLE;             Laya.stage.alignH = Stage.ALIGN_CENTER;              Laya.stage.scaleMode = "...

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

193. 技术文档svg不可以使用 [ 59%]

...data = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +'<foreignObject width="100%" height="100%">' +'<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' +'<em>I</em> like ' +'<span style="color:white; text-...

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

194. AS引用AS项目打包出来的JS不能用 [ 59%]

...个<div id="layaContainer"><canvas id="layaCanvas" height="1242" width="2208" style="position: absolute; left: 0px; top: 0px; background: rgb(35, 38, 40); transform-origin: 0px 0px 0px; transform: matrix(0.333333, 0, 0, 0.333333, 0, 0);"></canvas><div style="position: absolute; ...

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

195. 陀螺仪与加速计 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void...

来源: Laya3.0_文档 发布时间: 20251010

196. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 59%]

...info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private  onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): vo...

来源: Laya2.0_文档 发布时间: 20210715

197. Laya List给子元素添加事件后,滚动事件被劫持了 [ 59%]

...t.itemRender = StoreItem;   storeTxList.name = 'storeTxList'; storeTxList.width = 610; storeTxList.pos(0, 0); storeTxList.repeatX = repeatX; storeTxList.repeatY = repeatY; //y轴个数 // 使用但隐藏滚动条 storeTxList.vScrollBarSkin = "store/c.png"; let scrollBar = storeTxList.getChildByName...

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

198. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 59%]

...(_colorTex); _colorSpr.cacheAs = "bitmap"; _colorSpr.pos((1024 - _colorTex.width) >> 1, (768 - _colorTex.height) >> 1); _colorSpr.size(_colorTex.width, _colorTex.height); Laya.stage.addChild(_colorSpr); _initPixelCount = getPixel(_colorTex); addEvent(); } private function addEvent():void...

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

199. laya.resource.NativeContext_API3.0 [ 59%]

...(x: number, y: number, radius: number, fillColor: any, lineColor: any, lineWidth: number, vid: number): void Defined in laya/resource/NativeContext.ts:442 Parameters x: number y: number radius: number fillColor: any lineColor: any lineWidth: number vid: number Returns void _drawLine _drawLine(x: num...

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

200. laya2.3图集含空白裁切后,锚点旋转bug,demo重现 [ 59%]

...反而是对的,这按理是bug吧         // sp3.pos(Laya.stage.width/2,0);         Laya.stage.addChild(sp3);         Laya.timer.frameLoop(2,null,function()             {                 sp3.rotation = sp3.rotation+10;             } ...

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