大约有 1,595 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0070 秒)
...ypeBox.getChildByName('btn' + i) as Laya.Image; console.log(e); e.on(Laya.Event.CLICK, this, this.onBtnClick); } 按钮事件 private onBtnClick(event:Laya.Event): void { let b = event.currentTarget as Laya.Image; console.log('onClickLevel > ' + b.ski...
来源: Laya_社区 发布时间: 20190802
...何读取资源中的txt文件中的内容 var testPath ="res/Test.txt"; console.log( Laya.loader.load(testPath)); console.log(Laya.Loader.getRes(testPath)); 这里打印的是 LoaderManager {retryNum: 1, retryDelay: 0, maxLoader: 5, _loaders: Array(4), _loaderCount: 1…} undefined 并不是文本...
来源: Laya_社区 发布时间: 20171009
...计产生射线方法,通过2D坐标获取与屏幕垂直的一条射线 console.log( PanelMgr.mainCamera); PanelMgr.mainCamera.viewportPointToRay(this.pointRay, this.ray); (this.owner as Laya.Scene3D).physicsSimulation.rayCast(this.ray,this.hitresult); console.log(Laya.MouseManager.instance.mouse...
来源: Laya_社区 发布时间: 20190416
...本管理(会重命名文件名称的) 例子代码: LoadError(){console.log("LoadError")} LoadOK(){console.log("LoadOK")} Laya.loader.on(Laya.Event.ERROR,this,this.LoadError) Laya.loader.load("不存在的图片URL",Laya.Handler(this,this.LoadOK)); 发布成微信小游戏版本...
来源: Laya_社区 发布时间: 20180920
...); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); } function keyDown(e) { switch(e.keyCode) { case Keyboard.LEFT: timeLine.play("turnLeft"); break; case Keyboard.RIGHT: timeL...
来源: Laya_示例 发布时间: 20251130
...(vhvt); vhvt.on(laya.events.Event.CLICK, this, (event: Laya.Event) => { console.log("为什么这里不进来"); }); } /** * ViewHeadViewTest */ class ViewHeadViewTest extends Laya.Sprite { constructor() { super(); this.graphics.drawRect(0, 0, 1500, 1500, "#0000f...
来源: Laya_社区 发布时间: 20170822
...Nevermore 赞同来自: Laya.stage.addChild(this); console.log("addd 33"); this.alpha = 0; Laya.Tween.to(this,{alpha:1},200); self.panel_room.hScrollBar.value = 432; console.log("s...
来源: Laya_社区 发布时间: 20190108
...tring:string = "./sounds/hit.wav"; private onPlayMusic(e: Event): void { console.log("播放音乐"); SoundManager.playMusic(this.musicString, 1, new Handler(this, this.onComplete)); } private onPlaySound(e: Event): void { console.log("播放音效"); SoundManager.playSound(this.soundString, 1, ...
来源: Laya_社区 发布时间: 20190421
... Laya.Script { onStart() { let item1 = Laya.Pool.createByClass(TestClass); console.log('item1:', item1.type); Laya.Pool.recoverByClass(item1); let item2 = Laya.Pool.createByClass(TestClass2); console.log('item2:', item2.type); console.log(item1 == item2); } } export class TestClass { type = 0; } exp...
来源: Laya_社区 发布时间: 20250819
...); div.size(600,400); Laya.stage.addChild(div); console.log(div); var myChart = echarts.init(div.getCanvas()); // 指定图表的配置项和数据 var option = { title: { text: 'ECharts 入门示例' }, tooltip: {}, legend: { data:['销量'] }, xAxis: { data: ["衬衫...
来源: Laya_社区 发布时间: 20180626