大约有 3,031 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1088) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(108)
...需要添加如下的示例代码,实现脚本控制Panel: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Panel }) public panel: Laya.Panel; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方...
来源: Laya3.0_文档 发布时间: 20251010
...Laya.loader是null,为什么会出现为null的情况? 代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=...
来源: Laya_社区 发布时间: 20171124
...nter;padding-top: 30px;} </style> </head> <body> <div class="layaDiv"></div> <div class="msgDiv">日志</div> </body> <script src="https://cdn.bootcss.com/jquery ... gt%3B <script type="text/javascript" src="http://layaair.ldc.layabox.com ... ot%...
来源: Laya_社区 发布时间: 20170427
LayaFlash getQualifiedClassName和组件定义问题 1.flash.utils.getQualifiedClassName; 现有一个rect_mc, flash库的中链接类名为:Rect, 尝试.getQualifiedClassName(rect_mc)得到的是"iflash.display::MovieClip"而不是"Rect".虽说不支持链接类,但是很多时候写这个类名...
来源: Laya_社区 发布时间: 20160407
API DocumentationAll Packages | All Classes | Index | Frames No Frames UtilsProperties | Methods Packagelaya.utilsClasspublic class UtilsInheritanceUtils Object Utils 是工具类。 Public Properties PropertyDefined By parseXMLFromString : Function[static] 将字符串解析成 XML 对...
来源: Laya2.0_api 发布时间: 20190513
API DocumentationAll Packages | All Classes | Index | Frames No Frames PhysicsComponentProperties | Methods Packagelaya.d3.physicsClasspublic class PhysicsComponentInheritancePhysicsComponent Component ObjectSubclasses CharacterController, PhysicsTriggerComponent PhysicsComponent 类用于...
来源: Laya2.0_api 发布时间: 20190513
...a.Handler; import Browser= Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_SwitchTexture { private texture1: string = "../../res/apes/monkey2.png"; private texture2: string = "../../res/apes/monkey3.png"; private flag: boolean = false; private ape: Sprite; constructor() { // 不支持We...
来源: Laya_示例 发布时间: 20251209
...可以在VBox下添加一些子节点。示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VBox }) public vbox: Laya.VBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只...
来源: Laya3.0_文档 发布时间: 20251010
...ned错误 Cannot read property 'displayObject' of null Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 构建APP Android Studio打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function 关于graphics.drawTexture方法设置纹理报错TypeErr...
来源: Laya_社区 发布时间: 20200309
....Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_MagnifyingGlass { private maskSp:Sprite; private bg2:Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stag...
来源: Laya_示例 发布时间: 20251209