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

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

2681. 骨骼动画-换装 [ 43%]

...rowser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class ChangeSkin { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skelet...

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

2682. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 43%]

...效的基类,包括创建,播放,暂停,销毁,清理对象池 export class Particle3D extends Sprite3D { private _isInited: boolean = false; private _filePath: string = null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _...

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

2683. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 43%]

...效的基类,包括创建,播放,暂停,销毁,清理对象池 export class Particle3D extends Sprite3D { private _isInited: boolean = false; private _filePath: string = null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _...

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

2684. 基础使用与构成 · LayaAir3.4 · 引擎文档 · LAYABOX [ 43%]

...om "./ItemBox.generated"; const { regClass, property } = Laya; @regClass() export class Script extends ItemBoxBase { constructor() { super(); } get dataSource(): any { return super.dataSource; } set dataSource(value: any) { super.dataSource = value; if (!value) return; //把数据源里的值,给...

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

2685. 一个简单的跑酷曲面shader分享 [ 43%]

...写到laya上,奈何不知道怎么写,就写这个shader练练手~   export default class CurveBlinnPhong extends Laya.BlinnPhongMaterial { public readonly MAIN_TEX: number = Laya.Shader3D.propertyNameToID("u_MainTex"); public readonly X_OFFSET: number = Laya.Shader3D.propertyNameToID("u_XOffs...

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

2686. laya.components.Component_API3.0 [ 43%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/Component" Component Class Component Component 类用于创建组件的基类。 Hierarchy Component Widget Volume MeshFilter ConstraintComponent PhysicsComponent BaseRender Light Animat...

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

2687. laya加载unity插件导出的场景 physics3D is not a function [ 43%]

...,功能单一,建议用脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();       //添加3D场景 Laya.Scene3D.load("res/Conventional/SimpleTown_DemoScene.ls",Laya.Handler.create(this,function(s:Laya.Scene3D):void{ v...

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

2688. 模型与动画的导入使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 43%]

...Keyboard = Laya.Keyboard; const { regClass, property } = Laya; @regClass() export class Main extends MainBase { private _animator: Laya.Animator; private _isRun: boolean; onAwake() { console.log("Game start"); //加载指定的模型预制体,并添加到Scene3D场景内 Laya.loader.load("girl/gir...

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

2689. laya.net.URL_API3.0 [ 43%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/net/URL" URL Class URL URL 提供URL格式化,URL版本管理的类。 引擎加载资源的时候,会自动调用formatURL函数格式化URL路径 通过basePath属性可以设置网络基础...

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

2690. [LayaAirIDE3]应该如何定义@property才能像GTextField一样加载字体? [ 43%]

...位置为:项目设置-脚本编译-启动脚本 启动脚本代码: export async function main() {     console.log("Hello LayaAir!");     Laya.loader.load("resources/BitmapFont.fnt", Laya.Loader.FONT).then((res) => {         Laya.Scene.open(Laya.PlayerConfig.startupScene); //可以...

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