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

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

2071. 预制体 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...itle预制体放到Box下 (动图3-5) 示例代码如下: const { regClass, property } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预...

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

2072. 怎样将这个数组中的每一行数组打印出来,打印出来的数字是数字,字符串是字符串,不改变类型 [ 52%]

...有通过一个类的名字(字符串)来获取该类的方法?类似get class by name 服务端的数据怎么传到laya前端?laya前端又是如何接收后台的数据呢,后台传到laya的数据类型是什么? 通过绘制纹理生成的图片,改变scale时会出现图片不绘制...

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

2073. IDE2.4+ vscode调试教程 [ 52%]

...据官方教程:FlashBuilder-LayaCompiler-运行提示"must set Document Class!" 问题状态 最新活动: 2019-12-05 12:51 浏览: 2515 关注: 6 人 A • 2019-12-25 18:19 调试需要生成maps https://ldc2.layabox.com/doc/% ... 3-0-7 A • 2019-12-25 18:21 不过现在laya官方已经出了vs...

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

2074. [LayaAirIDE3]getTextWidth报null is not an object (evaluating \'i.width\') [ 52%]

...ll 请问object层中添加的sprite怎么添加点击事件 Warning!,this class[MiniAdpter] already exist: Object {init: } Cannot read property 'displayObject' of null Getcomponent 报错Uncaught (in promise) TypeError: Right-hand side of 'instanceof' is not an object alertexception info: [Typeerro...

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

2075. (layabox2.0) layaUI.max.all.ts里的module ui前为什么要加export [ 52%]

...l.ts里的module ui前为什么要加export 这样会导致里面的export class不能识别,编译会出错 2018-10-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 151*****601 赞同来自: 加了这句就可...

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

2076. 报错,这不是个构造函数 "StartPage is not a constructor" [ 52%]

...nction(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",La...

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

2077. ColorPicker组件的皮肤制作标准是? [ 52%]

...ort laya.ui.ColorPicker;      import laya.utils.Handler;      public class ColorPicker_Example      {           public function ColorPicker_Example()           {               Laya.init(640, 800);//设置游戏画布宽高。               Laya.stage.bgColor = "#efef...

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

2078. 材质-BlinnPhong-反射贴图 [ 52%]

...(this.rotation, false); teapot2.transform.rotate(this.rotation, false); });class BlinnPhong_ReflectMap { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE...

来源: Laya_示例 发布时间: 20260303

2079. 为什么这个ui中给这个TextInput组件runtime属性绑定了一个类 [ 52%]

...个TextInput组件runtime属性绑定了一个类 绑定了这个类后, class TextInputEx extends Laya.TextInput constructor() { console.log("执行了"); super() ; } // 获取焦点 onFocus() : void { console.log("焦点进入"); // 是否缓存初始的文本提示字符串和文本颜色. if (...

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

2080. 真机下运行帧率不稳定 [ 52%]

...会有突然掉帧的现象,fast模式和slow模式都有这个问题  class Scene_Test { constructor() { super(); Laya.timer.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,...

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