大约有 488 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0037 秒)
...: 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
...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
... _start和_update以及_lateupdate不执行是什么原因呢? class b extends Laya.Script{ _initialize(owner:Laya.Sprite3D){ super._initialize(owner); //加打印可以执行 } _start(state:Laya.RenderState):void{ //加打印不执行 } } ...
来源: Laya_社区 发布时间: 20180423
...t; import laya.events.Event; public class CombatRole extends BaseRole { private var _templet:Templet; public function CombatRole() { super(); initView(); } ...
来源: Laya_社区 发布时间: 20170204
...开发,修改源码会有问题): export default class GifView extends Laya.Clip { /** *开始帧位置 * * @private * @memberof GifView */ private frameIndex = 0; /** *结束帧位置 * ...
来源: Laya_社区 发布时间: 20201211
... 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
...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
...: ``` 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
... > 移动灯光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.t...
来源: Laya2.0_文档 发布时间: 20210715
... > 移动灯光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.t...
来源: Laya2.0_文档 发布时间: 20210715