大约有 1,253 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0050 秒)
...LayaAir有bug吗,我的代码是根据教程来写的,现附上代码export class Scene{ // 当前场景的配置信息 private _mLevelConf:LevelConf = null; // 地图文件 private _mTiledMap:TiledMap = null; // 自定义信息文件 private _mLoader:Loader = null; // 当前地图X坐标 privat...
来源: Laya_社区 发布时间: 20180529
... [*] [/*] [*] [/*] [*] [/*] [*] [/*] [*] [/*] [*] [/*] [/list] [code]export default class DesertUI extends Laya.Scene { constructor() { super(); DesertUI.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("Desert.scene"); //初...
来源: Laya_社区 发布时间: 20190321
...你这是3d类型,改成下面这样,就可以获取到觖发信息了 export default class PlayerController extends Laya.Script3D 2020-07-29 0 0 分享 微博 QZONE 微信 不懂就问 赞同来自: isKinematic=true,这个为true是没有碰撞检测的 2020-07-29 0 1 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20200728
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 请问如何获取鼠标在某个元素内 相对于这个元素的坐标 如何获取一个3D模型的长宽高? 1.7.15 小游戏3d 发布后在...
来源: Laya_社区 发布时间: 20180529
...dler = Laya.Handler; import WebGL = Laya.WebGL; import Utils = Laya.Utils; export class UI_Tree { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_S...
来源: Laya_示例 发布时间: 20250220
... cell.publicSpaceData = cell.dataSource; } module gamepublicspaceitem { export class PublicSpaceItem extends Laya.Box { public static BTN_ENTRER_CLICK:string = "BtnEnterClick"; public _publicSpaceData:datasheet.PublicSpaceData; private bg:Laya.Image; private btnEnter:Laya.Button;...
来源: Laya_社区 发布时间: 20170923
...2D聚光灯的效果: const { regClass, property } = Laya; @regClass() export class SpotLight extends Laya.Script { @property({ type: Laya.Sprite }) private spotLight: Laya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { this.setSpotLight(); } // 创建聚...
来源: Laya3.0_文档 发布时间: 20250214
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/Widget" Widget Class Widget 相对布局插件 Hierarchy Component Widget Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath EMPTY Accessors awaked ...
来源: Laya3.0_api 发布时间: 20231115
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/ui/Widget" Widget Class Widget 相对布局插件 Hierarchy Component Widget Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath EMPTY Accessors awaked bottom c...
来源: Laya3.0_api 发布时间: 20231102
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 2.1.1.1引擎微信小游戏掉帧严重 问题状态 最新活动: 2019-11-15 17:52 浏览: 1922 关注: 2 人 选 • 2019-11-15 17:50 可是我已经是用新版的IDE升级的引擎库啊,而且也重新编...
来源: Laya_社区 发布时间: 20191115