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

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

1021. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 48%]

...样条曲线,然后通过drawLines来画。给你 一个参考代码   export class CatmullRomSpline { private points: number[]; constructor(points: number[]) { if (points.length < 4 || points.length % 2 !== 0) { throw new Error("At least two points (four numbers) are required, and the total n...

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

1022. laya.d3.shader.Shader3D_API3.0 [ 48%]

...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/shader/Shader3D" Shader3D Class Shader3D Shader3D 类用于创建Shader3D。 Hierarchy Shader3D Index Constructors constructor Properties PERIOD_CAMERA PERIOD_CUSTOM PERIOD_MATERIAL PERIOD_SCENE...

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

1023. 2D物理-复合碰撞器 [ 48%]

...{ Label } from "laya/ui/Label"; import { Event } from "laya/events/Event"; export class Physics_Physics_Tumbler { private count = 0; private box: Sprite; private totalBox = 200; private label: Label; Main: typeof Main = null; constructor(maincls: typeof Main) { this.Main = maincls; Laya.Config.isAnt...

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

1024. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...效的基类,包括创建,播放,暂停,销毁,清理对象池 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_文档 发布时间: 20250214

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

...效的基类,包括创建,播放,暂停,销毁,清理对象池 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

1026. 关于使用Idea以及Linux下使用AS语言开发的一点经验 [ 47%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 问题状态 最新活动: 2017-12-29 19:40 浏览: 4252 关注: 3 人 debuggerx • 2017-04-18 16:43 这个网页编辑器好难用,贴图预览看不清,插入没预览,插错了都不知道,最后那张...

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

1027. laya.d3.core.light.AreaLightCom_API3.0 [ 47%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/light/AreaLightCom" AreaLightCom Class AreaLightCom LightSprite 类用于创建灯光的父类。 Hierarchy Light AreaLightCom Index Constructors constructor Properties _extra _singleton co...

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

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

...写到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

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

...,功能单一,建议用脚本方式实现,比如子弹脚本。 */ 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

1030. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...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_文档 发布时间: 20240910