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

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

961. LayaAir 寻路库,寻路路径错误 [ 45%]

...--------------------------- public function Grid(width_or_matrix:*, height:int, matrix:Array = null) 虽然as3不支持多个构造函数,但是也没必要用这种解决方法吧,包括Grid构造函数初始化的代码简直绕晕了 附件 : --> Astar.zip 2016-12-21 添加评论 免费帖 --...

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

962. 缓动-简单的Tween [ 44%]

...olor = "#232628"; setup(); } private function setup():void { var terminalX:int = 200; var characterA:Sprite = createCharacter("../../../../res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB:Sprite = createCharacter("../../../../res/cartoonCharacters/2.png")...

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

963. 分享:Panel下动态修改子容器宽高并刷新显示! [ 44%]

...function onClick(sp:Sprite,panel:Panel):void { trace('Add1000'); for(var i:int=0;i<1000;i++) { var button:Button=new Button('button-4.png'); button.label='button:'+i; sp.addChild(button); button.y=i*60; } sp.graphics.clear(); sp.graphics.drawRect(0,0,500,1000*60,"#FF0000"); sp.size(500,1000*60);/...

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

964. config.jsh中无法使用confirm [ 44%]

...请退出重进" ).setPositiveButton("确定" , new DialogInterface.OnClickListener(){ @Override public void onClick(DialogInterface dialogInterface, int i) { MainActivity.my_activity.finish(); } }).show(); } 浪货界扛把子 • 2018-01-16 12:05 @Monica:代码没看到什么问题...

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

965. Unity2.10.0beta插件报错 [ 44%]

...b4600df769>:0) LayaAir3D.exportResource (System.Boolean isDebug, System.Int32 Platformindex, System.String lastname) (at <174bbe38e5444724b5b9eeb4600df769>:0) b+l.b () (at <174bbe38e5444724b5b9eeb4600df769>:0) q.b (q+a A_0) (at <174bbe38e5444724b5b9eeb4600df769>:0) q.a () (at &l...

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

966. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 44%]

...ibility) {                 // this._timeId = window.setInterval(this._enterFrame, 1000);                 ILaya.m_worker.postMessage(['wait']);             }             else if (this._timeId != 0) {                 //...

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

967. laya.physics.joint.PrismaticJoint [ 44%]

...tionAll Packages | All Classes | Index | Frames No Frames PrismaticJointProperties | Methods Packagelaya.physics.jointClasspublic class PrismaticJointInheritancePrismaticJoint JointBase Component Object 平移关节:移动关节允许两个物体沿指定轴相对移动,它会阻止相...

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

968. 请问一下我一个3d模型,贴图是UV类型的里面好多张图,在代码里面怎么调用其它的贴图 [ 44%]

...17-03-13 0 0 分享 微博 QZONE 微信 yuelijuan 赞同来自: for (var i:int = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) {                             var mat:StandardMaterial = meshSprite.meshRender.sharedMaterials[i] as StandardMaterial;           ...

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

969. 2.0里面的组件(Laya.Script)的prop其中几个类型应该怎么设置 [ 44%]

...   export default class TestScript extends Laya.Script { /** @prop {name:intType, tips:"整数类型示例", type:Int, default:1000}*/ public intType: number = 1000; /** @prop {name:numType, tips:"数字类型示例", type:Number, default:1000}*/ public numType: number = 1000; /** @prop {name:strTy...

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

970. 3D粒子特效初始化卡顿 [ 44%]

...tiate(item); }else{ OnComplete(); } } } public function DelayDestroy(delay:int):void { this.timerOnce(delay,this,destroy); } public function OnComplete():void { var item:Sprite3D = Laya.loader.getRes(_path) as Sprite3D; if(item != null){ item = item.getChildAt(0).clone(); Instantiate(item); } } priv...

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