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

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

801. Mesh网格-网格加载 [ 61%]

... import common.Tool; /** * ... * @author */ public class MeshLoad { public function MeshLoad() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; var camera:Camera = ...

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

802. 分享:Panel下动态修改子容器宽高并刷新显示! [ 61%]

...ils.Browser; import laya.utils.Handler; public class LayaUISample { public function LayaUISample() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height); //ui组件,除了image和clip外,其他皮肤均需要预加载资源,此处添加button和panel垂直滚动...

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

803. 分享:LayaAir下如何获取图集下的小图资源? [ 61%]

...ya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.json",type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void...

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

804. 3D导出微信小程序 [ 61%]

...rdScriptError alert is not defined ReferenceError: alert is not defined at Function.Laya3D.init (http://127.0.0.1:54904/game/code.js:72182:4) at LayaAir3D ( 2018-05-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

805. 一个LayaAir moveout target 设计上的疑问? [ 60%]

...         sp[j + i * 10].on(Laya.Event.MOUSE_OUT, this, out);     } } function over(e) {     e.target.graphics.drawRect(0, 0, 50, 50, "red"); } function out(e) {     //正常大家可能会这么写,但是运行之后是无效的,因为e.target可能变成stage或者null,也可能是...

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

806. Image属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 60%]

...ort laya.ui.Image; import laya.webgl.WebGL; public class UI_Image { public function UI_Image() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER;...

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

807. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 60%]

...rivate var url_img:String = "res/";                    public function WWJ_Main()          {             Laya.init(stageWidth, stageHeight);                          Laya.stage.alignV = Stage.ALIGN_MIDDLE;             Laya.stage.alignH = Stage....

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

808. 多个模块之间相互嵌套import,导致运行报错 [ 60%]

...oid { let self = this; let cat = new Cat(); cat.Create(); cat.on('attack', function () { self.Change(); }); this.animals.push(cat); }   2019-02-26 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 karin666 相关...

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

809. 接入LayaNative时候报错 [ 60%]

....4 layaair2-cmd 编译报错 导微信小程序报错window.focus is not a function 启动引擎报错 mPlugin.game_plugin_init(3); 2.2.0beta4,微信上动态合批报错. 微信小游戏编译报错 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 3d项目-unity添加物理组件 la...

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

810. Animation创建和销毁的问题 [ 60%]

...3 private var testAnim1:Animation; private var testAnim2:Animation; public function LayaSample() { //初始化引擎 Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode =...

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