大约有 230 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0059 秒)
...s/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }运行会报错:见图: 求解~! 附件 : --> TestHtml.zip 2017-10-11 添加评论 免费帖 --> 分享...
来源: Laya_社区 发布时间: 20171011
...racter4]; private var characters:Array = []; private var text:Text; public function PerformanceTest_Cartoon2() { Laya.init(1280, 720, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("../../res/cartoon2/background.jpg", 0, 0, 1280, 900); createCharacters()...
来源: Laya2.0_示例 发布时间: 20260929
...:Array = ; private var arr2:Array = ; private var pop:TestDialogUI; public 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; _path2.rotation = Math.atan2(b.y - a.y+300, b.x - a.x) / Math.PI * ...
来源: Laya_社区 发布时间: 20171129
... ‘_physicsUpdateList’of null 求指导~~ __proto._onDestroy=function(){ (this._inPhysicUpdateListIndex!==-1)&& (this._simulation._physicsUpdateList.remove(this)); var physics3D=Laya3D._physics3D; delete PhysicsComponent._phys...
来源: Laya_社区 发布时间: 20190318
...码:** ```javascript // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = fu...
来源: Laya2.0_文档 发布时间: 20210714
...ue, true); //程序入口 Laya.init(375, 85 * 4); var WID = 375, HEI = 85; function RankListItem() { RankListItem.__super.call(this); this.size(WID, HEI); this.img = new Laya.Image(); this.addChild(this.img); this.setImg = function (src) { this.img.skin = src; } } Laya.class(RankListItem, "RankListI...
来源: Laya_社区 发布时间: 20180416
...的一个对象。 */ static getItemByCreateFun(sign: string, createFun: Function, caller: any = null): any { var pool: any[] = Pool.getPoolBySign(sign); var rst: any = pool.length ? pool.pop() : createFun.call(caller); rst[Pool.POOLSIGN] = false; return rst; } 基于上述的情况,如果对象...
来源: Laya3.0_文档 发布时间: 20251010
...Scene3D.load("res/LayaScene_demo/Android/demo.ls",Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); } } 2020-05-16 添加评论 已悬赏30元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20200516
... 2018-03-07 0 1 分享 微博 QZONE 微信 bepa_wang 赞同来自: public function MainView() { super(); mainCan = new Sprite(); Laya.stage.addChild(mainCan); ...
来源: Laya_社区 发布时间: 20180306
...ore.js:13707) at MeshSprite3D.__proto.addComponent (laya.core.js:13782) at Function.Utils3D._createNodeByJson (laya.d3.js:9676) unity是5.6.7f1,插件是IDE 2.0.1beta下载页面下的,应该是最新的。从文档看应该是支持导出collider的,但是导出可以,载入报错啊,麻...
来源: Laya_社区 发布时间: 20190321