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

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

341. 怎样清除图片 [ 57%]

...:39 那你能具体描述一下么 matthew_liu • 2018-03-20 17:49 就是 const image: Laya.Image = new Laya.Image('url_of_image'), 过段时间我想清除image对象中加载的图片,但是不要delete 这个image对象。 matthew_liu • 2018-03-20 17:51 这是一个很常见的需求 -- 给i...

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

342. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...口中。需要添加如下的示例代码,实现脚本控制ComboBox: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ComboBox }) public combobox: Laya.ComboBox; //组件被激活后执行,此时所有节点和组件均已...

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

343. 区块地图-等角地图 [ 57%]

...言、LayaAirIDE让项目开发更高效。class TiledMap_IsometricWorld { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(1600, 800, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...

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

344. 复选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...口中。需要添加如下的示例代码,实现脚本控制CheckBox: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.CheckBox }) public checkbox: Laya.CheckBox; //组件被激活后执行,此时所有节点和组件均已...

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

345. shader 数组长度问题 [ 57%]

...858 赞同来自:  unifrom 有长度限制  ios  最多128个vec4;   const mediump int gl_MaxVertextUniformVectors>=128 你可以把数据写到在图上 提交图片,读图 2020-03-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

346. Windows扩展 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...: interface ITestLib { nativeAdd(a: number, b: number): number; } export const testLib: ITestLib = Laya.importNative("LayaExt.dll"); 接着在组件脚本Main.ts中添加代码: import { testLib } from "./TestLib"; const { regClass, property } = Laya; @regClass() export class Main extends Laya.S...

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

347. laya.display.cmd.DrawTextureCmd [ 57%]

...sses | Index | Frames No Frames DrawTextureCmdProperties | Methods | Constants Packagelaya.display.cmdClasspublic class DrawTextureCmdInheritanceDrawTextureCmd Object 绘制单个贴图 Public Properties PropertyDefined By  alpha : Number (可选)透明度。 DrawTextureCmd  blendMod...

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

348. laya.d3.core.light.LightSprite [ 57%]

... Index | Frames No Frames LightSpriteProperties | Methods | Events | Constants Packagelaya.d3.core.lightClasspublic class LightSpriteInheritanceLightSprite Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses DirectionLight, PointLight, SpotLight LightSprite 类用于创建灯光的...

来源: laya_api 发布时间: 20170929

349. 屏幕适配-对齐模式 [ 57%]

...目开发更高效。let numLoaded = 0; class SmartScale_Align_Contral { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(100, 100, WebGL); Laya.stage.alignV = Stage.ALI...

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

350. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...性入口中。下面给出一个示例代码,实现脚本控制Clip: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Clip }) public clip: Laya.Clip; //组件被激活后执行,此时所有节点和组件均已创建完毕,...

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