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

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

21. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...perty } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let opendata = new Laya.OpenDataContextV...

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

22. button 按下放缩特效 [ 55%]

...例子 还有发现 layaedotor.d.ts 里面的GraphicAnimation找不到   declare module laya.editorUI {     /**      * Graphics解析器      */     // class GraphicParser extends laya.display.GraphicAnimation {     //     protected _getTextureByUrl(url: string): string;     //   ...

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

23. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...perty } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let video = new Laya.VideoNode; //添加...

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

24. 视频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...用视频纹理 */ @regClass() export class Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D...

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

25. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...} = Laya; @regClass() export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执...

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

26. 自定义页面基类的时候,会自动添加Laya命名空间导致报错 [ 52%]

...毅 赞同来自: 可以再LayaAir.d.ts的(例如我自己的BaseView) declare module Laya{//在这个module里添加     class BaseView extends Scene{}//继承自Scene }里加上自己定义的页面,然后在编辑页面F9的Code导入类里写上引用和赋值   import BaseView from "...

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

27. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

...3; indices[index++] = 1; indices[index++] = 2; indices[index++] = 3; const declaration = Laya.VertexMesh2D.getVertexDeclaration(["POSITION,UV"], false)[0]; const mesh2D = Laya.Mesh2D.createMesh2DByPrimitive([vertices], [declaration], indices, Laya.IndexFormat.UInt16, [{ length: indices.length, start...

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

28. 使用layaide进行打包,提示如下错误。 [ 51%]

使用layaide进行打包,提示如下错误。 Block-scoped declarations (let, const, function, class) not yet supported outside strict mode   网上搜索答案,有的说是因为在tsconfig中,将target调整成了es6就不可以运行了,但是我的代码使用了一些es6的特性,...

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

29. 升级到3.0-beta6无法选择资源了 [ 51%]

...如下: @regClass() export class NewScript extends Laya.Script {     //declare owner : Laya.Sprite3D;      @property(String)     public text: string = "";      @property(Laya.Image)     public image: Laya.Image = null;      constructor() {         super();     } } 附件 : -->...

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

30. 关于TS环境下的第三方库导入的疑问 [ 49%]

...  删掉 这样就和Laya库的格式比较像 只是多了个命名空间declare namespace autobahn { export class Session { id: number; realm: string; isOpen: boolean; features: any; ..................................然后在ts文件中 new autobahn.引用华丽丽的出现了   如果谁有更...

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