• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,253 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0050 秒)

861. tiledmap有时尺寸不正确 [ 55%]

...LayaAir有bug吗,我的代码是根据教程来写的,现附上代码export class Scene{ // 当前场景的配置信息 private _mLevelConf:LevelConf = null; // 地图文件 private _mTiledMap:TiledMap = null; // 自定义信息文件 private _mLoader:Loader = null; // 当前地图X坐标 privat...

来源: Laya_社区 发布时间: 20180529

862. LayaBox加载TiledMap地图和注意事项 [ 55%]

... [*] [/*] [*] [/*] [*] [/*] [*] [/*] [*] [/*] [*] [/*] [/list] [code]export default class DesertUI extends Laya.Scene {    constructor() { super();        DesertUI.instance = this; Laya.MouseManager.multiTouchEnabled = false;        this.loadScene("Desert.scene"); //初...

来源: Laya_社区 发布时间: 20190321

863. Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,有偿悬赏解答 [ 55%]

...你这是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

864. 怎么获取手机相册内容 [ 55%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 请问如何获取鼠标在某个元素内 相对于这个元素的坐标 如何获取一个3D模型的长宽高? 1.7.15 小游戏3d 发布后在...

来源: Laya_社区 发布时间: 20180529

865. UI-Tree [ 55%]

...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

866. Image.loadImage 方法加载问题 [ 55%]

... 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

867. 2D聚光灯 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...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

868. laya.components.Widget_API3.0 [ 55%]

...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

869. laya.ui.Widget_API3.0 [ 55%]

...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

870. 使用2.1.1.1引擎创建的ts小游戏升级2.3.0版本之后无法进入游戏 [ 55%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 2.1.1.1引擎微信小游戏掉帧严重 问题状态 最新活动: 2019-11-15 17:52 浏览: 1922 关注: 2 人 选 • 2019-11-15 17:50 可是我已经是用新版的IDE升级的引擎库啊,而且也重新编...

来源: Laya_社区 发布时间: 20191115