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

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

2181. 射线BUG [ 51%]

...mera.addComponent(CameraMoveScript); this.camera.clearColor = null; } Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); MousePickingScene.prototype.lateRender = function (state) { MousePickingScene.__super.prototype.lateRender.call(state); //从屏幕空间生成射线 this.point.eleme...

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

2182. Laya 2.2.0 只支持编译 target 为 es6的相关问题 [ 51%]

...持 es6 的 target 编译, 如果改为 target 为 es 编译,会出现 Class constructor XXX cannot be invoked without 'new'。 真机黑屏查了4个小时才查到原因,花了1个多小时改代码(之前很多地方都使用的 async/await ,而且全部改为 promise,没有 async/awa...

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

2183. UNITY导出的模型旋转不了 [ 51%]

...ion(){ //obj.transform.rotate(vect,false,false); //}); })); })); })(this); class BoxControlScript extends Laya.Script3D { constructor() { super(); this.obj = null; this.rotation = new Laya.Vector3(0, 1, 0); } /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完...

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

2184. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 51%]

...ton注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 class Item extends Laya.Box{ public static WID: number = 147; public static HEI: number = 190; private skin_progress_chip:Laya.ProgressBar; private skin_img:Laya.Image; private skin_chipNum:Laya.Text; public skin_btn_use:Laya...

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

2185. 新人求教!!! [ 51%]

新人求教!!! // 程序入口 class Main{ //需要切换的图片资源路径 private monkey1:string = "res/img/monkey1.png"; private monkey2:string = "res/img/monkey2.png"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() {       //初始化引擎   ...

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

2186. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 51%]

...了更新物理根节点去做相机跟踪 代码如下: export default class test extends Laya.Script {         strWorldRoot:Laya.Sprite;     constructor() { super(); }     cameraPlayerOffset:Laya.Point=new Laya.Point(18,0);     cameraOffset:Laya.Point=new Laya.Point(180,570);     onE...

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

2187. 分享:LayaAir下如何获取图集下的小图资源? [ 51%]

...et.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.json",type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private func...

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

2188. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 51%]

... Loader = Laya.Loader; import SpineTemplet = Laya.SpineTemplet; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private skeleton: SpineSkeleton; private index: number = -1; public pageWidth: number; public pageHeight: number; onStart() { console.log("Game sta...

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

2189. LayaAir3D Warning : MyWater must config in CustomShaderConfig File. [ 51%]

...和使用U3D粒子特效 GradientDataNumber warning是什么 Warning!,this class[MiniAdpter] already exist: Object {init: } Failed to load resource: net::ERR_FILE_NOT_FOUND LayaAir3D 3D射击游戏 物体移动碰撞穿透问题 LayaAir3D 3D射击游戏 物体移动碰撞穿透问题 【已解决】...

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

2190. laya.d3.math.Vector3_API3.0 [ 51%]

...erited Externals Only exported Menu Globals "laya/d3/math/Vector3" Vector3 Class Vector3 Vector3 类用于创建三维向量。 Hierarchy Vector3 Implements IClone Index Constructors constructor Properties x y z ForwardLH ForwardRH NegativeUnitX ONE UnitX UnitY UnitZ Up ZERO Methods clone cloneTo cr...

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