• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 228 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)

121. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 64%]

...脚本方式实现,比如子弹脚本。 */ 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

122. 编辑模式下的赋值不保留? [ 64%]

... • 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

123. ScrollRect设置会引起其他的UI资源无法正在显示 [ 64%]

...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

124. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 64%]

...下:   /**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

125. 基础使用与构成 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...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

126. 报错:找不到基类Object的定义 以及 XXX不是动态类XML的可识别方法 [ 63%]

...同来自: 你好       找不到基类Object的定义,请将该类extends Sprite即可      XML报错,layaAir下的XML不再是原生的XML,而是集成了JS下的XMLDom,具体使用方法,请参考原生js下的XMLDom。   2016-07-11 0 0 分享 微博 QZONE 微信 为什么被...

来源: Laya_社区 发布时间: 20160711

127. 切换后台时,引擎如何判断是否停止定时器? [ 63%]

...否停止定时器? 在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

128. List翻页效果 [ 63%]

...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

129. 2.4.0bate在放大缩小时文本会不同程度的模糊 [ 62%]

...一下内容:   在LayaAir.d.ts 中缺少    class AnimationState extends laya.ani.AnimationState {}    class AnimationState {         static stopped: number;         static paused: number;         static playing: number;         constructor();   ...

来源: Laya_社区 发布时间: 20191213

130. 使用 addChild 加载界面后,绑定事件报错 [ 62%]

...面图片的错误 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