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

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

421. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 29%]

...如下: ```typescript /** * TypeScript语言的3D脚本示例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } ``` > 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Sc...

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

422. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 28%]

...,比如射击播放时,手部奔跑或站立的甩动也会保留。 4.Default Weight:动画层的权重,默认的Base Layer必须为1。如果设置为0则当前层的动画不会播放,1则会播放,0-1之间会采用类似融合的情况来播放动画,比如之前说的边移动边...

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

423. 3D中摄像机绕物体旋转该如何实现? [ 27%]

...(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </...

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

424. 官方案例里摄像机绕物体旋转脚本的问题 [ 27%]

...(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </...

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

425. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...2-8所示,通过点击Layer,可以选择编辑器已经自定义好的Default,Layer1等等,也可以再次编辑Layer层 (图2-8) 也可以通过代码来设置 /** * 蒙版层。 */ get layer(): number set layer(value: number) //添加显示图层(为相机添加一个蒙版) this.camer...

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

426. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 26%]

...UNDLE_END': config.cache = event.result.cache; break; case 'BUNDLE_START': default: break; } });   d)、创建并编写脚本 tools.js#!/usr/bin/env node const program = require('commander'); program .usage('[command] [args]') .command('compile', '编译项目.') .command('publish', '发布项目.'...

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

427. 屏幕适配 · LayaAir3.3 · 引擎文档 · LAYABOX [ 23%]

... from "./IndexRT.generated"; const { regClass } = Laya; @regClass() export default class IndexRT extends IndexRTBase { onAwake(): void { //设置舞台设计宽高 Laya.stage.designWidth = 1080; Laya.stage.designHeight = 1920; //在引擎初始化之后改变舞台设置的话,必须要手动调...

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

428. laya.net.Loader_API3.0 [ 23%]

... string 资源类型。比如:Loader.IMAGE。 Optional priority: number (default = 0)加载的优先级,数字越大优先级越高,优先级高的优先加载。 Optional cache: boolean 是否缓存。 Optional group: string 分组,方便对资源进行管理。 Optional ignoreCache: boolea...

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

429. socket大型项目回调 [ 22%]

...is.encodeUInt32(value.length),buffer); buffer.writeUTFBytes(value); break; default: var proto:any = protos.__messages[type] || this._clients["message " + type]; if (!!proto) { var buf:Laya.Byte = this.encodeProtos(proto, value); // buffer.writeArrayBuffer(this.encodeUInt32(buf.length)); Pomelo.write...

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

430. laya.d3.core.material.Material_API3.0 [ 22%]

...Resource._addReference Defined in laya/resource/Resource.ts:203 Parameters Default value count: number = 1 Returns void _clearReference _clearReference(): void Inherited from Resource._clearReference Defined in laya/resource/Resource.ts:218 清除引用 Returns void _removeReference _removeReference...

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