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

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

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

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

2073. 报错,这不是个构造函数 "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

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

2075. 材质-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_示例 发布时间: 20251219

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

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

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

2077. 真机下运行帧率不稳定 [ 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

2078. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 52%]

...真阅读文章,现在改成在具体的使用说明: 主域:public class LayaUISample { public function LayaUISample() { //微信小游戏适配库初始化 MiniAdpter.init(true,false); //初始化引擎 Laya.init(640, 480,WebGL); Laya.stage.scaleMode = Stage.SCALE_FIXED_HEIGHT; Laya.stage.bg...

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

2079. laya.maths.Rectangle [ 52%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames RectangleProperties | Methods | Constants Packagelaya.mathsClasspublic class RectangleInheritanceRectangle Object Rectangle 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度和高度定义的区...

来源: Laya2.0_api 发布时间: 20190513

2080. HTMLDivElement如何设置文本区域内可以上下拖动的效果 [ 52%]

...MLDivElement; import laya.maths.Rectangle; import laya.webgl.WebGL; public class HelloLaya { private var html:HTMLDivElement; public function HelloLaya() { Laya.init(600, 600,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(50,50,300,300,null,"#0000FF",2); Laya....

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