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

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

81. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 66%]

...</code> 是一个纹理处理类。 */ //class laya.resource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this.offsetX=0; /**...

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

82. UI-Tree [ 64%]

..."Box", "props": {"name": "render", "right": "0", "left": "0"}}; class Item extends Box { constructor() { super(); this.right = 0; this.left = 0; var selectBox: Clip = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox";//设置 selectBox 的name 为“selectBox”时...

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

83. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 64%]

...e.components.Box; import morn.core.handlers.Handler; public class ListView extends ListViewUI { public function ListView() { super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxList.array=arr; boxList.mouseHandler=new Handler(listRender); } private func...

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

84. socket.sent [ 64%]

...e.addChild(new Btn1 ());//加入舞台 } } new Game();       class Btn1 extends ui.v1UI{ public socket: Laya.Socket; public byte: Laya.Byte; constructor(){ super(); this.btn1.on(Laya.Event.CLICK,this,this.Btn1On); } Btn1On():void{ // socket.connect(“192.168.0.1.133”,8899); console.log("kjk"...

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

85. shader 问题[关闭] [ 64%]

..., 1.0);       v_color = color;v_texcoord = texcoord;}`class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CON...

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

86. layaMaxUI.ts的自动生成代码bug [ 64%]

...on = Laya.ClassUtils.regClass; export module ui { export class MainSceneUI extends Laya.SceneBase { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MainScene"); } } REG("ui.MainSceneUI",MainSceneUI); } 期待生成SceneBase, 结果仍然生成Laya.SceneBase  ...

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

87. UNITY导出的模型旋转不了 [ 63%]

...rotate(vect,false,false); //}); })); })); })(this); class BoxControlScript extends Laya.Script3D { constructor() { super(); this.obj = null; this.rotation = new Laya.Vector3(0, 1, 0); } /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行...

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

88. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 63%]

...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { scene3d:Laya.Scene3D; sp:Laya.Sprite3D; sp2:Laya.Sprite3D; translateA = new Laya.Vector3(-0.05, 0, 0); translateD = new Laya.Vector3( 0.05, 0, 0); constructor() { super(); //添加3D场景 var sce...

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

89. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 63%]

...18-05-08 0 0 分享 微博 QZONE 微信 Miller 赞同来自:   class Item extends Laya.Box {   public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = ne...

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

90. 【LIST无法拖动】参照官方实例做的 [ 62%]

...ox; import Image = Laya.Image; import Text = Laya.Text; class Item extends Box {     public static WID: number = 400;     public static HEI: number =40;     private text_guanqia: Text;     private text_guanqia_info: Text;      private img: Image;    ...

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