大约有 53 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
...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
...例子 还有发现 layaedotor.d.ts 里面的GraphicAnimation找不到 declare module laya.editorUI { /** * Graphics解析器 */ // class GraphicParser extends laya.display.GraphicAnimation { // protected _getTextureByUrl(url: string): string; // ...
来源: Laya_社区 发布时间: 20170817
...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
...用视频纹理 */ @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
...} = 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
...毅 赞同来自: 可以再LayaAir.d.ts的(例如我自己的BaseView) declare module Laya{//在这个module里添加 class BaseView extends Scene{}//继承自Scene }里加上自己定义的页面,然后在编辑页面F9的Code导入类里写上引用和赋值 import BaseView from "...
来源: Laya_社区 发布时间: 20190417
...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
使用layaide进行打包,提示如下错误。 Block-scoped declarations (let, const, function, class) not yet supported outside strict mode 网上搜索答案,有的说是因为在tsconfig中,将target调整成了es6就不可以运行了,但是我的代码使用了一些es6的特性,...
来源: Laya_社区 发布时间: 20170604
...如下: @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
... 删掉 这样就和Laya库的格式比较像 只是多了个命名空间declare namespace autobahn { export class Session { id: number; realm: string; isOpen: boolean; features: any; ..................................然后在ts文件中 new autobahn.引用华丽丽的出现了 如果谁有更...
来源: Laya_社区 发布时间: 20180805