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

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

2061. 内嵌模式创建scene,运行时报找不到json文件 [ 52%]

...,并且都是ide自动生成的代码。     export module ui { export class HelloUI extends Scene { public static uiView:any ={"type":"Scene","props":{"width":640,"height":1136},"compId":2,"child":[{"type":"Label","props":{"y":64,"x":214.5,"width":211,"text":"label","styleSkin":"comp/label.png"...

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

2062. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 52%]

...rte添加2d物理特性 官方的2d物理引擎文档都是IDE篇的。   class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_cl...

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

2063. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 52%]

...教Laya.BitmapFont加载位图文字不能显示的问题 // 程序入口 class GameMain{ private mFontName:string = "diyFont"; private mBitmapFont:Laya.BitmapFont; constructor() { Laya.init(600,400); this.mBitmapFont = new Laya.BitmapFont(); this.mBitmapFont.loadFont("../laya/assets/txt.fnt", new L...

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

2064. laya.d3.shader.Shader3D [ 52%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Shader3DProperties | Methods | Constants Packagelaya.d3.shaderClasspublic class Shader3DInheritanceShader3D Object Shader3D 类用于创建Shader3D。 Public Properties PropertyDefined By  debugMode : Boolean = false...

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

2065. laya.d3.renderobjs.nativeobj.NativeShaderData_API3.0 [ 52%]

...u Globals "laya/d3/RenderObjs/NativeOBJ/NativeShaderData" NativeShaderData Class NativeShaderData Hierarchy ShaderData NativeShaderData Implements IClone INativeUploadNode Index Properties _dataType _nativeObj nativeObjID payload32bitNum updataSizeMap updateMap Accessors uniformBuffersMap Methods ad...

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

2066. laya 构建ios项目的UIWebview问题 [ 52%]

...注 | 3 ... nm libconch.a | grep UIW                  U _OBJC_CLASS_$_UIWebView 0000000000002620 s l_OBJC_$_PROTOCOL_INSTANCE_METHODS_OPT_UIWebViewDelegate 0000000000002688 s l_OBJC_$_PROTOCOL_METHOD_TYPES_UIWebViewDelegate 0000000000002608 s l_OBJC_$_PROTOCOL_REFS_UIWebViewDelegate 00000...

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

2067. 对象池 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...的类。 * @return 此类型标识的一个对象。 */ static getItemByClass<T>(sign: string, cls: new () => T): T { if (!Pool._poolDic[sign]) return new cls(); var pool = Pool.getPoolBySign(sign); if (pool.length) { var rst = pool.pop(); rst[Pool.POOLSIGN] = false; } else { rst = new cls...

来源: Laya3.0_文档 发布时间: 20251010

2068. laya.resource.BaseTexture_API3.0 [ 52%]

...ternals Only exported Menu Globals "laya/resource/BaseTexture" BaseTexture Class BaseTexture BaseTexture 纹理的父类,抽象类,不允许实例。 Hierarchy Resource BaseTexture NativeRenderTexture2D RenderTexture2D RenderTexture TextureCube Texture2DArray Texture2D VideoTexture Index Constru...

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

2069. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...itle预制体放到Box下 (动图3-5) 示例代码如下: const { regClass, property } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预...

来源: Laya3.0_文档 发布时间: 20251105

2070. 怎样将这个数组中的每一行数组打印出来,打印出来的数字是数字,字符串是字符串,不改变类型 [ 52%]

...有通过一个类的名字(字符串)来获取该类的方法?类似get class by name 服务端的数据怎么传到laya前端?laya前端又是如何接收后台的数据呢,后台传到laya的数据类型是什么? 通过绘制纹理生成的图片,改变scale时会出现图片不绘制...

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