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

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

681. 获取对象的名称 兼容问题 [ 75%]

... 获取对象的名称 兼容问题 获取类型的名称可以通过  class.name || class。toString().match(/function\s*([^(]*)\(/)[1];  但是获取对象的名称   对象.constructor.name 存在兼容问题 2017-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

682. [LayaAirIDE3]【插件开发】配置方式可以生成非常复杂的界面的部分疑惑 [ 74%]

...理界面时,有些 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

683. laya.events.KeyLocation [ 74%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames KeyLocationConstants Packagelaya.eventsClasspublic class KeyLocationInheritanceKeyLocation Object KeyLocation 类包含表示在键盘或类似键盘的输入设备上按键位置的常量。 KeyLocation 常数用在键...

来源: laya_api 发布时间: 20170929

684. laya.events.KeyLocation [ 74%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames KeyLocationConstants Packagelaya.eventsClasspublic class KeyLocationInheritanceKeyLocation Object KeyLocation 类包含表示在键盘或类似键盘的输入设备上按键位置的常量。 KeyLocation 常数用在键...

来源: Laya2.0_api 发布时间: 20190513

685. 后期处理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...可以通过代码来创建一个变色效果,示例如下: 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

686. laya.net.Downloader_API3.0 [ 74%]

...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

687. laya.d3.graphics.Vertex.VertexPositionTexture0 [ 74%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames VertexPositionTexture0Properties | Methods Packagelaya.d3.graphics.VertexClasspublic class VertexPositionTexture0InheritanceVertexPositionTexture0 ObjectImplements IVertex VertexPositionNormalTexture 类用于创建位...

来源: Laya2.0_api 发布时间: 20190513

688. laya.utils.Handler_API3.0 [ 74%]

...nherited Externals Only exported Menu Globals "laya/utils/Handler" Handler Class Handler Handler 是事件处理器类。 推荐使用 Handler.create() 方法从对象池创建,减少对象创建消耗。创建的 Handler 对象不再使用后,可以使用 Handler.recover() 将其回收到对象...

来源: Laya3.0_api 发布时间: 20231115

689. LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 [ 74%]

...项目时生成的内容不一致了 这是创建项目时的内容/**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

690. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 74%]

...编写代码如下: ```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