大约有 6,677 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0130 秒)
Laya_社区(6030) Laya2.0_文档(147) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya2.0_示例(57) Laya3.0_文档(47)
有关Sprite3D使用lh资源文件的问题 var plane = this.scene.addChild(Laya.loader.getRes("res/LayaScene_plane/plane.lh")) as Laya.Sprite3D; 这样可以根据一个lh文件 来创建一个Sprite3D类型的对象。 那么请问,如果我写了一个类A,并继承与Laya.Sprite3D 我要怎...
来源: Laya_社区 发布时间: 20180227
hitArea怎么用 var container = new Sprite(); container.graphics.drawRect(0,0,640,1136,'#ff0000'); container.size(640,1136) Laya.stage.addChild(container); var bg2Sprite = new Sprite(); bg2Sprite.graphics.drawRect(...
来源: Laya_社区 发布时间: 20170223
...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...
来源: Laya3.0_api 发布时间: 20231115
...后的函数。 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...
来源: laya_api 发布时间: 20170929
请教下 Sprite 怎么渲染成纹理? 2017-02-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: sprite是显示到舞台上的对象,文理是图片材质。不明白你的描述。你...
来源: Laya_社区 发布时间: 20170219
...s Packagelaya.d3.coreClasspublic class CameraInheritanceCamera BaseCamera Sprite3D ComponentNode Node EventDispatcher Object Camera 类用于创建摄像机。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是...
来源: laya_api 发布时间: 20170929
Laya.Sprite loadImage 参数问题 第一天学习laya,遇见个问题。api上对loadimage的描述是: loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null) 官方文档也是这么用的:http://ldc.layabox.com/doc/?nav=zh-ts-1-3-...
来源: Laya_社区 发布时间: 20200522
原生js传图片給laya的sprite,怎么设置其等比缩小? _pic是原生js的图片url,$pic是sprite,然而以下写$pic.height = 246;无效,加载后的图片还是100%显示,$pic.loadImage(_pic, 14, 192, 0, 0, Handler.create(this, function(){ $pic.height = 246; $pic.sc...
来源: Laya_社区 发布时间: 20170503
...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