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

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

11. 像素线 · LayaAir3.0文档 · LAYABOX [ 64%]

...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_文档 发布时间: 20240624

12. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 59%]

... @property( { type : String } ) public text: string = ""; constructor() { super(); } } 5、Runtime的使用差异 3.0的场景与2.0完全不是一个概念, 3.0的runtime只能在场景上的2D根节点Scene2D或预制体的根节点上设置,其它的子级节点,不再支持runtime,如果...

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

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

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

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

14. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 57%]

... = target.angel.level; // 构造 function IsLand() { // 初始化 IsLand.__super.call(this); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体 t...

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

15. UI运行时 · LayaAir3.0文档 · LAYABOX [ 55%]

... { console.log("Game start"); this.ui = this.owner.scene as RuntimeScript; super.baseUI(this.ui); } } import { Main } from "./Main"; import { ButtonRuntime } from "./ButtonRuntime"; const { regClass, property } = Laya; @regClass() export class ButtonScript extends Main { private ui: ButtonRuntime; o...

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

16. 单选框组组件 · LayaAir3.0文档 · LAYABOX [ 54%]

... 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_文档 发布时间: 20231012

17. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 53%]

...ne: Laya.Scene3D = new Laya.Scene3D; speed: number = 0.01; constructor() { super(); } /** * @private */ protected _updateRotation(): void { if (Math.abs(this.yawPitchRoll.y) < 1.50) { Laya.Quaternion.createFromYawPitchRoll(this.yawPitchRoll.x, this.yawPitchRoll.y, this.yawPitchRoll.z, this.tempRo...

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

18. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 52%]

...ypeError: this.preinitialize is not a function            !1,i.__super.call(this),this._layout=B.EMPTY,this.preinitialize(),this.createChildren(),this.initial            TypeError: this.preinitialize is not a function                at i (http://stand.alone.version/...

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

19. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 51%]

... class DemoPreviewPlugin extends IEditorEnv.AssetPreview { constructor() { super(); this.sprite.graphics.drawCircle(100, 100, 50, "#ffff00"); this.sprite.size(100, 100); } async setAsset(asset: IEditorEnv.IAssetInfo): Promise<any> { this.renderTarget = this.sprite; } } 显示效果如下: ...

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

20. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 47%]

...enParticleSystem: Array<ShurikenParticleSystem>= []; constructor() { super(); } //通过传入粒子特效的路径,创建一个粒子特效,从对象池里拿一个 static Create(path: string): Particle3D { var ret:Particle3D = Pool.getInstance().getItemByClass("Particle3D@" + path, Parti...

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