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

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

991. 播放动画(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 82%]

...获取它,参考以下代码。 ```typescript //获取角色动画组件 var ani:Animator= role3D.getChildAt(0).getComponent(Animator) as Animator; ``` 打开.lh文件查看,动画组件绑定在模型的子对象上,因此使用了 `getChildAt(0)`,通过它获取子对象模型。然后通...

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

992. TextureCube. setSixSideImageSources () [ 82%]

...w Folder/qiu2_NegativeX.png", Laya.Handler.create(null, (tex) => { var _textureCube = new Laya.TextureCube(); var img:Laya.Image = new Laya.Image(); img.texture=tex; _textureCube.setSixSideImageSources([ img, img, img, img, img, img ]); var skyM = new Laya.SkyBoxMaterial(); skyM.textureCube ...

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

993. laya.physics.joint.PrismaticJoint [ 82%]

...e _onEnable():void[override] JointBaseProperty Detailanchorpropertypublic var anchor:Array[首次设置有效]关节的控制点,是相对于自身刚体的左上角位置偏移axisproperty public var axis:Array[首次设置有效]一个向量值,描述运动方向,比如1,0是沿X轴向右c...

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

994. laya.d3.core.trail.TrailFilter [ 82%]

...准线_面向摄像机。TrailFilterProperty Detail_curtimepropertypublic var _curtime:Number = 0_lastPositionproperty public var _lastPosition:Vector3_ownerproperty public var _owner:TrailSprite3Dalignmentproperty public var alignment:int = 0轨迹准线。colorGradientproperty colorGradient:Gr...

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

995. UI-ComboBox [ 82%]

...ler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } private createComboBox(skin: String): ComboBox { var comboBox: ComboBox = new Combo...

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

996. LayaFlash:求ByteArray.jas ->readMultiByte对gb2312的实现翻译 [ 82%]

...nction readGBBytes (len:int):String          {             var value:String = "";             var max:int = this._position_ + len;             var c:int, c2:int;             // gb2312-encode             while (this._position_ < max) {      ...

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

997. domParser在哪儿 [ 82%]

domParser在哪儿 我看教程里有个给tree添加数据的用的 var xml:* = domParser.parseFromString(xmlString, "text/xml"); 我照抄过来,总是报 warning:domParser.parseFromString This variable is not defined. 这个错,是咋回事? 2018-01-26 添加评论 免费帖 --> 分享 微...

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

998. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 82%]

...天空盒子或穹顶,官网例子运行报错。 //=======天空盒子 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加3D场景 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100)));//添加照相机 camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate...

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

999. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 82%]

...structor() { Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets.push({ url: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): void { var texture:Texture = Laya.loader.g...

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

1000. 3D粒子特效初始化卡顿 [ 82%]

...不出需求效果,官方可有解决方案,以下为示例代码: var sprite= Laya.loader.getRes(this._stlurl) as Laya.Sprite3D; this.skill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play();   这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显...

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