大约有 558 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0037 秒)
Laya_社区(175) Laya2.0_示例(114) Laya2.0_api(91) Laya3.0_文档(87) laya_api(48) Laya_示例(24) Laya2.0_文档(16) Laya3.0_api(3)
...性了,例如,给Sprite添加纹理等,示例代码如下所示: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type : Laya.Sprite}) public spr: Laya.Sprite; onAwake(): void { this.spr.size(512, 313); //设置Sprite大小 this.spr.lo...
来源: Laya3.0_文档 发布时间: 20250103
...asses | Index | Frames No Frames IndexBuffer3DProperties | Methods | Constants Packagelaya.d3.graphicsClasspublic class IndexBuffer3DInheritanceIndexBuffer3D Buffer laya.resource.Resource IndexBuffer3D 类用于创建索引缓冲。 Public Properties Hide Inherited Public Properties Show Inhe...
来源: laya_api 发布时间: 20170929
...开发语言、LayaAirIDE让项目开发更高效。class UI_ProgressBar { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.A...
来源: Laya2.0_示例 发布时间: 20250313
...lass Shader3D Shader3D 类用于创建Shader3D。 Hierarchy Shader3D Index Constructors constructor Properties PERIOD_CAMERA PERIOD_CUSTOM PERIOD_MATERIAL PERIOD_SCENE PERIOD_SPRITE RENDER_STATE_BLEND RENDER_STATE_BLEND_CONST_COLOR RENDER_STATE_BLEND_DST RENDER_STATE_BLEND_DST_ALPHA RENDER_STATE_BLE...
来源: Laya3.0_api 发布时间: 20231102
...图1-4所示。 (动图1-3) (动图1-4) 1.3 脚本控制TextArea const { regClass, property } = Laya; @regClass() export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); ...
来源: Laya3.0_文档 发布时间: 20240910
...子节点。需要添加如下的示例代码,实现脚本控制Panel: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Panel }) public panel: Laya.Panel; //组件被激活后执行,此时所有节点和组件均已创建完...
来源: Laya3.0_文档 发布时间: 20240910
...(例如出生点与传送点)等需求。 代码设置示例如下: const { regClass, property } = Laya; @regClass() export default class DirectMove extends Laya.Script { declare owner: Laya.Sprite3D; private characterController: Laya.CharacterController; onAwake(): void { // 获取 角色控...
来源: Laya3.0_文档 发布时间: 20250310
...filename):8 Enable batch GL commands optimization! (no filename):8 running const: 22.53557300567627ms (no filename):8 ### App VNative ### Version: 1.10.3 Build 7/22/2020, 7:50:52 PM (no filename):8 running const: 32.08578100800514ms (no filename):8 Setup OES_vertex_array_object polyfill (no filename...
来源: Laya_社区 发布时间: 20200826
...开发语言、LayaAirIDE让项目开发更高效。class Timer_Interval { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.s...
来源: Laya2.0_示例 发布时间: 20250313
...语言、LayaAirIDE让项目开发更高效。class Sprite_NodeControl { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE...
来源: Laya2.0_示例 发布时间: 20250313