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

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

121. laya2.0如何自定义场景? [ 61%]

...知道后面如何操作了,有没教材? export default class UIScene extends laya.display.Scene{ } 2018-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 可以看看引擎默认...

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

122. 第一个hellolayabox就报错了,求助! [ 61%]

... flash.display.Sprite; import laya.display.Text; public class HelloLayabox extends Sprite { public function HelloLayabox() { trace("Hello,World"); //创建舞台,默认背景色是黑色的 Laya.init(600, 300); return; var txt:Text = new Text(); //设置文本内容 txt.text = "Hello Layabox"; //...

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

123. 这里是不是有点问题啊!说错别打我! [ 61%]

...点问题啊!说错别打我! js  1.7.11beta  laya.core.js 22行的__extend函数内的 g && Object.defineProperty(d, p, g); s && Object.defineProperty(d, p, s); 这里感觉是要复制属性,由于Object.defineProperty(d, p, g)里的g值是函数, Object.defineProperty无...

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

124. 新人求助:onStart赋值为什么在onUpdate会输出一次为空 [ 61%]

...什么在onUpdate会输出一次为空   export default class mtTest extends Laya.Script{          lab:Laya.Label;      onAwake():void{             }     onStart():void{                this.lab=this.owner as Laya.Label;         }      ...

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

125. 分享一个Shader版的CoolDown实现 [ 61%]

...mport Shader = laya.webgl.shader.Shader;     export class coolDownShader extends Shader {         /**          * 当前着色器的一个实例对象。          */         public static shader: coolDownShader = new coolDownShader();         constructor() {             ...

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

126. 封装类的时候 怎么在类中表示自身? [ 61%]

封装类的时候 怎么在类中表示自身? class BackGround extends Laya.Sprite{ constructor() { super(); new init(); function init() { var bg1 = new Laya.Sprite(); var bg2 = new Laya.Sprite(); //背景图 // box.loadImage("../bin/background.png"); // Laya.stage.addChild(box); bg1.loadImage("....

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

127. native ui is not defined [ 61%]

... 林龙 赞同来自: ts 编译后的 js 代码为:    class StarFlyUI extends ui.hall.HallViewUI {     2018-05-28 0 0 分享 微博 QZONE 微信 林龙 赞同来自: 用es5. 还是要靠自己 2018-05-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

128. tsc编译报错 [ 61%]

...题! 2017-03-01 0 0 分享 微博 QZONE 微信 jiye 赞同来自: 我在extends 后面多写了class 所以报了这个诡异的错 @xiaosong 2017-03-01 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jiye 相关问题 Layabox 2.0 bate5...

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

129. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tree }) public tree: Laya.Tree; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状列表的数...

来源: Laya3.0_文档 发布时间: 20251010

130. 加载UI不成功,项目源码已经上传 [ 61%]

...9 我截图的这个是源码 wudi199553 • 2017-11-13 19:48 class TestUI extends ui.test.TestPageUI { constructor() { super(); } } Laya.init(600, 400); Laya.stage.bgColor = "#FFFFF00"; this.onLoaded(); function onLoaded(): void { var testUI: TestUI = new TestUI(); Laya.stage.addChild(tes...

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