大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0082 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...art 界面 */ var Start = (function(_super){ function Start(){ Start.super(this); // 注册点击开始事件 this.beginBtn.on(Laya.Event.CLICK,this,this.onBeginClick); // 注册跳转事件 this.linkMsleanBtn.on(Laya.Event.CLICK,this,this.onLinkClick); // 初始化 UI 界面显示 this.reset(); } /...
来源: Laya_社区 发布时间: 20180130
...下面演示获取旋转方位信息: ```typescript Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, o...
来源: Laya2.0_文档 发布时间: 20210714
...,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load(this.backgroundTexture).then(() => { this.createLightOccluder(); this.createSpotLight(); this.createBackground(); }); } // 创建2D光遮挡器 createLightOccluder(): void { this.lightOccluder.pos(233, 265); this.owner.addCh...
来源: Laya3.0_文档 发布时间: 20250214
...什么rotation、scale赋值了不管用? 我创建了一个Sprite3D: this.role3D = Laya.MeshSprite3D.load("3d/ben/Export.lh") this.role3D.transform.scale = new Laya.Vector3(0.5,0.5,0.5); this.role3D.transform.position = new Laya.Vector3(0,20,0); 以上的scale、position设置均不起作用,...
来源: Laya_社区 发布时间: 20180309
...ber> = []; constructor() { super(); this.list.vScrollBarSkin = ''; this.list.itemRender = Item_List; this.list.renderHandler = new Laya.Handler(this, this.onItemRender); this.list.scrollBar.elasticBackTime = 200; ...
来源: Laya_社区 发布时间: 20170614
... Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet)); } private var imag:Image; private function onComplet():void { imag=new Image("ui/comp/image.png"); ...
来源: Laya_社区 发布时间: 20170510
... let 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....
来源: Laya_社区 发布时间: 20170608
关于Sprite回收 // 移除item for(var i = 0; i < this.numChildren; i++) { console.log(this.numChildren); var item = this.getChildAt(i); if(item instanceof Item) { item.removeSelf(); ...
来源: Laya_社区 发布时间: 20170113
...ll.js文件 里面的组件名正确 layaUI.max.all.js: this.pauseBtn=null; this.hpLabel=null; this.levelLabel=null; this.scoreLabel=null; this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) { ...
来源: Laya_社区 发布时间: 20171118
...te _factory: Laya.Templet; constructor(spine, x, y, speed) { this._factory = new Laya.Templet(); this._factory.loadAni(`../bin/res/spine_model/${spine}.sk`); this._factory.on(Laya.Event.COMPLETE, this, this.parseComplete, [x, y]); } private parseComp...
来源: Laya_社区 发布时间: 20161108