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

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

281. 关于DrawCall和Shader数量的疑问 [ 76%]

... 具体的城池名称制作流程如下图   实现的伪代码如下:_container = new Sprite(); Laya.stage.addChild(_container); _container.cacheAs = "normal"; private function createCity(worldMapData:Object):void { var itemObj:Object; for(var i:int = 0 ; i < worldMapData.items.length ; i++)...

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

282. tween缓动时能不能实时得出当前的位置 [ 76%]

... laya21126 赞同来自: tween中有个update方法是可以的 Tween.to(_source, {x:endX, y:endY, update:Handler.create(this, tweenUpdate)},200, null, Handler.create(this, moveComplete));   2017-12-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...

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

283. 自己写了个label继承官方的label,出现了问题,求指导~ [ 76%]

... Administrator * */ public class Label extends laya.ui.Label { private var _textFormat:TextFormat; private var _txt:String; private var _lWidth:int; private var _lHeight:int; private var _lx:int; private var _ly:int; public function Label(text:String="") { super(text); } public function get textForm...

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

284. laya.particle.ParticleTemplate2D_API3.0 [ 76%]

...cleTemplate2D Implements ISubmit Index Constructors constructor Properties _id destroyedImmediately lock name settings sv texture url uuid x y DEBUG activeBlendType Accessors cpuMemory destroyed gpuMemory id obsolute referenceCount cpuMemory gpuMemory Methods _addReference _clearReference _removeRef...

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

285. Sprite-遮罩-放大镜 [ 76%]

...效。let bgPath = "res/bg2.png", maskPath = "res/mask.png"; class Sprite_MagnifyingGlass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV =...

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

286. laya.d3.core.light.DirectionLightCom_API3.0 [ 76%]

...ierarchy Light DirectionLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id intensity lightWorldMatrix lightmapBakedType shadowCascadesMode shadowDepthBias shadowDistance shadowFourCascadeSplits shado...

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

287. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 76%]

... ```typescript /* ……省略若干代码 */ //创建刚体碰撞器 let _rigidBody = sphere.addComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; //开启运动类型刚体 _rigidBody.isKinematic = true; /* ……省略若干代码 */ ``` 在Unity中设置运动类型刚体的方式,如图4所示...

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

288. 怎么求如图的角度x ,还有如果 b点在上面希望角度也要算出来 [ 76%]

... QZONE 微信 jinghuhuilai 赞同来自:   /Users/hezhenlong/Downloads/IMG_0594.JPG 2017-05-11 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jinghuhuilai 相关问题 [引擎优化]希望官方可以增加stencil功能 为什么有的...

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

289. Texture.getPixels在手机真机Native环境中会报错 [ 76%]

...    if (window.conch) {                 return this._nativeObj.getImageData(x, y, width, height); //this._nativeObj为空!             }             else {                 return this.getTexturePixels(x, y, width, height);   ...

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

290. 给模型动态添加脚本报错 [ 75%]

...sModel/hanbao.lh");                 goldNode = this.scene_3d.addChild(sp);                 goldNode.transform.localPosition = new Laya.Vector3(this.startPos.x + (4.5 - Math.random() * 9), this.startPos.y, this.startPos.z + (2.5 - Math.random() * 5))...

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