大约有 148 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0036 秒)
... { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { /** 设置单例 */ static instance: Main; constructor() { super(); Main.instance = this; } @property({ type: Laya.Sprite3D }) private target: Laya.Sprite3D; public animator: Laya.Animator; onAwake(): void { //获得...
来源: Laya3.0_文档 发布时间: 20241014
...时也不通过 代码: export default class Index extends Laya.Script { /* @prop {name: speed, tips: "速度", type: Number, default: 10} */ constructor() { super(); } onAwake() { console.log("场景渲染完...
来源: Laya_社区 发布时间: 20191227
...08* [Cannon.js](https://github.com/schteppe/cannon.js) :完全使用 JavaScript 编写的优秀 3D 物理引擎,包含简单的碰撞检测、各种形状的摩擦力、弹力、约束等功能。在LayaAir 2.7.0beta中,完成了对其基本功能的支持,并逐步在后续的版本中完...
来源: Laya2.0_文档 发布时间: 20210714
...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ViewStack }) public viewstack: Laya.ViewStack; @property({ type: Laya.Tab }) public tab: Laya.Tab; //组件被激活后执行,此时所有节点和组件均已创建完毕...
来源: Laya3.0_文档 发布时间: 20241014
...果等 /**古文脚本 */ export default class TextAncient extends Laya.Script { /** @prop {name:text, tips:"显示文本", type:String, default:"hello world"}*/ public text: string = "hello world"; /** @prop {name:color, tips:"字符串类型示例", type:String, default:"#0000ff"}*/ public color...
来源: Laya_社区 发布时间: 20191103
...gClass, property } = Laya; @regClass() export class UI_Dialog extends Laya.Script { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number = 5; private assets: any[]; private dialog: Laya.Dialog; constructor() ...
来源: Laya3.0_文档 发布时间: 20230303
...archKey":"Dialog", "props":{"width":1624,"sceneColor":"#000000","runtime":"script/view/dialogs/SettingDialog.js","height":750}, "nodeParent":-1, "maxID":4, "label":"Dialog", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":2, "child":[ { "x":15, "type":"Image", "searchK...
来源: Laya_社区 发布时间: 20200417
...ad property 'time' of undefined laya.d3.js:22278 at Animator.__proto._eventScript (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:22278:15) at Animator.__proto._updateEventScript (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:22315:11) at Animator.__proto._update (file:///F:/P...
来源: Laya_社区 发布时间: 20191026
... 大大大懒猫 • 2018-09-10 10:39 export class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); ...
来源: Laya_社区 发布时间: 20180814
...例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕...
来源: Laya3.0_文档 发布时间: 20241014