大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...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
...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
...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_示例 发布时间: 20251209
...以及宽度和高度定义的区域。 Rectangle 类的 x、y、width 和 height 属性相互独立;更改一个属性的值不会影响其他属性。 你问的问题我看的不是很懂。 2018-05-30 0 0 分享 微博 QZONE 微信 W 赞同来自: 我想让这个区域就是舞台的大小...
来源: Laya_社区 发布时间: 20180530
...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
...类继承而来。 拖动区域 dragArea 拖动区域(格式:x,y,width,height),默认值为"0,0,0,0" 模式窗口 isModal 是否是模式窗口,默认为false。为模式窗口时,点击弹窗空白处,可自动关闭该弹窗 显示弹窗效果 isShowEffect 是否显示弹出效果,...
来源: Laya3.0_文档 发布时间: 20251024
...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_示例 发布时间: 20251209
...片的中心点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
...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
...说我想设置宽高都是100 100 ani.scale(100/bounds.width,100/bounds.height) 这样不是对的吗,为什么显示出来的动画不是100 100的 附件 : --> Test.zip 2017-06-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20170630