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

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

811. Sprite-屏幕截图 [ 53%]

...发语言、LayaAirIDE让项目开发更高效。class Sprite_ScreenShot { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; this.btnArr = ["res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png"]; this.nameArr = ["canvas截...

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

812. IDE时间轴动画帧数乱序导致的bug [ 53%]

...画帧数乱序导致的bug class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun === null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } }   FrameAnimation初始化时_sortIndexFun 方法没有被赋值   导致_calcu...

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

813. 关于SWF问题 [ 52%]

关于SWF问题 TypeError: MovieClip is not a constructor Main.js:28 at createMovieClip (file:///E:/Laya%E6%B8%B8%E6%88%8F%E5%88%B6%E4%BD%9C/Sprite/Animation_SWF/LayaAirTest/bin/js/bundle.js:38:12) at file:///E:/Laya%E6%B8%B8%E6%88%8F%E5%88%B6%E4%BD%9C/Sprite/Animation_SWF/LayaAirTest/bin/js/bundle...

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

814. textInput的单行输入&多行输入(TypeScript-LayaAir基础篇(TS)-文本) [ 52%]

...ser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { 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...

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

815. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 52%]

...。 ```typescript export default class SceneScript extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console.log("ShowMsg"); this.showMsgFunc && this.s...

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

816. 屏幕适配-屏幕适配 [ 52%]

..."full", "fixedwidth", "fixedheight"], index = 0, txt; class SmartScale_T { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Image = Laya.Image, Text = Laya.Text; // 不支持WebGL时自动切换至Canvas Laya.init(550, 40...

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

817. 取色器组件 · LayaAir3.0文档 · LAYABOX [ 52%]

...extends Laya.Script { private skin: string = "atlas/comp/colorPicker.png"; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then( ()=>{ this.onColorPickerSkinLoaded(); } ...

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

818. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 52%]

...Script extends Laya.Script3D { //用于表现的方法 public showMsgFunc; constructor(){ super(); } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,...

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

819. laya.d3.core.particleShuriKen.module.shape.ConeShape [ 52%]

...er椎体长度。radiusproperty public var radius:Number发射器半径。Constructor DetailConeShape()Constructorpublic function ConeShape() 创建一个 ConeShape 实例。 Method Detail_getShapeBoundBox()methodoverride protected function _getShapeBoundBox(boundBox:BoundBox):void Parameters bound...

来源: laya_api 发布时间: 20170929

820. 怎么集成导入mqtt.js到laya中 [ 52%]

...TT.Client; private message: Paho.MQTT.Message; private self = this; public constructor() { public connect(url, port, client): void { //初始化 this.client = new Paho.MQTT.Client(url, Number(port), client); // set callback handlers //连接消失 收到消息 this.client.onConnectionLost = this.onC...

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