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

大约有 775 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0057 秒)

701. laya.d3.core.MeshTerrainSprite3D [ 44%]

...her Object TerrainMeshSprite3D 类用于创建网格。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Sprite3D activeInHierarchy : Boolean[read-only] 获取在场景中是否激活。 Sprite3D c...

来源: laya_api 发布时间: 20170929

702. Laya怎么使用雪碧图(spritesheet)? [ 44%]

...1)下载ShoeBox (2)修改ShoeBox的设置,如下图 FileFormatLoop:\n\t"@ID":{"x":"@x", "y":"@y", "w":"@w", "h":"@h"}, FileFormatOuter:{@loop\n\t"":""\n} (3)把morn/assets里的资源分别拖到BoxSheet的SpriteSheet菜单上生成图集和配置文件 (4)在h5目录下添加与swf对应的资源...

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

703. 层级管理器(ActionScript-IDE篇(AS3)-设计模式基础) [ 44%]

...面时选择Dialog,否则,无论是UI还是动画,根级都是View,ID为1。如图1所示。 ![图1](img/1.png) (图1) #### 1.2 多层嵌套 层级管理器中允许多层嵌套,每一个父级层都会以灰色三角标开头,点击三角标可以展开层级,如图2所示。 ![图2](...

来源: Laya2.0_文档 发布时间: 20210715

704. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 44%]

...供的代码 微信主域代码: Laya.timer.once(400,this,function():void{ var rankTexture:Texture = new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,rankTexture.width,ran...

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

705. 2.0版本Loader加载不同目录下的相同文件名的图片有问题 [ 43%]

...同来自: 不是,解压的时候是在用户目录下面再创建了以id为名字的文件夹,然后再到这个文件夹下面解压的。因为是两个不同的zip包,你可以看到打出来的日志两个图片的路径分别是 http://usr/skin_resources/105/main1.png 和 http://usr/s...

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

706. mac laya 2.5beta ts示例工程 tsconfig.json tartget 改成es5 编译报错 [ 43%]

...------------- [09:09:53] Working directory changed to /Applications/LayaAirIDE_beta.app/Contents/Resources/app [09:09:54] Using gulpfile ~/projects/mylaya11/Tank/.laya/compile.js [09:09:54] Starting 'compile'... { Error: /Users/xxxxx/projects/mylaya11/Tank/src/script/Bullet.ts(4,29): semantic error ...

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

707. laya.d3.webxr.core.AxiGamepad_API3.0 [ 43%]

...s:12 轴设备名字 Static EVENT_OUTPUT EVENT_OUTPUT: string = "outputAxi_id" Defined in laya/d3/WebXR/core/WebXRGamepad.ts:8 Methods destroy destroy(): void Defined in laya/d3/WebXR/core/WebXRGamepad.ts:62 destroy Returns void event event(type: string, data?: any): boolean Inherited from EventDisp...

来源: Laya3.0_api 发布时间: 20231115

708. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 43%]

...m' does not exist on type 'Node'.[39m at error (D:\Software\Develop\LayaAirIDE\resources\app\node_modules\rollup\dist\rollup.js:9402:30) at Object.error (D:\Software\Develop\LayaAirIDE\resources\app\node_modules\rollup\dist\rollup.js:15621:24) at Object.error (D:\Software\Develop\LayaAirIDE\resource...

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

709. laya.d3.core.BaseCamera [ 42%]

... Camera BaseCamera 类用于创建摄像机的父类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在场景中是否激活。 Node  clearCo...

来源: Laya2.0_api 发布时间: 20190513

710. Ts简单对象池 [ 42%]

...面 public InitPool(key:number,MeshSprite:Laya.MeshSprite3D){ //初始化id对应对象池, 第一次初始化则必须保证池中最少存在1个 if (this.m_ObjectPoolDic[key]){ console.log("初始化有误,该值已经有对应的 对象池了"); } else{ this.m_ObjectPoolDic[key]=new QueueT&l...

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