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

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

341. laya.ui.ComboBox [ 82%]

...s Packagelaya.uiClasspublic class ComboBoxInheritanceComboBox UIComponent Sprite Node EventDispatcher Object ComboBox 组件包含一个下拉列表,用户可以从该列表中选择单个值。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined B...

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

342. laya.ui.List [ 82%]

... Events Packagelaya.uiClasspublic class ListInheritanceList Box Component Sprite Node EventDispatcher ObjectImplements IRender, IItem List 控件可显示项目列表。默认为垂直方向列表。可通过UI编辑器自定义列表。 Public Properties Hide Inherited Public Properties Show Inher...

来源: laya_api 发布时间: 20170929

343. 滤镜-发光滤镜 [ 82%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var GlowFilter = Laya.GlowFilter; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var apePath = "../../res/apes/monkey2.p...

来源: Laya_示例 发布时间: 20251209

344. List组件 repeat(x/y)设置问题 [ 82%]

...解决的? 使用钢体设置防穿后仍有几率会穿透 如何设置Sprite的宽高和点击区域? 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined View嵌套Dialog组件 横屏模式在锁定竖屏的iphone上不能正常显示的问题 Li...

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

345. sound manager在MOUSE_OVER事件中无法播放 [ 82%]

...后播放一个音效,求解决方案。 module laya {     import Sprite = Laya.Sprite;     import Stage = Laya.Stage;     import Text = Laya.Text;     import Event = Laya.Event;     import SoundManager = Laya.SoundManager;     import Browser = Laya.Brow...

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

346. 如何启用摇一摇 [ 82%]

...功能。   以下示例可最为参考: package { import flash.display.Sprite; import flash.events.AccelerometerEvent; import flash.sensors.Accelerometer; import flash.text.TextField; import flash.text.TextFieldAutoSize; public class Shake_A_Shake extends Sprite { private var acc1:Accelerometer;...

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

347. 滤镜-发光滤镜 [ 82%]

...; } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y ...

来源: Laya2.0_示例 发布时间: 20251209

348. laya.ui.TextInput [ 82%]

...gelaya.uiClasspublic class TextInputInheritanceTextInput Label UIComponent Sprite Node EventDispatcher ObjectSubclasses TextArea TextInput 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By a...

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

349. 对staticCache的疑问 [ 82%]

... 2017-11-20 0 3 分享 微博 QZONE 微信 hujian0318 赞同来自: var sp:Sprite = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#ffff00"); Laya.stage.addChild(sp); sp.x = 50; trace(sp.x); // 输出50 sp.cacheAs = "bitmap"; sp.staticCache = true; sp.x = 100; trace(sp.x); // 输出100,且编...

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

350. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

...url, Laya.Loader.IMAGE).then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; this.owner.addChild(sp); }); } } 常用类型如下: 引擎全局变量 类型标识字符串 类型说明 Laya.Loader.TEXT text 文本类型 Laya.Loader.JSON json JSON类型 Laya.Loader.XML xml ...

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