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

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

271. [LayaAirIDE3]2d相机打包后问题 [ 54%]

...r";  const { regClass, property } = Laya;  @regClass() export class Main extends Laya.Script {     @property({ type: Laya.Sprite })     public player: Laya.Sprite;      @property({ type: Laya.Sprite })     public joystick: Laya.Sprite;      @property({ type: Laya.Sprite })     public...

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

272. Laya List给子元素添加事件后,滚动事件被劫持了 [ 54%]

...toreTxList);     悬赏找大神看问题 export default class StoreItem extends Laya.Box { constructor() { super(); this.size(195, 210); }  } 附件 : --> ListDemo.zip 2019-07-11 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

273. 关于新手引导 [ 54%]

...; import laya.utils.Browser; import laya.utils.HitArea; public class KouTu extends Sprite { private var box:Sprite; private var interactionArea:Sprite; private var maskArea:Sprite; private var guideContainer:Sprite; private var gameContainer:Sprite; public function KouTu() { super(); //绘制一个...

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

274. 运行总报TypeError: Object prototype may only be an Object or null: undefined [ 54%]

...be an Object or null: undefined at setPrototypeOf (<anonymous>) at __extends (file:///C:/Users/Administrator/Documents/Game3/bin/js/UIModule.js:6:9) at file:///C:/Users/Administrator/Documents/Game3/bin/js/LoadingModule.js:17:5 at file:///C:/Users/Administrator/Documents/Game3/bin/js/LoadingMo...

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

275. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 54%]

...g.ILogger;     import org.as3lib.logging.Log;       public class Game extends Sprite     {         CONFIG::debug         {             private static var logger:Logger = new Logger();               private var log:ILogger;         }           public function Game...

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

276. 用Socket连接服务器,服务端显示已经有登录,但Event.OPEN没有触发 [ 54%]

...import laya.utils.Byte;               public class CConnector extends Socket     {         protected var sendBuf:Byte = null;         protected var recvBuf:Byte = null;                  public function CConnector()         {          ...

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

277. [LayaAir3]如何在3D场景添加文字呢 [ 54%]

...用 ui3d.sprite 获取 prefab 的根节点.   export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { let sprite3d: Laya.Sprite3D = this.scene3D.getChildByName("m_Sprite3D"); let ui3d: Laya.UI3D = sprite3d.getComponent(Laya.UI3D); let ui3d_root: Laya.Sprite = ui3d.sprite; console.l...

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

278. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 54%]

...e.components.Box; import morn.core.handlers.Handler; public class ListView extends ListViewUI { public function ListView() { super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender); } private func...

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

279. Laya如何处理类与类之间的依赖关系 [ 54%]

...处理到……var classPattern = /\b(?:interface|class)\b\s+(\w+)(?:\s*(?:extends|implements)\s*((?:(?:(?:\w+\.)*(?:\w+)),?\b)+))?/; var modeuleHelp = /\b(?:namespace|module)\b\s+((?:\w\.?)+)/; var importHelp = /\bimport\b.*?=\s*((?:\w+\.?)+)/ //.exec(str)[1] var interfaceHelp = /\bimplements\b\s+(...

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

280. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 54%]

...rotation旋转之后检测不了碰撞   附上代码  class FishPonds extends Laya.Sprite { public are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.h...

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