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

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

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

....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. /// </summary> //public targe...

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

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

....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. /// </summary> //public targe...

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

423. Laya中的宏编译要怎么用啊 [ 42%]

...flash.display.StageScaleMode; import flash.events.Event; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.s...

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

424. 自动图集配置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { declare owner: Laya.Image; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { //需要先加载图集再使用,注意,图集要放到resources目录下或者在构建发...

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

425. [BUG]刚体约束问题,移动后约束混乱! [ 42%]

...方式实现,比如子弹脚本。  */ export default class GameUI extends ui.test.TestSceneUI {   private newScene:Laya.Scene3D;   private boxA: Laya.MeshSprite3D;   constructor() {     super();     Laya3D.init(0, 0);     Laya.stage.scaleMode = Laya.Stage.SCALE_FUL...

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

426. 压缩纹理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...下: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(0, 0); //性能面...

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

427. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...onst { regClass, property } = Laya; @regClass() export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resou...

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

428. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

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

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

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

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

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

430. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活...

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