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

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

351. 网格像素线 · LayaAir3.4 · 引擎文档 · LAYABOX [ 56%]

...name 名字。 */ constructor(maxCount: number = 2, name: string = null) { super(name); this._render = this.addComponent(PixelLineRenderer); this._geometryFilter = (this._render as PixelLineRenderer)._pixelLineFilter; (this._render as PixelLineRenderer).maxLineCount = maxCount; let material = this._...

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

352. 窗口组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 56%]

...Window.modal = true; class MyWindow extends Laya.GWindow { constructor() { super(); this.modal = true; } } 当模态窗口显示时,模态窗口背后可以自动覆盖一层灰色的颜色,这个颜色可以自定义: Laya.UIConfig2.modalLayerColor = "#333333"; 当点击窗口的关闭按钮...

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

353. 关于实例化 动画特效.efc 文件的问题 [ 56%]

...时候报错: 具体是layaUI.max.all.js里的这一行:effect01UI.__super.call(this); TypeError: Cannot read property 'call' of undefined   请问我应该怎么实例化 effectAnimation.efc 这种模板?   2018-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

354. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 55%]

... var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var L...

来源: Laya2.0_文档 发布时间: 20210714

355. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 55%]

... = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(this.img); } public setImg(src: string): void { this.img.skin = src; } } } new laya.UI_List(); ```

来源: Laya2.0_文档 发布时间: 20210715

356. 请问 layaair2.0的js有没有api可以查询 例如Laya.Script [ 55%]

...码 如下 export default class btn1 extends Laya.Script { constructor(){super();} onEnable(){} onClick(){ alert("id="+this.id); //这里有一个id,但是系统自动生成的,无法获知这个id代表哪个按钮被点(因为我有4个按钮都绑了这个js) alert("name="+this.name); //...

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

357. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 55%]

...MonkeyScript extends Laya.Script3D{     constructor(){         super();         this.scene = null;         this.text = null;         this.camera = null;         this.lastPosition = new Laya.Vector2(0, 0);         this.distance = 0.0;        ...

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

358. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 55%]

...operty({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或spr...

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

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

...e = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<le...

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

360. 单选框组容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 55%]

... 200; private Y_OFFSET: number = 80; private skins: any[]; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.skins = ["resources/res/ui/radioButton (1).png", "resources/res/ui/radioButton (2).png",...

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