大约有 466 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0041 秒)
...None,也无法拖放! 代码如下: @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property(String) public text: string = ""; @property(Laya.Image) public image: Laya.Image = null; constructor() { s...
来源: Laya_社区 发布时间: 20230412
...转了添加了这个脚本的物体) > ```typescript class MonkeyScript extends Laya.Script3D { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation,...
来源: Laya2.0_文档 发布时间: 20210714
...例: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private mCurrIndex: number = 0; private mArmature: Laya.Skeleton; onStart() { console.log("Game start"); //加载内置骨骼动画资源 Laya.loader.load("skeleton/Dragon/Dragon.sk").then((templet: Laya....
来源: Laya3.0_文档 发布时间: 20240910
... import flash.events.Event; import flash.net.URLRequest; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.s...
来源: Laya_社区 发布时间: 20151123
... / 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 = false; ...OnAwake里面创...
来源: Laya_社区 发布时间: 20200217
... import flash.net.Socket; public class TestWebSocket extends Sprite { public var s:Socket; public function TestWebSocket() { s = new Socket(); var x:X...
来源: Laya_社区 发布时间: 20160810
... [*] [/*] [*] [/*] [*] [/*] [/list] [code]export default class DesertUI extends Laya.Scene { constructor() { super(); DesertUI.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("Desert.scene"); //初始化舞台 Laya.init(Laya.Bro...
来源: Laya_社区 发布时间: 20190321
...,就可以获取到觖发信息了 export default class PlayerController extends Laya.Script3D 2020-07-29 0 0 分享 微博 QZONE 微信 不懂就问 赞同来自: isKinematic=true,这个为true是没有碰撞检测的 2020-07-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...
来源: Laya_社区 发布时间: 20200728
...转了添加了这个脚本的物体) > ```typescript class MonkeyScript extends Laya.Script3D { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor(){ super(); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { (this.owner as Laya.Sprite...
来源: Laya2.0_文档 发布时间: 20210715
....dataSource; } module gamepublicspaceitem { export class PublicSpaceItem extends Laya.Box { public static BTN_ENTRER_CLICK:string = "BtnEnterClick"; public _publicSpaceData:datasheet.PublicSpaceData; private bg:Laya.Image; private btnEnter:Laya.Button; constructor() { ...
来源: Laya_社区 发布时间: 20170923