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

大约有 3,979 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0074 秒)

2171. 销毁 new 出的带有 PhysicsCollider 的正方体模型报错 [ 66%]

...olliderShape // 给box添加物理 不添加物理直接销毁不会报错 var planeStaticCollider = this.box.addComponent(Laya.PhysicsCollider); var planeShape = new Laya.BoxColliderShape(10, 0, 10); planeStaticCollider.colliderShape = planeShape; 古 • 2019-01-24 17:58 @182*****524:明白了,...

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

2172. 关于UI子界面的定义方式 [ 66%]

...、名字、排行数值等等,这一步一般通过设置属性中的【var】来实现。 接着,导出这一项专属的类,例如叫RankListItemUI。 最后,我创建一个界面逻辑类:RankListItem,继承导出类RankListItemUI,然后就可以直接引用导出类中导出的变...

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

2173. 在开放数据域/子域里list滑动事件偏移,重设矩阵没有用 [ 66%]

...data.width; Laya.Browser.window.sharedCanvas.height = message.data.height; var tempMatrix = message.data.matrix; var matrix = new Laya.Matrix(); matrix.a = tempMatrix.a; matrix.b = tempMatrix.b; matrix.c = tempMatrix.c; matrix.d = tempMatrix.d; Laya.stage._canvasTransform = matrix;//重新设置矩...

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

2174. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 66%]

....BitmapFont; public class TestBitmapFont { //自定义文件名称 private var mFontName:String = "diyFont"; private var mBitmapFont:BitmapFont; public function TestBitmapFont() { Laya.init(550, 400); mBitmapFont = new BitmapFont(); //这里不需要扩展名,外部保证fnt与png文件同名 mBit...

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

2175. 显卡驱动停止响应,且大概率蓝屏,原来是Handler惹的祸,但原因是什么 [ 66%]

...new A(); } } }package { import laya.utils.Handler; public class A { public var completeHandler:Handler; public function A() { completeHandler = Handler.create(this,onComplete,[this]); completeHandler.run(); new B().load(completeHandler); trace('A',completeHandler.method == null,completeHandler['_id'...

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

2176. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 66%]

...ion实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步:添加动画到舞台,播放动画 ```javascript //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.pl...

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

2177. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 66%]

... = new Laya.Image('c1.png'); node.pos(300, 300) Laya.stage.addChild(node); var sp: Laya.Sprite = new Laya.Sprite(); node.mask = sp; sp.pos(50, 50); var sp2: Laya.Sprite = new Laya.Sprite(); sp2.pos(300, 500); Laya.stage.addChild(sp2); let r: number = 0 Laya.timer.loop(100, this, () => { if (r &gt...

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

2178. laya.d3.terrain.Terrain [ 65%]

...树移除时调度。NodeProperty Detail__VECTOR3__propertypublic static var __VECTOR3__:Vector3LOD_DISTANCE_FACTORproperty public static var LOD_DISTANCE_FACTOR:Number = 2.0LOD_TOLERANCE_VALUEproperty public static var LOD_TOLERANCE_VALUE:Number = 4RENDER_LINE_MODELproperty public static var REN...

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

2179. 如何让发布后的H5加载资源用src或href指向本地路径,而不是网络请求 [ 65%]

..., chrome, chrome-extension, https.   load(url) {             var me = this;             url = URL.formatURL(url);             this.url = url;             this.audioBuffer = WebAudioSound._dataCache[url];             if (this.aud...

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

2180. FontClip问题 [ 65%]

...需要设置为竖型的图集。 现在问题来了。根据代码 for (var i=0,sz=this._valueArr.length;i < sz;i++){   var index=this._indexMap[this._valueArr.charAt(i)];   if (!this.sources[index])continue ;   texture=this.sources[index];   if (isHorizontal)this.graphics.drawTexture(te...

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