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

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

1291. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 72%]

... private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/vvv....

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

1292. laya.display.cmd.DrawTexturesCmd_API3.0 [ 72%]

...efined in laya/display/cmd/DrawTexturesCmd.ts:9 Methods recover recover(): void Defined in laya/display/cmd/DrawTexturesCmd.ts:36 回收到对象池 Returns void Globals "laya/display/cmd/DrawTexturesCmd" DrawTexturesCmd colors pos texture ID recover Legend Object literal Variable Function Type alia...

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

1293. 点击过快问题 [ 72%]

... Laya.stage.once(Event.CLICK,this,onClick); } private function onClick():void { trace("aaa"); Laya.stage.off(Event.CLICK,this,onClick); Laya.timer.once(500,this,onLoop); } private function onLoop():void { Laya.stage.once(Event.CLICK,this,onClick); } 2017-06-20 1 0 分享 微博 QZONE 微信 为什...

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

1294. laya.display.cmd.DrawTextureCmd [ 72%]

...偏移量。 DrawTextureCmdPublic Methods  MethodDefined By  recover():void 回收到对象池 DrawTextureCmdPublic Constants ConstantDefined By  ID : String = DrawTexture[static] DrawTextureCmdProperty Detailalphapropertypublic var alpha:Number (可选)透明度。 blendModeproperty publ...

来源: Laya2.0_api 发布时间: 20190513

1295. laya.d3.Input3D [ 72%]

...ut3DPublic Methods  MethodDefined By  __init__(canvas:*, scene:Scene3D):void private Input3D  getTouch(index:int):Touch 获取触摸点。 Input3D  touchCount():int 获取触摸点个数。 Input3DProperty DetailmultiTouchEnabledpropertymultiTouchEnabled:Boolean 获取是否可以使用多点...

来源: Laya2.0_api 发布时间: 20190513

1296. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 72%]

...stener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoader=new URLLoader(); urlLoader.dataFormat=URLLoaderDataFormat.BINARY; urlLoader.addEventListener(Event.COMPLETE,onImageLoaded); urlLoader.load(new URLRequest("screen.png")); } private function onImageLoaded(event...

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

1297. laya.d3.Touch_API3.0 [ 72%]

...ment接口] Returns number _setIndexInList _setIndexInList(index: number): void Implementation of ISingletonElement._setIndexInList Defined in laya/d3/Touch.ts:50 [实现ISingletonElement接口] Parameters index: number Returns void Globals "laya/d3/Touch" Touch identifier position _getIndexInList _...

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

1298. 提示资源重复加载 [ 72%]

...p.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this.swimpoolani.play(0,true,"swimpoolani"); this.swimpoolani.interval = 500;         }    ...

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

1299. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 72%]

...ivate const stand:String = "STAND"; private function loadActionsComplete():void {     //创建动画模板dizziness      //Animation.createFrames(aniUrls("zy/" + stand + "000", 5), stand + "000");//这么写也不对      Animation.createFrames(aniUrls(stand + "000", 5), stand + "000");  ...

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

1300. laya.display.cmd.StrokeTextCmd [ 72%]

...画布)。 StrokeTextCmdPublic Methods  MethodDefined By  recover():void 回收到对象池 StrokeTextCmdPublic Constants ConstantDefined By  ID : String = StrokeText[static] StrokeTextCmdProperty Detailcolorpropertypublic var color:String 定义文本颜色,比如"#ff0000"。 fontproperty...

来源: Laya2.0_api 发布时间: 20190513