大约有 2,682 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0080 秒)
Laya_社区(2157) Laya2.0_文档(119) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(51)
...aleMode = 'fixedauto' Laya.stage.screenMode = 'vertical' let bg = new Laya.Sprite(); bg.loadImage("../res/image/interface/intro_bg.png",375,667,1500,1500); bg.pivot(750,750) bg.alpha = 1 bg.rotation = 10图片是正方形的 如上设置过pivot之后 并没有按 正方形中心点旋转 2018-05-19...
来源: Laya_社区 发布时间: 20180519
...img.skin = 'xxxx' // 图片url路径 this.addChild(img) const imgMask:Laya.Sprite = new Laya.Sprite() img.mask = imgMask 我就问一下,这个时候img是能显示还是不能显示? 答案是,如果Laya.init就不会显示;Laya3D.init就会显示 引擎版本1.7.3 附件 : --> 201...
来源: Laya_社区 发布时间: 20190328
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var Ease = Laya.Ease; var Tween = Laya.Tween; var WebGL = Laya.WebGL; var ROTATE = "rotate"; var sp; (function() { // 不支持We...
来源: Laya_示例 发布时间: 20251209
锯齿问题 求破 var avatarContainer = new Sprite(); var imgTextTure = Laya.loader.getRes('http://q3.qlogo.cn/g?b=qq&s=100&nk=842256713'); var imgSprite = new Sprite(); imgSprite.x = 300 imgSprite.graphics.drawTexture(img...
来源: Laya_社区 发布时间: 20170209
...lignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#EEFF00"); var label:Label=new Label(); label.fontSize=60; label.text="666"; label.bold=true; label.color="#000000"; sp.addChild(label); sp.size(200,200); Laya.stage.addC...
来源: Laya_社区 发布时间: 20180403
分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 因为要用到的贴图并不是固定的,所以有这样的需求,之前问过,不过暂时没有结果:https://ask.layabox.com/question/5622 看不太懂官方的源码,所以用...
来源: Laya_社区 发布时间: 20170718
...ogManager怎么添加遮罩层 var dialogManager =new DialogManager(); var sprite1=new Laya.Sprite(); sprite1.loadImage("scdlb/首充大礼包通用素材/通用素材/背景黑色蒙版.png",0,0,1600,1080); this.scTipsPg= new ScTpisUI(); console.log(this.scTipsPg.manager); this.scTipsPg.manager=dia...
来源: Laya_社区 发布时间: 20191031
...回复被折叠 要回复问题请先登录 发起人 wufee 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 请问有没有方法能够获取“鼠标是否处于按下状态”? 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 游戏运行在chro...
来源: Laya_社区 发布时间: 20170330
...来,, 主域代码 Laya.timer.once(2000, this, function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser.window.sharedCanvas); texture.bitmap.alwaysChange = true;//小程序使用,非常费,这个参数可以根据自己的需求适当...
来源: Laya_社区 发布时间: 20181123
...g"); this.roombg.pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + "hall/room_jiesan.png"); button.pos(300, 0); this.roombg.addChild(button); button.on(Event.MOUSE_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__su...
来源: Laya_社区 发布时间: 20170920