大约有 1,451 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0091 秒)
Laya_社区(932) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(32) laya_api(1) Laya2.0_api(1)
...cter.y = 220; character.pivot(100,100); // character.scale(0.5, 0.5); Laya.stage.addChild(character); return character; } characterA = createCharacter("../res/timg-1.png");上面这段代码不设定sprite的比例时,显示正常;但如果设置比例 character.scale(0.5, 0.5); 显示不正确...
来源: Laya_社区 发布时间: 20170828
...ton.pos(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.h...
来源: Laya_社区 发布时间: 20171114
... public function discard():void { Laya.stage.setGlobalRepaint(); this.destroy(); } public static function getTextTexture(w:int, h:int):TextTexture { return new ...
来源: Laya_社区 发布时间: 20190515
...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hide hideFlags hitArea is3D isVertical lastOffset left mask max min mouseEnabled mouseWheelEnable mouseX mouseY numChildren parent p...
来源: Laya3.0_api 发布时间: 20231115
...// let mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf"); // Laya.stage.addChild(mc); } } } new laya.Loader_MultipleType(); 2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 11 个回复 qian 赞...
来源: Laya_社区 发布时间: 20180203
...染模式 Laya.init(600, 400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //按钮资源路径 var skin = "./res/img/btn_test.png"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建...
来源: Laya2.0_文档 发布时间: 20210714
...ullPass customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize enableFog filters fogColor fogDensity fogEnd fogMode fogRange fogStart globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea iblTex iblTexRGBD is3D lightmaps mask mouseEnabled mouse...
来源: Laya3.0_api 发布时间: 20231115
....graphics.drawTexture(new Texture(htmlCanvas),0,0); //添加到舞台 Laya.stage.addChild(imgNew); } 需要进行像素级的操作 这样写 sprite显示不出来 应该怎么修改? 2018-04-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180413
...aSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea index interval is3D isPlaying left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right ro...
来源: Laya3.0_api 发布时间: 20231115
...aSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D items labelBold labelColors labelFont labelPadding labelSize labelStroke labelStrokeColor labels left mask mo...
来源: Laya3.0_api 发布时间: 20231115