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

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

711. 其他引擎的Demo-Example_21 [ 70%]

...[0]; var liveGraphics; var canvasGraphics; (function() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#3da8bb"; createCanvases(); Laya.timer.frameLoop(1, this, animate); Laya.stage.on('mousedown', this, onMouseDown); Laya.stage.on('mousemove', this, onMouseMove); Laya.stage...

来源: Laya_示例 发布时间: 20241001

712. Laya.Rectangle 限制拖动的区域的参数是怎么计算的,相对于什么呢 [ 70%]

... 确定)以及宽度和高度定义的区域。 Rectangle 类的 x、y、width 和 height 属性相互独立;更改一个属性的值不会影响其他属性。    你问的问题我看的不是很懂。 2018-05-30 0 0 分享 微博 QZONE 微信 W 赞同来自: 我想让这个区域就是舞...

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

713. sprite点击事件 位置便宜 [ 70%]

... "#D2691E"); rect.size(200, 200); rect.pivot(100,100); rect.x = Laya.stage.width /2; rect.y = Laya.stage.height / 2; // let hitArea = new Laya.Rectangle(rect.x-100,rect.y-100,200,200); // rect.hitArea = hitArea; Laya.stage.addChild(rect); //增加鼠标事件 rect.on(Event.MOUSE_DOWN, this, mouseHan...

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

714. laya.display.FrameAnimation_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 filters globalRotation globalScaleX globalSc...

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

715. 图片居中的问题 [ 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

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

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

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

717. UI-Slider [ 70%]

...r; let hs = new HSlider("res/ui/hslider.png"); Laya.stage.addChild(hs); hs.width = 300; hs.pos(50, 170); hs.min = 0; hs.max = 100; hs.value = 50; hs.tick = 1; hs.changeHandler = new Handler(this, this.onChange); } placeVSlider() { const VSlider = Laya.VSlider, Handler = Laya.Handler; let vs = new VS...

来源: Laya2.0_示例 发布时间: 20241001

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

719. 内嵌模式创建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

720. [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