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

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

621. 射线检测-放置物体 [ 72%]

...at = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane...

来源: Laya_示例 发布时间: 20241001

622. 性能测试-虫子(慎入) [ 72%]

...ng, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, this.onTextureLoaded)); } onTextureLoaded() { maggotTexture = Laya.loader.getRes(texturePath); this.initMaggots(); Laya.timer.frameLoop(1, this, this.animate); } initMaggots() { l...

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

623. 关于3D动画的问题 [ 72%]

...果play动画的话,这个模型又可以显示出来。 问题2:直接load后,使用play,会报错,时间什么的数据为null,于是我添加了Laya.Event.HIERARCHY_LOADED侦听,然而去回调来运行play却发现没有回调,于是只能使用手动方式,或延时一段时...

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

624. UI-RadioGroup [ 72%]

.../../res/ui/radioButton (2).png", "../../res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, initRadioGroups)); })(); function initRadioGroups() { for (var i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage....

来源: Laya_示例 发布时间: 20241001

625. UI-RadioGroup [ 72%]

...1).png", "res/ui/radioButton (2).png", "res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, this.initRadioGroups)); } initRadioGroups() { for (let i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MI...

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

626. 3D动画是如何进行控制播放的? [ 72%]

...法的吗? var skinMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/dude/dude-him.lm"))); skinMesh.transform.localRotationEuler = new Laya.Vector3(0, 3.14, 0); var skinAni = skinMesh.addComponent(Laya.SkinAnimations); skinAni.templet = Laya.AnimationTemple...

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

627. 用 texturepacker .json+.png File [ 72%]

...折叠 要回复问题请先登录 发起人 WH... 相关问题 Failed to load resource: net::ERR_FILE_NOT_FOUND 初学者,LayaAir IDE舞台不显示效果,并提示file: 发布微信小游戏时,[ERR]|MergeJS Fail, File not found : E:\svnwork\layawork\bin\h5\index.html ENOENT: no such file or d...

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

628. 【2.0】没有drawToCanvas方法,2.0怎么做截图? [ 72%]

...not defined? 有没有克隆控件的方法,prefab能否在代码上调用 load方法的progress回调进的次数太少了。是我哪里设置有问题么 安卓的截图问题 单个场景加载的时候,使用的Scene3D.load方法的第一个例子,地面部分是白色的 layabox 截图 关...

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

629. laya.d3.animation.AnimationClip [ 72%]

...tionClip  duration():Number 获取动画片段时长。 AnimationClip  load(url:String, complete:Handler):void[static] 加载动画片段。 AnimationClipProtected Methods  MethodDefined By  _disposeResource():void[override] AnimationClipProperty Detailisloopingpropertypublic var islooping:Bo...

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

630. UI-ProgressBar [ 72%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const ProgressBar = Laya.ProgressBar, Handler = Laya.Handler; this.progressBar = new Progr...

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