大约有 2,995 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1062) Laya3.0_api(668) Laya2.0_api(366) laya_api(298) Laya2.0_文档(230) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(107)
... 获取对象的名称 兼容问题 获取类型的名称可以通过 class.name || class。toString().match(/function\s*([^(]*)\(/)[1]; 但是获取对象的名称 对象.constructor.name 存在兼容问题 2017-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20170804
...理界面时,有些 inspector 不知道如何配置使用。 export class SplitAtlasDialog extends IEditor.Dialog { async create() { let panel = IEditor.GUIUtils.createInspectorPanel(); let data = Editor.getSettings("SplitAtlasSetting").data; panel.allowUndo = true; panel.inspect(data, "SplitAt...
来源: Laya_社区 发布时间: 20250731
API DocumentationAll Packages | All Classes | Index | Frames No Frames KeyLocationConstants Packagelaya.eventsClasspublic class KeyLocationInheritanceKeyLocation Object KeyLocation 类包含表示在键盘或类似键盘的输入设备上按键位置的常量。 KeyLocation 常数用在键...
来源: laya_api 发布时间: 20170929
API DocumentationAll Packages | All Classes | Index | Frames No Frames KeyLocationConstants Packagelaya.eventsClasspublic class KeyLocationInheritanceKeyLocation Object KeyLocation 类包含表示在键盘或类似键盘的输入设备上按键位置的常量。 KeyLocation 常数用在键...
来源: Laya2.0_api 发布时间: 20190513
...可以通过代码来创建一个变色效果,示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //获取节点 @property(Laya.Sprite) public sp: Laya.Sprite; onAwake(): void { //创建后期处理实例 this.sp.postProcess = new Laya.PostPro...
来源: Laya3.0_文档 发布时间: 20251010
...ited Externals Only exported Menu Globals "laya/net/Downloader" Downloader Class Downloader Hierarchy Downloader Index Properties httpRequestPool Methods audio common image imageWithBlob imageWithWorker Properties httpRequestPool httpRequestPool: Array<HttpRequest> = [] Defined in laya/net/Dow...
来源: Laya3.0_api 发布时间: 20231115
API DocumentationAll Packages | All Classes | Index | Frames No Frames VertexPositionTexture0Properties | Methods Packagelaya.d3.graphics.VertexClasspublic class VertexPositionTexture0InheritanceVertexPositionTexture0 ObjectImplements IVertex VertexPositionNormalTexture 类用于创建位...
来源: Laya2.0_api 发布时间: 20190513
...nherited Externals Only exported Menu Globals "laya/utils/Handler" Handler Class Handler Handler 是事件处理器类。 推荐使用 Handler.create() 方法从对象池创建,减少对象创建消耗。创建的 Handler 对象不再使用后,可以使用 Handler.recover() 将其回收到对象...
来源: Laya3.0_api 发布时间: 20231115
...项目时生成的内容不一致了 这是创建项目时的内容/**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import GameUI from "./script/GameUI" import GameControl from "./script/GameControl" import Bullet from "./script/Bullet" import DropBox ...
来源: Laya_社区 发布时间: 20181001
...编写代码如下: ```java package { import laya.display.Sprite; public class Main { public function Main() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" var img:Sprite = new Sprite(); //加载显示图片,坐标位于100,50 img.loadImage("res/i...
来源: Laya2.0_文档 发布时间: 20210715