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

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

3791. 添加组件PhysicsCollider 时报 Cannot read property 'btCollisionObject' of undefined [ 48%]

...如下句 : Laya.loader.create( MyResouces.arrResources, Handler.create(this,onLoadComplete) ); 意为加载完MyResouces.arrResources这些资源后调用方法onLoadComplete,添加碰撞盒子需要在onLoadComplete里或者onLoadComplete运行过之后再加。

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

3792. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 48%]

...所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel...

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

3793. 2.1.1版加了3D物理引擎库后创建3个scene3D就报错 [ 48%]

... the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 "). Build with -s ASSERTIONS=1 for more info.   我的项目中用到了3D物理库,因为UI上也需要显示3D模型,所以创建了多个scene3D,结果创建到第3个...

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

3794. [TMA][ERROR][RUNTIME] thirdScriptError undefined;at api readFile success callback function [ 48%]

...ime照着视频做运行不了,求解 调用动画结束on方法,报错this.zombieAnimator.on is not a function 请问官方API中有反余弦的方法吗? 问题状态 最新活动: 2020-01-09 18:28 浏览: 1298 关注: 3 人 L。 • 2020-06-11 18:28 请问一下这是官方回答吗?我...

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

3795. 问一下这个问题要怎么改啊? [ 48%]

... picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this, showBgImg)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } }   Main.as package { import laya.display.*; import ...

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

3796. 使用graphics.drawPath方法绘制带边框圆角矩形出现的问题 [ 48%]

...                  ];         //绘制圆角矩形         this.container.graphics.drawPath(100, 100, path, {fillStyle: "#ff0000"},{"strokeStyle":"#ffffff","lineWidth":"1","lineJoin":"miter","lineCap":"round","miterLimit":1});   附件 : --> 2017-03-20 添加评论 免费帖 --> 分...

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

3797. laya.d3.core.light.DirectionLight_API3.0 [ 48%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(n...

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

3798. scaleMode设为full时怎么pc浏览器跟平板上效果不一样? [ 48%]

...gnV = Stage.ALIGN_MIDDLE; Laya.loader.load("assets/bg.jpg", Handler.create(this, loadCompleteHandler)); } private function loadCompleteHandler():void { var bg:Image = new Image("assets/bg.jpg"); Laya.stage.addChild(bg); }这张图在三星平板上可以完整显示出来,为什么在电脑上显...

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

3799. 请问这是原因? [ 48%]

...cs = graphics2; Laya.stage.addChild(sprite2); Laya.stage.on(Event.MOUSE_UP,this,mouseUP); } public var flagCircle:Graphics = new Graphics(); public var flag:Sprite = new Sprite(); //让直线在圆内旋转 public function mouseUP():void{ var point:Point = sprite.globalToLocal(new Point(Laya.stage.m...

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

3800. LayaNative端使用.ttf字体 [ 48%]

...0); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("hu.ttf"); if(Browser.window.conch) { Browser.window.conch.setFontFaceFromBuffer("hu",arr); } var text:Text=new T...

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