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

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

2141. 鼠标事件能否在有图形的区域感应,特别是子项坐标为负数时(已经找到问题) [ 51%]

...) package { import laya.display.Sprite; import laya.events.Event; public class MainUi extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild( testPan ); testPan....

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

2142. laya.ui.UIEvent [ 51%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames UIEventProperties | Methods | Constants Packagelaya.uiClasspublic class UIEventInheritanceUIEvent Event Object UIEvent 类用来定义UI组件类的事件类型。 Public Properties Hide Inherited Public Properties Show...

来源: laya_api 发布时间: 20170929

2143. Uncaught RangeError:Array buffer allocation failed [ 51%]

...or: Cannot read property 'cursor' of undefined错误 Uncaught Can not find class Laya.Text 【求助大神】在目标scene中添加2d的多边形刚体后,跳转该页面启动时报Uncaught Error at Object.box2d.b2Assert (laya.physics.js:38) 问题状态 最新活动: 2019-09-06 09:07 浏览: 34...

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

2144. new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor [ 51%]

new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor class GameMain{ private tMap:Laya.TiledMap; constructor() { Laya.init(Laya.Browser.width, 224, Laya.WebGL); this.tMap = new Laya.TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("../bin/res/Mari...

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

2145. [LayaAir3]laya3.3图集使用平铺功能后绘制错误内容 [ 51%]

...2025-08-01 0 0 分享 微博 QZONE 微信 159*****398 赞同来自: export class Main extends Laya.Scene {     onAwake(): void {         Laya.loader.load("/未命名.atlas", Laya.Loader.ATLAS).then(data=>{             let aaa = new Laya.Sprite();             this.addChild(aaa); ...

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

2146. 网络和格式-XML [ 51%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Network_XML { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.he...

来源: Laya2.0_示例 发布时间: 20260303

2147. socket大型项目回调 [ 51%]

...型项目回调 /** * 创建时间 2017/04/16 */ module PomeloLaya{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; pri...

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

2148. [LayaAir3]脚本集怎么用? [ 51%]

... 在 Main.ts 的 onStart 方法中。动态加载脚本集: ``` const { regClass, property } = Laya;  @regClass() export class Main extends Laya.Script {  async onStart() { console.log("Game start"); // 手动加载脚本集 const isSuccess = await Laya.loader.loadPackage("GScript"); // "GScript" ...

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

2149. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 51%]

...的代码来做讲解: > 移动灯光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpd...

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

2150. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 51%]

...的代码来做讲解: > 移动灯光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpd...

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