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

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

1761. 照相机-3D空间转2D空间 [ 56%]

...outPos.x / Laya.stage.clientScaleX, _outPos.y / Laya.stage.clientScaleY); }class D3SpaceToD2Space { private scene: Laya.Scene; private camera: Laya.Camera; private layaMonkey3D: Laya.Sprite3D; private layaMonkey2D: Laya.Image; private _position: Laya.Vector3; private _outPos: Laya.Vector3; private s...

来源: Laya_示例 发布时间: 20260303

1762. Laya2.20bata4版本使用HTMLDivElement报错 [ 56%]

...场景中添加一个富文本就打不开而且报Uncaught Can not find class laya.html.dom.HTMLDivElement 附demo求解答 附件 : --> demo.zip 2019-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 陆仁...

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

1763. Laya2.0 动画Animator如何监听播放完成 [ 56%]

...ript   import AnimationDefine from "../AnimationDefine";  export default class AttackState extends Laya.AnimatorStateScript {  animator:Laya.Animator;  onStateEnter(): void {  }  onStateExit(): void { if(this.animator) { this.animator.crossFade(AnimationDefine.IDLE,0.5,0,0); } }  onStateUpdat...

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

1764. 天空穹不显示 [ 56%]

天空穹不显示 export default class GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100)...

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

1765. Laya.timer.once计时不准确的问题 [ 56%]

...er.once计时不准确的问题 import WebGL = Laya.WebGL; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, WebGL); console.log("Before In One, Time = " + Date.now()); Laya.timer.once(1,this,this.One) console.log("After In One, Time = " + Date.now()); } One():void{ console.log("In ...

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

1766. graphics绘制报错 [ 56%]

graphics绘制报错 class Sprite_DisplayImage { constructor() { Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); const path = "./res/apes/monkey2.png"; Laya.loader.load(path, Laya.Handler.create(this, function() { let tex = Laya.loader.getRes(path); let sp = new Laya.Spr...

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

1767. laya.ui.AutoBitmap [ 56%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames AutoBitmapProperties | Methods Packagelaya.uiClasspublic class AutoBitmapInheritanceAutoBitmap Graphics Object AutoBitmap 类是用于表示位图图像或绘制图形的显示对象。 封装了位置,宽高及九宫...

来源: laya_api 发布时间: 20170929

1768. laya.d3.core.light.AreaLightCom_API3.0 [ 56%]

... Only exported Menu Globals "laya/d3/core/light/AreaLightCom" AreaLightCom Class AreaLightCom LightSprite 类用于创建灯光的父类。 Hierarchy Light AreaLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked destroyed enabled h...

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

1769. HTMLIframeElement 不支持很多标签,希望知道这东西支持哪些标签? [ 56%]

...添加 ul 、li、table、tr、td等等标签。发现均提示 undefined class。 如图: 5、test.html 如图:   6、最终呈现效果如图:     附件 : --> 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

1770. 灯光-点光 [ 56%]

...on, _quaternion, _position); pointLight.transform.position = _position; });class PointLightDemo { private scene: Laya.Scene; private _position: Laya.Vector3; private _quaternion: Laya.Quaternion; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screen...

来源: Laya_示例 发布时间: 20260303