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

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

921. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 39%]

...18-07-15 16:17 import WebGL = Laya.WebGL; // 程序入口 class GameMain { constructor() { //TS或JS版本初始化微信小游戏的适配 Laya.MiniAdpter.init(); //初始化引擎 Laya.init(600, 400, WebGL); //设置屏幕缩放模式 Laya.stage.scaleMode = Laya.Stage.SCALE_NOSCALE;//不缩放屏...

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

922. 灯光-方向光 [ 39%]

...ghtDemo { private scene: Laya.Scene; private _quaternion: Laya.Quaternion; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.scene = new Laya.Scene() Laya.stage.addChild(this.scene); this._qua...

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

923. 多选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...resources/res/ui/checkbox (5).png", "resources/res/ui/checkbox (6).png" ]; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.load(this.skins).then(() => { this.onCheckBoxSkinLoaded(...

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

924. 音频-播放演示 [ 39%]

...class Sound_SimpleDemo { //声明一个信息文本 private txtInfo: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

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

925. laya.display.AnimationBase_API3.0 [ 39%]

...类实现。 Hierarchy Sprite AnimationBase FrameAnimation Animation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidth...

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

926. 物理引擎-牛顿摆 [ 39%]

...wser.window.LayaRender; private mouseConstraint: any; private engine: any; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(this.stageWidth, this.stageHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; ...

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

927. laya.device.media.Video_API3.0 [ 39%]

...mozilla.org/en-US/docs/Web/HTML/Element/video Hierarchy Sprite Video Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name videoElement CAMERA MP4 OGG SUPPORT_MAYBY SUPPORT_NO SUPPORT_PROBABLY WEBM drawtocanvCtx Accessors activ...

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

928. 区块地图-滚动地图 [ 39%]

...e mLastMouseY: number = 0; private mX: number = 0; private mY: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); this.createMap(); Laya.stage.on(Laya.Event.MOUSE_DOW...

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

929. 鼠标交互-双指旋转(多点触控) [ 39%]

...ss Interaction_Rotate { private sp: Sprite; private preRadian: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

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

930. laya.display.FrameAnimation_API3.0 [ 39%]

...点动画。 Hierarchy AnimationBase FrameAnimation EffectAnimation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthS...

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