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

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

231. laya.ui.WXOpenDataViewer_API3.0 [ 56%]

...ents customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX ...

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

232. list里面可以加入多个view吗? [ 56%]

...{ private var list:List; public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); li...

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

233. 微信小游戏加载资源问题 [ 55%]

...r ts = Laya.Laya.stage._canvasTransform.identity(); ts.scale((Laya.Browser.width / Laya.Render.canvas.width / Laya.Browser.pixelRatio), Laya.Browser.height / Laya.Render.canvas.height / Laya.Browser.pixelRatio); } static wxinputFocus(e) { var _inputTarget = Laya.Input['inputElement'].target; if (_in...

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

234. 如何实现3d遮罩效果? [ 55%]

...30); btn.scale(Browser.pixelRatio, Browser.pixelRatio); btn.pos(Laya.stage.width / 2 - btn.width * Browser.pixelRatio / 2, Laya.stage.height - 50 * Browser.pixelRatio); btn.on(Event.CLICK, _this, onclick); Laya.stage.addChild(btn); Laya.stage.on(Event.RESIZE, null, function():void { btn.pos(Laya.sta...

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

235. laya.display.Sprite [ 55%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite  mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite  mou...

来源: laya_api 发布时间: 20170929

236. laya中js 如何实现Sprite类继承 [ 55%]

...new Role(); this.RoleMap = new Laya.Sprite(); this.RoleMap.size(Laya.stage.width, Laya.stage.height/2); Laya.stage.addChild(this.RoleMap); this.RoleMap.addChild(this.Role); this.Role.pivot(16,24);// 图片32x48 this.Role.pos(100, 200);   Role.js基础代码: var Role = ( function ( _super ) { fun...

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

237. 在画布上播放video问题的思路 [ 55%]

...anvas:HTMLCanvas = HTMLCanvas.create(HTMLCanvas.TYPE2D); htmlCanvas.source.width = 100; htmlCanvas.source.height = 100; htmlCanvas.size(100, 100); // 在单独的画布上绘制矩形。 htmlCanvas.getContext("2d").fillStyle = "#FFFF00"; htmlCanvas.getContext("2d").fillRect(20, 20, 60, 60); // 把...

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

238. laya.html.dom.HTMLIframeElement_API3.0 [ 55%]

... activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea href innerHTML is3D mask mouseEnabled mouseX m...

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

239. 引擎 TiledMap 居然不支持图块翻转 [ 55%]

...                if (this.x < 0 || this.x > this._map.viewPortWidth || this.y < 0 || this.y > this._map.viewPortHeight) {                     this.hide();                 }                 else {                     this.show();           ...

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

240. 电脑的谷歌浏览器移动端HTMLDivElement图文混排会报错 [ 55%]

...m.HTMLDivElement"<span><img src= "GameMain/C10001.png" border="0" width="47" height="20" /></span> <span style='color:#dbd4bb;font-size:undefined'><font color='#e9a118'>简单雅洁:</font><font>***</font></span>" 电脑的谷歌浏览器移...

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