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

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

251. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 55%]

...emplet; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private skeleton: SpineSkeleton; private index: number = -1; public pageWidth: number; public pageHeight: number; onStart() { console.log("Game start"); Laya.loader.load("resources/res/spineboy-pma.skel"...

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

252. drawToCanvas绘制显示不全 [ 55%]

... 个回复 之肖 赞同来自: 测试代码 export default class TestView extends TestViewUI {     constructor() {         super();     }     onAwake() {         this.nativeImg = new Image();         let style = this.nativeImg.style;         style.position = 'absolute';     ...

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

253. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 55%]

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

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

254. 2d帧动画bug:编译运行会掉帧,编辑器不会掉帧,2.2.0版本以上都有这个问题 [ 55%]

...meAnimation._sortIndexFun == null)   代码如下: class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun == null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } }      2019-11-19 0 2 分享 微博 QZONE 微信 为...

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

255. Spine骨骼动画 · LayaAir3.0文档 · LAYABOX [ 54%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Sprite }) public sprite: Laya.Sprite; private spine: Laya.Spine2DRenderNode; private index: number = -1; //组件被激活后执行,此时所有节点和组件均已创建完毕,...

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

256. 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

257. 关于新手引导 [ 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

258. 运行总报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

259. 新手!谁懂得把下面两个文件转成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

260. 用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