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

大约有 1,546 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0058 秒)

1141. 单选框组组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

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

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

1142. laya.d3.core.render.command.CommandBuffer_API3.0 [ 50%]

...ted Menu Globals "laya/d3/core/render/command/CommandBuffer" CommandBuffer Class CommandBuffer CommandBuffer 用于创建命令流。 Hierarchy CommandBuffer Index Constructors constructor Accessors casterShadow context name Methods _apply _applyOne addCustomCMD blitScreenQuad blitScreenQuadByMat...

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

1143. Label属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 50%]

....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.Label)。 ​ Label 组件的资源示例: ​ ![图片0.png](img/1.png) ​ (图1) ​ Label组件拖放到编辑区后,设置 text 属性的值为 LayaAir IDE 后的显示效果如下: ​ ![图片0....

来源: Laya2.0_文档 发布时间: 20210714

1144. laya.d3.core.MeshTerrainSprite3D [ 50%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames MeshTerrainSprite3DProperties | Methods | Events Packagelaya.d3.coreClasspublic class MeshTerrainSprite3DInheritanceMeshTerrainSprite3D MeshSprite3D RenderableSprite3D Sprite3D Node EventDispatcher Object TerrainMeshSpr...

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

1145. 内置骨骼动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...用的,Laya.Templet 是用于处理资源 代码示例: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private mCurrIndex: number = 0; private mArmature: Laya.Skeleton; onStart() { console.log("Game start"); //加载内置骨骼动画资源 Laya.loade...

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

1146. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...的根节点上添加Runtime,添加逻辑代码如下: const { regClass } = Laya; import { BloodBarBase } from "./BloodBar.generated"; import { Main } from "./Main"; @regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya...

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

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

..., 求大大指点, 感激   附上渐变SVG文字的代码:   /** * this class is a extension of texts with gradient color  */ var effect; (function (effect) {     var GradientText = (function (_super) {         const style = {             DEFAULT: "default",             VERTICA...

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

1148. 无法触发浏览器文件上传框 [ 50%]

无法触发浏览器文件上传框 // 程序入口 class GameMain { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Ev...

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

1149. 多场景跳转遇到当前场景不能remove的问题 [ 50%]

...ndow.sceneSelectroommultiple); delete window.sceneSelectroommultiple; Laya.class(StartgameUI, "StartgameUI", startgameUI); var sceneStartgame = new StartgameUI(); window.sceneStartgame= sceneStartgame; Laya.stage.addChild(sceneStartgame); 5个场景,4个跳转,前2个正常,后2个不正常,...

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

1150. laya.d3.shader.Shader3D [ 50%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Shader3DProperties | Methods | Constants Packagelaya.d3.shaderClasspublic class Shader3DInheritanceShader3D Object Shader3D 用于创建Shader3D。 Public Properties PropertyDefined By  debugMode : Boolean = false...

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