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

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

421. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 40%]

...resFix: string, width: number, align: string = "left",padding: number=0) { super(); this.width = width; this.resFix = resFix; this._align = align; this._padding = padding; } /** * 字间距 */ public set padding(v: number){ if(v === this._padding){return;} this._padding = v; if(this.text){ this.crea...

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

422. localRotationEulerY旋转位置错误 [ 40%]

...ne3D;     private arr: any;     constructor() {         super();         this.arr = [];         this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;          //初始化照相机         var camera = this.newScene.addC...

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

423. 复选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

.../checkbox (5).png", "resources/res/ui/checkbox (6).png" ]; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.load(this.skins).then(() => { this.onCheckBoxSkinLoaded(); }); } private...

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

424. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 40%]

...册的字体起个名 private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapFont(); bitmapFo...

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

425. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 40%]

...。修改下CustomMaterial.js function CustomMaterial() { CustomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype.getDiffuseTexture = function () { return thi...

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

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

...(-0.05, 0, 0); translateD = new Laya.Vector3( 0.05, 0, 0); constructor() { super(); //添加3D场景 var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.scene3d = scene; //添加照相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as ...

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

427. 水平滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...egClass() export class UI_HScrollBar extends Laya.Script { constructor() { super(); } // 文本组件,用于显示滚动条的value值 public text: Laya.Text; // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 创建文本组...

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

428. 自己写了个label继承官方的label,出现了问题,求指导~ [ 39%]

... var _lx:int; private var _ly:int; public function Label(text:String="") { super(text); } public function get textFormat():TextFormat { return _textFormat; } public function set textFormat(value:TextFormat):void { _textFormat = value; font = _textFormat._font; fontSize = _textFormat._fontSize; color...

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

429. 垂直滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...egClass() export class UI_VScrollBar extends Laya.Script { constructor() { super(); } // 文本组件,用于显示滚动条的value值 public text: Laya.Text; // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 创建文本组...

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

430. UI加载完成后无法获取控件的大小——超详细版问题 [ 39%]

...aya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): ...

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