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

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

1151. laya.d3.core.material.UnlitMaterial [ 50%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames UnlitMaterialProperties | Methods | Constants Packagelaya.d3.core.materialClasspublic class UnlitMaterialInheritanceUnlitMaterial BaseMaterial laya.resource.Resource UnlitMaterial 用于实现不受光照影响的材...

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

1152. 关于as版的Animation.createFrames()不能工作? [ 50%]

...ya.utils.Handler; import laya.net.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), nu...

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

1153. 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

1154. 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

1155. 单选框组容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

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

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

1156. 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

1157. 内置骨骼动画 · LayaAir3.4 · 引擎文档 · 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_文档 发布时间: 20251010

1158. 使用3D UI · LayaAir3.4 · 引擎文档 · 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_文档 发布时间: 20251010

1159. 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

1160. 无法触发浏览器文件上传框 [ 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