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

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

1071. TypeScript在LayaAir 1.X和2.X中对待module和namespace的异同,求2.x使用自定义namespace的方法(module已经找到方法) [ 60%]

...------------------------ module AM{ export class AC { public static myname:string = "I'm AC!"; } } export default AM; b.ts ---------------------------- module AM{ export class BC { public static myname:string = "I'm BC!"; } } export default AM; c.ts -------------------------- import AM from './a'; /...

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

1072. 骨骼动画-橡胶人 [ 60%]

...GL = Laya.WebGL; export class Skeleton_SpineStretchyman { private mAniPath:string; private mStartX:number = 200; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; priv...

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

1073. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 60%]

... var offsetX:int = Laya.stage.width - w >> 1; //显示的字符串 var demoString:String = "LayaBox"; var letterText:Text; //根据"LayaBox"字符串长度创建单个字符,并对每个单独字符使用缓动动画 for (var i:int = 0, len:int = demoString.length; i (动图2) 结合实例代...

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

1074. Native下http请求,Error事件中的error对象错误码全都是404 [ 60%]

...andler.runWith(this.hr.data); } } private function onHrErrorHandler($error:String):void { if(this.errorHandler) { this.errorHandler.runWith($error); } } 其中就是这个$error,在网页和原生返回的明显不一样,如果现在原生就是有这个问题的话,那我们只能想别的方...

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

1075. UI-Tab [ 60%]

...); tabB.labelColors = "#FFFFFF,#8FB299,#FFFFFF"; } private createTab(skin: string): Tab { var tab: Tab = new Tab(); tab.skin = skin; tab.labelBold = true; tab.labelSize = 20; tab.labelStrokeColor = "#000000"; tab.labels = "Tab Control 1,Tab Control 2,Tab Control 3"; tab.labelPadding = "0,0,0,0"; tab...

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

1076. 骨骼动画-换装 [ 59%]

...tat; import WebGL = Laya.WebGL; export class ChangeSkin { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; priv...

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

1077. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 59%]

...me 需要查找的节点名 */ private function findChild(sp:Sprite3D,name:String):Sprite3D{ if(sp.name==name) return sp; else return _findChild(sp._children,name); } private function _findChild(spArr:Array,name:String):Sprite3D{ var arr:Array = []; for(var i:int = 0;i (图 new)新版本骨骼...

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

1078. laya.utils.Timer [ 59%]

...id 立即提前执行定时器,执行之后从队列中删除 Timer  toString():String 返回统计信息。TimerProperty DetailcurrFramepropertypublic var currFrame:int = 0 当前的帧数。currTimerproperty public var currTimer:Number 当前帧开始的时间。deltaproperty delta:int  [r...

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

1079. UI-Tab [ 59%]

...); tabB.labelColors = "#FFFFFF,#8FB299,#FFFFFF"; } private createTab(skin: string): Tab { var tab: Tab = new Tab(); tab.skin = skin; tab.labelBold = true; tab.labelSize = 20; tab.labelStrokeColor = "#000000"; tab.labels = "Tab Control 1,Tab Control 2,Tab Control 3"; tab.labelPadding = "0,0,0,0"; tab...

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

1080. 微信小游戏渲染开放域卡顿处理 [ 59%]

...改成你们自己想要的格式 pfUtils.postMessage = function(action: string, data?: any) {     var msg = {action, data};     wx.postMessage(msg); }; // --------正式代码开始-------- module lie {     /**      * 微信数据开放域控件      * 使用:设置好控件大小、...

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