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

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

231. [LayaAir3]Laya.loader.loadPackage 加载勾选版本管理的子包失败 [ 56%]

...: const { regClass, property } = Laya; @regClass() export class StartScene extends Laya.Script { onAwake(): void { Laya.timer.once(1000, this, () => { Laya.loader.loadPackage("common", "http://127.0.0.1:2840", (p) => { console.log("common", p); }) }); } } 2024-11-04 0 0 分享 微博 QZONE 微...

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

232. 动画状态脚本(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 56%]

...ateScript(动画状态脚本) export default class AnimatorStateScriptTest extends Laya.AnimatorStateScript { private _text:Laya.Text; constructor() { super(); } get text():Laya.Text { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ onStateEnter()...

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

233. Laya.Script _start和_update以及_lateupdate不执行是什么原因呢? [ 56%]

... _start和_update以及_lateupdate不执行是什么原因呢?  class b extends Laya.Script{    _initialize(owner:Laya.Sprite3D){      super._initialize(owner);      //加打印可以执行    }        _start(state:Laya.RenderState):void{       //加打印不执行     } }   ...

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

234. 解析sk资源报错 [ 56%]

...t;     import laya.events.Event;          public class CombatRole extends BaseRole     {         private var _templet:Templet;         public function CombatRole()         {             super();             initView();         }           ...

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

235. Clip组件Bug:Play方法无法结束循环 [ 56%]

...开发,修改源码会有问题): export default class GifView extends Laya.Clip {     /**      *开始帧位置      *      * @private      * @memberof GifView      */     private frameIndex = 0;     /**      *结束帧位置      * ...

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

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

... 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.pos( 300,300)...

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

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

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

238. [LayaAir3]脚本集怎么用? [ 56%]

...: ``` 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" 为分包目录名称 console.log(`isSuccess: ${isSuccess}...

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

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

... > 移动灯光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.t...

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

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

... > 移动灯光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.t...

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