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

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

731. [LayaAir3]laya3.3.5版本spine3..8没有宽高位置的动画无法显示 [ 69%]

...3.3.5 spine版本3.8.99 描述:动画json的skeleton对象没有width、height、x、y四个参数就没法加载显示 demo里的EF_01是有问题的动画,EF_01_fixed是手动添加width、height、x、y的动画 可以看到EF_01_fixed正常播放,EF_01没有反应 在另一个工程里还...

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

732. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 69%]

...HelloLaya { public function HelloLaya() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.fr...

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

733. laya.display.FrameAnimation_API3.0 [ 69%]

...apMode WRAP_PINGPONG 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 globalSc...

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

734. 其他引擎的Demo-Example_21 [ 69%]

...aphics; 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.on('mouseup', ...

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

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

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

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

736. sprite点击事件 位置便宜 [ 69%]

...0); 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, mouseHandler); rect.on(Event.MOUSE_UP,...

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

737. 弹窗视图组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 69%]

...类继承而来。 拖动区域 dragArea 拖动区域(格式:x,y,width,height),默认值为"0,0,0,0" 模式窗口 isModal 是否是模式窗口,默认为false。为模式窗口时,点击弹窗空白处,可自动关闭该弹窗 显示弹窗效果 isShowEffect 是否显示弹出效果,...

来源: Laya3.0_文档 发布时间: 20251024

738. UI-Slider [ 69%]

...new VSlider(); Laya.stage.addChild(vs); vs.skin = "res/ui/vslider.png"; vs.height = 300; vs.pos(400, 50); vs.min = 0; vs.max = 100; vs.value = 50; vs.tick = 1; vs.changeHandler = new Handler(this, this.onChange); } onChange(value) { console.log("滑块的位置:" + value); } } new UI_Slider();modu...

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

739. 图片居中的问题 [ 69%]

...片的中心点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"); Laya.stage.on(Laya...

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

740. laya.spine.SpineSkeleton_API3.0 [ 69%]

...or mouseThrough 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 externalSki...

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