大约有 1,754 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1137) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(42)
...drawToTexture,例如 onEnable(): void { const { x, y, width, height } = this.box Laya.loader.load('comp/image.png').then(v=>{ const texture = this.box.drawToTexture(width, height, x, y) as Laya.Texture this.snapshot.texture = tex...
来源: Laya_社区 发布时间: 20240425
...is.addLabel.graphics.drawRect(0, 730, 1440, 170, "#000000"); this.addLabel.width = 1440; this.addLabel.height = 170; this.addLabel.alpha = 0.6; this.addLabel.mousethrough = false; this.addLabel.mouseEnabled = true; 已经手动设置了,也是没有效果! 2017-07-26 0 1 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170726
...分享。 var tempFilePath = canvas.toTempFilePathSync( { x: 0, y: 0, width: 100, height: 100, destWidth: 100, destHeight: 100, fileType: 'jpg', quality: 1.0 }); var canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getCanvas(); 这是第二种写法。...
来源: Laya_社区 发布时间: 20191223
...不到pivot和pos? var bounds = ani.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani); 上面pivot和pos都是什么意思?官方API为什么找到说明? 2018-05-09 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20180509
...ame mouseThrough name tag tarLayer drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY g...
来源: Laya3.0_api 发布时间: 20231115
...= ["goblin","goblingirl"]; (function() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parse...
来源: Laya_示例 发布时间: 20251209
...例 或者demo的没有?感觉官网上的有点太简单。 Sprite中的width,height和size(width,height)感觉没作用啊 FB playable Ad 上传zip成功到facebook,广告播放之后,demo不运行? 预加载图集成功了 ,但是渲染的时候找不图片资源。高手帮帮...
来源: Laya_社区 发布时间: 20180827
... 20); var sy = 1.0 + (Math.random() / 20); var stars = []; var w = Browser.width; var h = Browser.height; var slideX = w / 2; var slideY = h / 2; var speedInfo; (function() { Laya.init(w, h, WebGL); createText(); start(); })(); function start() { for (var i = 0; i w) { stars[i].x = stars[i].x - w; }...
来源: Laya_示例 发布时间: 20251209
...hrough name popupEffectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY g...
来源: Laya3.0_api 发布时间: 20231115
...模式,在置灰状态,不能完全灰化 采用:Laya.init(Env.GAME_WIDTH, Env.GAME_HEIGHT),骨骼灰化正常的; 采用:Laya.init(Env.GAME_WIDTH, Env.GAME_HEIGHT, Laya.WebGL);骨骼动画无法完全灰化,如下图; 附件 : --> test_Laya.zip 2021-10-20 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20211020