• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0075 秒)

721. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 70%]

...; var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleValue, cardScaleValue, true); picture.on(Event.MOUSE_DOWN, this, onStartPicture(Picture); } function ...

来源: Laya_社区 发布时间: 20181022

722. SpineSkeleton 创建的骨骼动画,在置灰状态,不能完全灰化 [ 70%]

...引擎初始化方式有关; ABC • 2021-10-18 20:09 Laya.init(Browser.width, Browser.height, Laya.WebGL);采用WebGL初始化,骨骼动画就无法完全置灰; ABC • 2021-10-18 20:10 Laya.init(Browser.width, Browser.height)这种方式初始化,正常的 ABC • 2021-10-18 20:17 WebGL...

来源: Laya_社区 发布时间: 20211018

723. laya.ui.ScaleBox_API3.0 [ 70%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize...

来源: Laya3.0_api 发布时间: 20231115

724. 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? [ 70%]

...graphics.drawCircle(0, 0, 350, null, "#ff0000", 4); sprite.pivotX = sprite.width * 0.5; sprite.pivotY = sprite.height * 0.5; sprite.x = this.width * 0.5; sprite.y = this.height * 0.5; this.addChild(sprite);  Laya.Tween.to(sprite, {scaleX:1.5, scaleY:1.5, alpha:0}, 5000); 2018-07-08 添加评论 免...

来源: Laya_社区 发布时间: 20180708

725. laya.display.EffectAnimation_API3.0 [ 70%]

...INGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize effectClass effectData filters globalRotatio...

来源: Laya3.0_api 发布时间: 20231115

726. 通过canvas的缩放来实现清晰度是什么意思呢? [ 70%]

...分享 微博 QZONE 微信 kezhiyu 赞同来自: <style>#game_canvas{width:100;heigth:L100%}<style> 请先确保这个100%可以覆盖全屏,现在假如手机只有320, 520 <canvas width=”640“, heigth="1040" id="game_canvas"></canvas> 在游戏里应该是Laya.stage.se...

来源: Laya_社区 发布时间: 20180601

727. laya.ui.Box_API3.0 [ 70%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize...

来源: Laya3.0_api 发布时间: 20231115

728. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 70%]

...ctor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.ApePath, Handler.cre...

来源: Laya2.0_文档 发布时间: 20210715

729. 调用Laya.Utils.parseXMLFromString 时一直报undefined的错误 [ 69%]

...= treeData;     // tree.size(300, 300)     // tree.x = (Laya.stage.width - tree.width) / 2;     // tree.y = (Laya.stage.height - tree.height) / 2;     // Laya.stage.addChild(tree); }      附件 : --> 2018-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

来源: Laya_社区 发布时间: 20180726

730. 分享一下自己的屏幕适配方案 [ 69%]

... 废话不多说 上代码 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL nWidth:number; nHeight:number; ImgX:number; ImgY:number; Img:Laya.Image =new Laya.Image(); this.nWidth =this.bg.width; //背景图宽 this.nHeight =this.bg.height;//背景图的高 this.Img.x =0; this.Img.y =0; this.Img.url ="...

来源: Laya_社区 发布时间: 20181123