大约有 228 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super(); //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventiona...
来源: Laya_社区 发布时间: 20190426
... • 2018-10-25 14:56 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖为预制体 放在...
来源: Laya_社区 发布时间: 20181025
...ge; import laya.utils.Handler; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a...
来源: Laya_社区 发布时间: 20171113
...下: /**Created by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和属性 videoElmt.s...
来源: Laya_社区 发布时间: 20180802
...ted"; const { regClass, property } = Laya; @regClass() export class Script extends ItemBoxBase { constructor() { super(); } get dataSource(): any { return super.dataSource; } set dataSource(value: any) { super.dataSource = value; if (!value) return; //把数据源里的值,给到子节点属性 if...
来源: Laya3.0_文档 发布时间: 20251010
...同来自: 你好 找不到基类Object的定义,请将该类extends Sprite即可 XML报错,layaAir下的XML不再是原生的XML,而是集成了JS下的XMLDom,具体使用方法,请参考原生js下的XMLDom。 2016-07-11 0 0 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20160711
...否停止定时器? 在pc上时,做个简单的测试, class TestUI extends ui.test.TestPageUI { constructor() { super(); this.stage.on(Laya.Event.FOCUS, this, this.onFocus); this.stage.on(Laya.Event.BLUR, this, this.onBlur); ...
来源: Laya_社区 发布时间: 20180724
...fo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateIte...
来源: Laya_社区 发布时间: 20171202
...一下内容: 在LayaAir.d.ts 中缺少 class AnimationState extends laya.ani.AnimationState {} class AnimationState { static stopped: number; static paused: number; static playing: number; constructor(); ...
来源: Laya_社区 发布时间: 20191213
...面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartUI { constructor() { super(); this.btnStart.on(Laya.Event.CLICK, this, this.startGame); } startGame(): void { //Laya.Scene.open("Ga...
来源: Laya_社区 发布时间: 20190510