大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0149 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
sprite怎么移除通过loadimage方法显示的图片? var mask = new Laya.Sprite(); mask.loadImage('img/warn_mine.png'); this.addChild(mask); 怎么从mask中去掉warn_mine这个图片 2018-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20180119
...ar yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640; img.y = 320; iconSpr = new Sprite(); iconSpr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNu...
来源: Laya_社区 发布时间: 20180113
...ntact: any) { let pointes = contact.getHitInfo().points; let potSelf = new Laya.Point(pointes[0].x, pointes[0].y); let potOther = new Laya.Point(pointes[0].x, pointes[0].y); self.owner.globalToLocal(potSelf); other.owner.globalToLocal(potOther); var distanceJoint = new Laya.DistanceJoint(); ...
来源: Laya_社区 发布时间: 20190609
...is.tiledMap.createMap("../laya/assets/map/orthogonal-test-movelayer.json", new Rectangle(0, 0, 5000, 5000),new Laya.Handler(this,this.finishLoadMap)); Rectangle设置太小,分开加载了,加载会从下开始加载,导致上面的会盖上去 2018-03-26 0 0 分享 微博 QZONE 微信 q...
来源: Laya_社区 发布时间: 20180326
... 要回复问题请先登录 发起人 sen3779494 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 laya针对页游耗用内存大的问题是如何解决的? 请问有没有方法能够获取“鼠标是否处于按下状态”? ...
来源: Laya_社区 发布时间: 20171022
... 要回复问题请先登录 发起人 何小飝 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 使用钢体设置防穿后仍有几率会穿透 使用了u3D导出来的粒子,不停的显示移除并销毁其克隆对象,统计...
来源: Laya_社区 发布时间: 20180703
遮罩 模糊 var mask = new Sprite(); mask.size(79, 118) mask.pos(38.5, 59); mask.name = "mask"; mask.pivotToCenter(); mask.graphics.drawRect(-38.5, -59, 79, 118, '#000000'); var maskContainer = new Sprite(); maskContainer.size(79, 118); maskContainer.pos(38.5, 59); maskContainer.pivotToCenter(); ...
来源: Laya_社区 发布时间: 20170316
...th lastColor lastSize defaultParser Methods parse Constructors constructor new UBBParser(): UBBParser Defined in laya/html/UBBParser.ts:16 Returns UBBParser Properties defaultImgHeight defaultImgHeight: number = 0 Defined in laya/html/UBBParser.ts:14 defaultImgWidth defaultImgWidth: number = 0 Defin...
来源: Laya3.0_api 发布时间: 20231115
...aya3d 相机问题 Laya.camera.moveVertical(cameramovespeed); var outpos = new Laya.Vector3(); Laya.camera.worldToViewportPoint(new Laya.Vector3(seeObject.position.x,seeObject.position.y,seeObject.position.z), outpos); 相机移动后用worldToViewportPoint获取模型相对屏幕位置不准确,...
来源: Laya_社区 发布时间: 20180531
...100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 duration: number 花费的时间,单位毫秒。 Default value ease: Function | null = null 缓动类型,默认为匀速运动。 Default value complete: Handler | null = null 结束回调...
来源: Laya3.0_api 发布时间: 20231115