大约有 908 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0069 秒)
Laya_社区(457) Laya2.0_示例(91) Laya_示例(88) Laya2.0_文档(74) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(23)
... Laya.stage.width = 1218; Laya.stage.height = 750; if (Laya.Browser.onPC) { //设置舞台缩放模式 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; ...
来源: Laya_社区 发布时间: 20181208
...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scale、scaleX、scaleY。...
来源: laya_api 发布时间: 20170929
...htmlC: Laya.HTMLCanvas = gv.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); UIMain.shotPic = htmlC.getTexture();这样截取出来的画面是没有着色器和光照的 Scene3D如何正确截屏?? 2020-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20200401
...rior isVertical mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY bar blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayed...
来源: Laya3.0_api 发布时间: 20231115
...化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stag...
来源: Laya2.0_文档 发布时间: 20210715
...如何实现? 通过 Laya.stage.designWidth = width ; Laya.stage.designHeight = height;设置之后不能立即生效 2018-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: laya会...
来源: Laya_社区 发布时间: 20180412
... - this.changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); this.changeActionButton.on(Laya.Event.CLICK, this, function (): void { this.playSkinAnimation(this.zombie, ++this.curStateIndex % this.skinAniUrl.length); }); })); } } new SkinAnimatio...
来源: Laya_示例 发布时间: 20251209
...png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { ...
来源: Laya3.0_文档 发布时间: 20251010
...(); graphics.alpha(0.6); graphics.drawRect(0,0,Laya.stage.width,Laya.stage.height,'#000000'); graphics.restore(); sprite.graphics=graphics; 2018-12-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 dz5566 相关问题 iphoneX环境下新...
来源: Laya_社区 发布时间: 20181218
...etCamera.renderTarget = new RenderTexture(Laya.stage.width, Laya.stage.height); //渲染顺序 this.renderTargetCamera.renderingOrder = -1; //清除标记 this.renderTargetCamera.clearFlag = BaseC...
来源: Laya_社区 发布时间: 20200529