大约有 6,677 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0136 秒)
Laya_社区(6030) Laya2.0_文档(147) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya2.0_示例(57) Laya3.0_文档(47)
...Children?: boolean): List Inherited from UIComponent.constructor Overrides Sprite.constructor Defined in laya/ui/UIComponent.ts:24 创建一个新的 Component 实例。 Parameters Default value createChildren: boolean = true Returns List Properties Optional _extra _extra: INodeExtra Inherited from ...
来源: Laya3.0_api 发布时间: 20231115
...Color = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rec...
来源: Laya2.0_示例 发布时间: 20241001
...Color = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rec...
来源: Laya2.0_示例 发布时间: 20241001
...; } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y ...
来源: Laya2.0_示例 发布时间: 20241001
LayaAir引擎 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted)); public loadCompleted(sp:Laya.Sprite3D):void { this._loaded = true; ...
来源: Laya_社区 发布时间: 20200609
...spotLight.range = 6.0; spotLight.spot = 32; var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, th...
来源: Laya_示例 发布时间: 20241001
...后的函数。 Utils fitDOMElementInArea(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils getGID():int[static] 获取一个全局唯一ID。Utils getGlobalPosAndScale(sprite:Sprite):Rect...
来源: Laya2.0_api 发布时间: 20190513
碰撞检测 和 sprite问题【js】 看文档没找到怎么编辑模式使用碰撞检测功能 是只能使用代码写碰撞检测范围吗 。 sprite 2d 的 在编辑模式下不能贴图片素材吗 只能代码赋予吗 那做2d游戏 使用image 做主角 要比 sprite方便的多啊 新...
来源: Laya_社区 发布时间: 20180503
sprite不能设置点击区域 var sp = new Laya.Sprite(); sp.graphics.drawPie(0, 0, 300, 0, 90, "#00ffff"); sp.on(Laya.Event.CLICK, this, this.aa) sp.mouseEnabled = true; // 设置点击区域没有作用 var hitArea = new Laya.HitArea(); hitArea.unhit.drawPie(0, 0, 150, 0, 90, "#00ffff"); sp.hitA...
来源: Laya_社区 发布时间: 20180119
关于unity导出sprite3D的问题 这应该是一个bug 导出时选择sprite3D 结果导出后还是包含了camera和光照。这样的话选sprite3D和选scene还有什么区别? 2018-02-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20180228