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

大约有 2,861 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0077 秒)

1101. laya.d3.core.particleshuriken.module.shape.SphereShape_API3.0 [ 66%]

...rs constructor Properties emitFromShell enable radius randomDirection shapeType Methods clone cloneTo generatePositionAndDirection Constructors constructor new SphereShape(): SphereShape Overrides BaseShape.constructor Defined in laya/d3/core/particleShuriKen/module/shape/SphereShape.ts:14 创建一...

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

1102. laya.d3.core.particleshuriken.module.shape.HemisphereShape_API3.0 [ 66%]

...rs constructor Properties emitFromShell enable radius randomDirection shapeType Methods clone cloneTo generatePositionAndDirection Constructors constructor new HemisphereShape(): HemisphereShape Overrides BaseShape.constructor Defined in laya/d3/core/particleShuriKen/module/shape/HemisphereShape.ts:...

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

1103. laya.ui.Panel [ 66%]

...域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY : Number[read-only] 返回鼠标在此对象坐标系...

来源: laya_api 发布时间: 20170929

1104. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...,资源商店也一般不允许这类插件上架。 在项目的engine/types目录,有三个与编辑器插件开发相关的声明文件,editor.d.ts, editor-ui.d.ts, editor-env.d.ts,他们包含了大量编辑器的扩展API。 editor.d.ts 是编辑器UI进程的API。常用的是全局对...

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

1105. Laya.URL.basePath加载不到网络资源 [ 66%]

...加载不到网络资源 var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/background.png", type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));  ...

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

1106. websocket连接出错 [ 66%]

... function(data){ console.log(data); }); }); 自己写的html页面 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> </body> <script type="text/javascript" src="js/jquery-3.1.1.min.js" ></script> <...

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

1107. laya.ani.bone.canvasmesh.SkinMeshForGraphic_API3.0 [ 66%]

...Transform uvTransform uvs vertices getBounds init2 Legend Class Class with type parameter Constructor Property Method Object literal Variable Function Type alias Inherited property Inherited method Enumeration Interface

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

1108. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 66%]

...然后使用`scale`属性对地图进行缩放。 示例代码如下: ```typescript //初始化舞台 Laya.init(Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya.Rectangle(0,0,L...

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

1109. 场景管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Even...

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

1110. 小游戏对读取json文件有要求吗?为啥说读取json文件错误啊 [ 66%]

...或拓展 public static var getUrlAndEncode:Function = function(url:String,type:String):String { if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "ascii"; } 2018-01-15 0 0 分享 微博 QZONE 微信 liwenhua 赞...

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