大约有 3,124 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0095 秒)
...; import Dialog=Laya.Dialog; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class MainSceneUI extends Laya.SceneBase { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MainScene"); } } REG("ui.MainSceneUI",MainSceneUI); } 期待生成Sc...
来源: Laya_社区 发布时间: 20190418
... Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { Laya.init(500, 300, WebGL); this.drawSomething()...
来源: Laya2.0_文档 发布时间: 20210715
...ic Step() { this.world.step(1 / 60); } 再把CANNON.Body包装成组件 export class CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean...
来源: Laya_社区 发布时间: 20200217
....app/ykmj normal x86_64 cd /Users/wxh/Desktop/layabox/ios/ykmj export IPHONEOS_DEPLOYMENT_TARGET=7.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/b...
来源: Laya_社区 发布时间: 20180122
...:24 浏览: 5311 关注: 3 人 懒货 • 2021-06-16 14:39 是把d.ts里的export改成declare吗,好神奇~为什么这样修改就好了,而github提供的别的ts使用却是export。不太理解 kura • 2021-06-17 17:46 @懒货:因为你已经从index.html导入过了 两种方式都可以...
来源: Laya_社区 发布时间: 20210610
...btn1.js 当点击它们无法获知,我点的是哪个,代码 如下 export default class btn1 extends Laya.Script { constructor(){super();} onEnable(){} onClick(){ alert("id="+this.id); //这里有一个id,但是系统自动生成的,无法获知这个id代表哪个按钮被点(因为我...
来源: Laya_社区 发布时间: 20181029
...现脚本控制Image: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Image }) public img: Laya.Image; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行...
来源: Laya3.0_文档 发布时间: 20251010
...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER...
来源: Laya2.0_文档 发布时间: 20210714
...o/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) LayaExport.DataManager.saveLaniData (UnityEngine.GameObject gameObject, .JSONObject obj) LayaExport.DataManager.getAnimatorComponentData (UnityEngine.GameObject gameObject, .JSONObject component, System.Collections.Generic.List`1...
来源: Laya_社区 发布时间: 20180125
...rt Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { Laya.init(500, 300, WebGL); this.drawSomething(); ...
来源: Laya2.0_文档 发布时间: 20210714