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

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

101. UI-List [ 81%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。const WID = 373, HEI = 85; const Box = Laya.Box; class Item extends Box { constructor(){ super(); const Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin =...

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

102. 求详细的打包教程 [ 81%]

...目中设置,Laya.stage.screenMode /**不更改屏幕。*/ public static const SCREEN_NONE:String = "none"; /**自动横屏。*/ public static const SCREEN_HORIZONTAL:String = "horizontal"; /**自动竖屏。*/ public static const SCREEN_VERTICAL:String = "vertical";2、加速器版本设置横竖...

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

103. 2D精灵光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 81%]

...cene2D节点后,加入下述代码,实现一个2D精灵光的效果: const { regClass, property } = Laya; @regClass() export class SpriteLight extends Laya.Script { @property({type: Laya.Sprite}) private spriteLight: Laya.Sprite; @property({type: Laya.Sprite}) private directLight: Laya.Sprite;...

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

104. 输入设备-摇一摇 [ 81%]

...picW = 824, picH = 484, console, shakeCount = 0; class InputDevice_Shake { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL); Laya.stage.alignV = Stage....

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

105. dialog的lock属性没出现 [ 81%]

...Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; private var assets:Array; public function DialogCenterClose() { // 不支...

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

106. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 81%]

...ction (effect) {     var GradientText = (function (_super) {         const style = {             DEFAULT: "default",             VERTICAL: "vertical",             HORIZONTAL: "horizontal",             TOP_LEFT: "topLeft",             TOP_RIGHT: "topRight",     ...

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

107. laya.d3.math.Native.ConchVector3 [ 80%]

...lasses | Index | Frames No Frames ConchVector3Properties | Methods | Constants Packagelaya.d3.math.NativeClasspublic class ConchVector3InheritanceConchVector3 ObjectImplements laya.d3.core.IClone Vector3 类用于创建三维向量。 Public Properties PropertyDefined By  elements : Float3...

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

108. UI-Button [ 80%]

...)(); function onUIAssetsLoaded() { for (var i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...

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

109. laya.display.Stage [ 79%]

...ses | Index | Frames No Frames StageProperties | Methods | Events | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage 单例访问...

来源: laya_api 发布时间: 20170929

110. 滤镜-模糊滤镜 [ 79%]

...发更高效。let apePath = "res/apes/monkey2.png"; class Filters_Blur { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stag...

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