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

大约有 1,873 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0072 秒)

811. 图片居中的问题 [ 70%]

...:   请设置图片的中心点pivotX和pivotY为中心位置,即image.width/2,image.height/2,image的宽高需要自己手动设置或者通过getBounds获取。 2016-11-18 0 0 分享 微博 QZONE 微信 shaouXie 赞同来自: var bg = new Laya.Sprite(); bg.loadImage("res/bg-480x720.jpg"); L...

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

812. laya.spine.SpineSkeleton_API3.0 [ 70%]

...gh name tag PAUSED PLAYING STOPPED drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY animationName blendMode cacheAs components currentTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize externalSkins filters gl...

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

813. 动画设置scale 不正常? [ 70%]

...高那些  比如说我想设置宽高都是100 100 ani.scale(100/bounds.width,100/bounds.height) 这样不是对的吗,为什么显示出来的动画不是100 100的 附件 : --> Test.zip 2017-06-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

814. 内嵌模式创建scene,运行时报找不到json文件 [ 70%]

...elloUI extends Scene { public static uiView:any ={"type":"Scene","props":{"width":640,"height":1136},"compId":2,"child":[{"type":"Label","props":{"y":64,"x":214.5,"width":211,"text":"label","styleSkin":"comp/label.png","height":67},"compId":3}],"loadList":["comp/label.png"],"loadList3D":[]}; constru...

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

815. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 70%]

...= this._boll1.addComponent(laya.physics.BoxCollider); box.height = 60; box.width = 28; //添加刚体 this._boll1.addComponent(Laya.RigidBody); //创建挡板 this.createPanel(); } private createPanel():void { let panel:Laya.Sprite = new Laya.Sprite(); panel.graphics.drawRect(0,100,100,20,0xffffff);...

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

816. 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

817. 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

818. 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

819. 鼠标 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

820. 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