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

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

1. API里 Tab控件的的内容为什么看不到的 [ 100%]

...什么看不到的 API 里面查看Tab控件的内容,只显示如下: Public Properties Show Inherited Public Properties Protected Properties Show Inherited Protected Properties Public Methods Show Inherited Public Methods Protected Methods Show Inherited Protected Methods Events Show Inherited...

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

2. 模拟石头下落过程不明抖动 [ 80%]

...观察看看,下面贴上代码import './aui/aui'; import { Game } from './public/Game'; import Stage = Laya.Stage; export class TexasMain{ private balls:Laya.Sprite = ; constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(L...

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

3. canvas下资源清理的问题 [ 80%]

...   import ui.TaskUI;          import view.TestView;          public class LayaUISample {                           private var btn1:Button;         private var btn2:Button;                  private var taskView:TaskUI;                   ...

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

4. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 80%]

...; import laya.utils.Handler; import ui.TestDialogUI; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var _path2:Sprite = new Sprite(); private var arr:Array = ; priva...

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

5. ScrollRect设置会引起其他的UI资源无法正在显示 [ 79%]

...le; import laya.ui.Image; import laya.utils.Handler; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.p...

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

6. ts如何调用activity方法 [ 76%]

... webview.addJavascriptInterface(new JavaScriptinterface(this), "android"); public class JavaScriptinterface {  Context mContext;  public JavaScriptinterface(Context c) { mContext= c; }  /** * 与js交互时用到的方法,在js里直接调用的 */ @JavascriptInterface  public void showToast(S...

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

7. 主类引用了laya.utils.Mouse这个类,报错:所访问的属性 Mouse 可能未定义 [ 74%]

...个定义啊,我在想自己建个空的类就好了 package flash.ui { public class Mouse { public function Mouse() { } public static function hide():void { } public static function show():void { } } } cuixueying • 2017-03-17 19:46 有没有例子,上传一个,我们看下!

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

8. config.jsh中无法使用confirm [ 73%]

...////////////////////////////////java////////////////////////////////////// public static void showError(){ Log.e("showerror","show"); new AlertDialog.Builder(MainActivity.my_activity).setTitle("error" ).setMessage("加载游戏失败,可能由于您的网络不...

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

9. [LayaAirIDE3]2d相机打包后问题 [ 73%]

...ss Main extends Laya.Script {     @property({ type: Laya.Sprite })     public player: Laya.Sprite;      @property({ type: Laya.Sprite })     public joystick: Laya.Sprite;      @property({ type: Laya.Sprite })     public map: Laya.Sprite;      @property({ type: Laya.Sprite })     p...

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

10. 没有人尝试使用3d物理引擎么 [ 73%]

...t threeDimen.common.SpriteMoveScript; import threeDimen.common.SpriteStat; public class LayaAir3D { private var box:MeshSprite3D; private var sphereBody:Object; private var world:Object; private var CANNON:Object; public function LayaAir3D() { //初始化引擎 Laya3D.init(0, 0, true); //适配模...

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