大约有 225 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
... inspector 不知道如何配置使用。 export class SplitAtlasDialog extends IEditor.Dialog { async create() { let panel = IEditor.GUIUtils.createInspectorPanel(); let data = Editor.getSettings("SplitAtlasSetting").data; panel.allowUndo = true; panel.inspect(data, "SplitAtlasSetting"); this.co...
来源: Laya_社区 发布时间: 20250731
...完的文件叫 MyTestUI,在具体使用时可能这样用: MyTestView extends MyTestUI,然后在 MyTestView 中写具体显示逻辑; 如果不需要设计UI界面,整个界面通过代码拼成,这个时候 我们是直接继承自 Sprite (没有继承 View等)来写具体逻辑的...
来源: Laya_社区 发布时间: 20170929
...om "./ModelViewer"; import Scene = Laya.Scene; export default class Game3D extends Scene { constructor() { super(); //初始化引擎 Laya3D.init(0, 0); var scene_360 = Laya.loader.getRes("LayaScene_PUCHENG3D/Conventional/PUCHENG3D.ls") as Laya.Scene3D; Laya.stage.addChildAt(scene_360, 0); var camer...
来源: Laya_社区 发布时间: 20190813
... const { regClass, property } = Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件...
来源: Laya3.0_文档 发布时间: 20251010
..., 1.0); v_color = color;v_texcoord = texcoord;}`class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CON...
来源: Laya_社区 发布时间: 20180313
...理根节点去做相机跟踪 代码如下: export default class test extends Laya.Script { strWorldRoot:Laya.Sprite; constructor() { super(); } cameraPlayerOffset:Laya.Point=new Laya.Point(18,0); cameraOffset:Laya.Point=new Laya.Point(180,570); onEnable(): voi...
来源: Laya_社区 发布时间: 20231123
...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
...独立小模块,功能单一,建议用脚本方 */ public class GameUI extends TestSceneUI { public function GameUI():void { super(); //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene...
来源: Laya2.0_文档 发布时间: 20210715
...; input.inputElementYAdjuster = 1; return input } } } class ListItemRender extends Box { private label: Label; constructor() { super(); this.size(100, 20); this.label = new Label(); this.label.fontSize = 12; this.label.color = "#FFFFFF"; this.addChild(this.label); } public setLabel(value: string): v...
来源: Laya_示例 发布时间: 20251130
...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