大约有 4,000 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0081 秒)
Laya_社区(3251) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(94) Laya3.0_文档(86) Laya2.0_api(9) laya_api(6)
....HitResult = new Laya.HitResult(); var hitResults = []; //是否穿透 if (this.castAll) { //进行射线检测,检测所有碰撞的物体 this.scene.physicsSimulation.raycastAllFromTo(this.from, this.to, this.hitResults); //遍历射线检测的结果 for (i = 0, n = this.hitResults.length; i (图...
来源: Laya2.0_文档 发布时间: 20210715
...der.maxLoader = 1; Laya.loader.load("res/apes/monkey2.png", Handler.create(this, this.onAssetLoaded), null, null, 0, false); Laya.loader.load("res/apes/monkey1.png", Handler.create(this, this.onAssetLoaded), null, null, 1, false); Laya.loader.load("res/apes/monkey0.png", Handler.create(this, this.on...
来源: Laya2.0_示例 发布时间: 20241002
...OWALL; Laya.stage.bgColor = "#232628"; createMap(); Laya.stage.on("click", this, onStageClick); })(); function createMap() { tiledMap = new TiledMap(); tiledMap.createMap("../../res/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(thi...
来源: Laya_示例 发布时间: 20241002
...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.checkbox.pos(300, 300); // this.checkbox.selected = true; this.checkbox.label = "多选框"; this.checkbox.labelBold = true; this.checkbox.labelSize = 30; this.checkbox.labelColors = "#0100ff, #16fa0e, #ff0000"; //各状...
来源: Laya3.0_文档 发布时间: 20231019
Laya.loader.load("", Laya.Handler.create(this, this.console)); 为什么会打印两次 附件 : --> 2018-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 加载两次 2019-05-11 0 0 ...
来源: Laya_社区 发布时间: 20181212
...aracters/Blue_JumpLeft_Smile.png"], ActionType.JUMP_LEFT); // 创建动画 this.animation = new Laya.Animation(); this.animation.interval = 150; this.animation.play(0, true, ActionType.MOVE_RIGHT); this.addChild(this.animation); 由于动画不能设置锚点,我想设置动画图片宽度/2为...
来源: Laya_社区 发布时间: 20170119
执行了这个 Laya.timer.clear(this, this.onLoop);还是会继续执行onLoop 请问是什么问题 2018-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: 你看一下是否是你...
来源: Laya_社区 发布时间: 20180411
...und = (function (_super) { function BackGround() { BackGround.__super.call(this); //创建背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("war/background.png"); //把背景1放到容器内 this.addChild(this.bg1); //创建背景2 this.bg2 = new Laya.Sprite(); //...
来源: Laya_社区 发布时间: 20170222
...e(100,300); list.repeatX =1; list.repeatY =this.arr.length; list.itemRender =Item; //Item 为继承BOX类 list.vScrollBarSkin =""; Laya.stage.addChild(list); list.array =this.arr; list.ren...
来源: Laya_社区 发布时间: 20190522
...;Laya.MeshSprite3D>}={} constructor() { } static getInstance() { return this._instance || (this._instance = new PoolManager()) } //初始化 //加载到内存中创建出来之后添加到这里面 public InitPool(key:number,MeshSprite:Laya.MeshSprite3D){ //初始化id对应对象池, 第一...
来源: Laya_社区 发布时间: 20191206