大约有 849 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0103 秒)
Laya_社区(528) Laya3.0_api(65) Laya2.0_api(62) laya_api(57) Laya2.0_示例(44) Laya_示例(41) Laya2.0_文档(30) Laya3.0_文档(22)
....width = 800; panel.y = 30; panel.hScrollBarSkin = null; var sp = new Laya.Sprite(); panel.addChild(sp); sp.x = 0; sp.y = 0; // 用下面这组数据是可显示的 // sp.y = 1; // sp.x = 1; sp.graphics.drawRect(0, 0, 200, 200, "#00FF00"); Laya.stage.addChild(panel); 这个是我的代码,sp是...
来源: Laya_社区 发布时间: 20170217
...fined in laya/display/Node.ts:56 _graphics _graphics: AutoBitmap Overrides Sprite._graphics Defined in laya/ui/Image.ts:98 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/...
来源: Laya3.0_api 发布时间: 20231115
...太太太太好用了!!!! 关于微信小游戏关系链的问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间...
来源: Laya_社区 发布时间: 20190425
...ayer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); this.sprite.pos(p.x, p.y); } mapLoaded() { this.layer = this.tiledMap.getLayerByIndex(0); var radiusX = 32; var radiusY = Math.tan(180 / Math.PI * 30) * radiusX; // 14.37 var color = "#FF7F50"; this.sprite = new Laya.Sprite(); thi...
来源: Laya2.0_示例 发布时间: 20250313
...kagelaya.uiClasspublic class ProgressBarInheritanceProgressBar UIComponent Sprite Node EventDispatcher Object ProgressBar 组件显示内容的加载进度。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否...
来源: Laya2.0_api 发布时间: 20190513
...过unDestroyedScenes属性查看还未被销毁的场景列表 Hierarchy Sprite Scene View Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize hitTestPrior mouseThrough name tag drawtocanvCtx unDestroyedScenes Accessors _isHeig...
来源: Laya3.0_api 发布时间: 20231115
...layaAirIDE2 ,跟着官网敲hello world 例子,为什么不显示? sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 有什么容器能够实现当子元素达到显示上限后自动滚屏,使得新添加的元素始终保持在最底部显示? LayaAirIDE下如...
来源: Laya_社区 发布时间: 20170216
sprite点击事件 位置便宜 var canvas2 = Laya.init(480, 360, WebGL); canvas2.style.top = canvas.style.top; canvas2.style.left = canvas.style.left; 当设置stage的位置的时候,再设置sprite的点击事件,发现位置会偏移,点击促发的位置和stage的位置设置有关系...
来源: Laya_社区 发布时间: 20180205
...) TextInput重写onFocus和onBlur事件监听不到 关于遍历产生的sprite的点击事件,急,大神帮看哈 关于适配采用showAll后留白部分的颜色问题 求指点3d射线碰撞和UI点击穿透的问题 Animation如何加点击事件 救命!canvas定位后 点击区域偏...
来源: Laya_社区 发布时间: 20180724
...is.createLogger(); } createInteractiveTarget() { const Event = Laya.Event, Sprite = Laya.Sprite; let rect = new Sprite(); rect.graphics.drawRect(0, 0, 200, 200, "#D2691E"); rect.size(200, 200); rect.x = (Laya.stage.width - 200) / 2; rect.y = (Laya.stage.height - 200) / 2; Laya.stage.addChild(rect); ...
来源: Laya2.0_示例 发布时间: 20250313