大约有 488 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0038 秒)
... = 'res/tiled/map.json'; /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) } private onComplete(){ this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage...
来源: Laya_社区 发布时间: 20190218
...*/ function GameMap(){ this.MapRowNum = 100; this.MapColNum = 100; GameMap.super(this); this.init(); } Laya.class(GameMap, "GameMap", laya.display.Sprite); var _proto = GameMap.prototype; _proto.init = function(){ var boxSp = new laya.display.Sprite(); // boxSp.cacheAsBitmap = true; for(var i = 0; i...
来源: Laya_社区 发布时间: 20161008
...nds Laya.MovieClip{ constructor(){ super(); } //初始化预加载数据 public m_initData(url:string,atlas:boolean,atlasPath?:string){ (atlas===void 0)&& (atlas=false); ...
来源: Laya_社区 发布时间: 20180615
... effect3D = null; } super.destroy(true); Laya.loader.clearRes(this._path); } 画红框的区域还在内存里。。 https://ask.layabox.com/question/14807 。。 附件 : --> 2018-05-17 添加评论 免...
来源: Laya_社区 发布时间: 20180517
... = Laya.Scene; export default class Game3D extends Scene { constructor() { super(); //初始化引擎 Laya3D.init(0, 0); var scene_360 = Laya.loader.getRes("LayaScene_PUCHENG3D/Conventional/PUCHENG3D.ls") as Laya.Scene3D; Laya.stage.addChildAt(scene_360, 0); var camera = (scene_360 as Laya.Node).get...
来源: Laya_社区 发布时间: 20190813
...rivate skin_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); } //btn 有宽高 2018-08-28 添加评论 ...
来源: Laya_社区 发布时间: 20180828
...ord = texcoord;}`class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.W...
来源: Laya_社区 发布时间: 20180313
... public class GameUI extends TestSceneUI { public function GameUI():void { super(); //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage.addCh...
来源: Laya2.0_文档 发布时间: 20210715
...; })(this); class BoxControlScript extends Laya.Script3D { constructor() { super(); this.obj = null; this.rotation = new Laya.Vector3(0, 1, 0); } /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake() { //得到3D对象 th...
来源: Laya_社区 发布时间: 20200611
... Laya.Script { strWorldRoot:Laya.Sprite; constructor() { super(); } cameraPlayerOffset:Laya.Point=new Laya.Point(18,0); cameraOffset:Laya.Point=new Laya.Point(180,570); onEnable(): void { Laya.Physics.I.allowSleeping = false; this.strWorldR...
来源: Laya_社区 发布时间: 20231123