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

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

761. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 70%]

...omplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play) this.play(); } private function onError(): void{ trace("...

来源: Laya2.0_文档 发布时间: 20210715

762. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 70%]

... mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);             mesh.on(Event.HIERARCHY_LOADED, this, this.OnHierarchyLoaded);                          let ani_names = this.ani_names;             let anies = this.anie...

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

763. "img.viewport is not a function" [ 70%]

...is.preinitialize is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 微信开发者工具iOS模拟器报错:CharRender_Canvas.ctx.fillAndStrokeText is not a function 问题状态 最新活动: 2017-04-28 19:22 浏览: 1048 关注: 2 人

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

764. ScrollRect设置会引起其他的UI资源无法正在显示 [ 70%]

... function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i++){ p = new Image("test/footprint.png"); p.pos(i...

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

765. 材质-物理基础渲染材质 [ 70%]

...Laya.Stage.SCREEN_NONE; var Vector3 = Laya.Vector3; var scene = Laya.stage.addChild(new Laya.Scene()); //var env:String = 'inthegarden'; var env = 'sp_default'; //var env = 'AtticRoom'; //var env = 'overcloud'; var envinfo = '../../res/threeDimen/env/' + env + '/envinfo.json'; Laya.loader.load(envin...

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

766. new Laya.Templet() 时,说这不是一个constructor [ 69%]

...ew Animation(); this.aniFighter.loadAtlas(this.strAniConfPath); Laya.stage.addChild(this.aniFighter); this.aniFighter.interval = 100;//30;//设置播放间隔30毫秒 this.aniFighter.index = 1;//当前播放索引 this.aniFighter.play();//播放图集动画 this.aniFighter.loop = false; //获取动...

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

767. 如何获得box单独每个面的material [ 69%]

...oxWidth, ConstValue.boxWidth, ConstValue.boxHeight); var box = this.parent.addChild(new Laya.MeshSprite3D(mesh)); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.position = new Laya.Vector3(ConstValue.boxOutScreen,ConstValue.boxHeight/2,0); var material = new Laya.Stand...

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

768. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 69%]

... let partIns = new Laya.Particle2D(settings);         Laya.stage.addChild(partIns);         // 开始发射粒子         partIns.emitter.start();         // 播放         partIns.play();          partIns.x = Laya.stage.width / 2;          ...

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

769. 文本align="center", 对齐方式无效,无论设置什么值,都是左对齐 [ 69%]

...tSize = 30; this.rankSprite2.txtCountDown = txtCountDown; this.rankSprite2.addChild(txtCountDown); txtCountDown.text = 15; txtCountDown.pivotX = txtCountDown.width/2; txtCountDown.align = "right"; txtCountDown.pos(this.rankSprite2.width / 2, 483); 2018-05-14 添加评论 免费帖 --> 分享 微博 ...

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

770. 打包后启动游戏后报错 [ 69%]

...raphics.drawRect(0,0,300,300,"#ffffff"); s.graphics.setAlpha(1); addChild(s); var img:Image = new Image("a.png"); s.addChild(img); //方案二: var s:Sprite = new Sprite(); s.graphics.alpha(0.3); s.graphics.drawRect(0,0,300,300,"#ffffff"); s.graphics.alpha(1); addChild(...

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