大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0141 秒)
Laya_社区(1928) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(49)
...区域滚动效果,但scrollRect会保持0,0点位置不变。 default null Returns Rectangle Inherited from Text.viewport Defined in laya/display/Sprite.ts:1885 视口大小,视口外的子对象,将不被渲染(如果想实现裁剪效果,请使用srollRect),合理使用能提高渲染...
来源: Laya3.0_api 发布时间: 20231115
...aceFromBuffer is not a function TypeError: Cannot set property 'pivotX' of null 打开弹窗UI时报错 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' TypeError: Cannot read property 'length' of null TypeError: Cannot read property 'getSubShaderAt' of undefined Uncau...
来源: Laya_社区 发布时间: 20180307
...Img.y; } function onOrientationChange(absolute, info) { if (info.alpha === null) { alert("当前设备不支持陀螺仪。"); } else if (firstTime && !absolute && !Browser.onIOS) { firstTime = false; alert("在当前设备中无法获取地球坐标系,使用设备坐标系,你可以继续观...
来源: Laya_示例 发布时间: 20260303
...所有引用。Sprite提供的destory()方法会帮助设置内部引用为null。 例如,以下代码确保对象能够被作为垃圾回收: //创建一个Sprite实例 var sp:Laya.Sprite = new Laya.Sprite(); //将sp内部引用设置为null sp.destroy(); 当对象设置为null,不会立即...
来源: Laya3.0_文档 发布时间: 20251010
... Parameters ray: Ray 射线 Default value outHitResult: CannonHitResult = null Default value distance: number = 2147483647 射线长度,默认为最大值 Default value collisonGroup: number = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER 射线所属碰撞组。 Default value collisionMask: number ...
来源: Laya3.0_api 发布时间: 20231102
...nChange(absolute, info) { const Browser = Laya.Browser; if (info.alpha === null) { alert("当前设备不支持陀螺仪。"); } else if (firstTime && !absolute && !Browser.onIOS) { firstTime = false; alert("在当前设备中无法获取地球坐标系,使用设备坐标系,你可以继续观...
来源: Laya2.0_示例 发布时间: 20260303
...istener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); IFlash.setSize(960, 640); //2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为横屏模式 IFlash.setBgcolor("#000000"); //背景色 IFlash.show...
来源: Laya_社区 发布时间: 20151218
... this.onResLoadFinish(bit); }),null,"htmlimage",1,false,null,true); 2020-03-18 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wade2020 相关问题 laya针对页游耗用内存大的问题是如...
来源: Laya_社区 发布时间: 20200317
...s/TiledMap/desert.json", viewRect, new Handler(this, completeHandler),null,null,true,true); 移动视口范围还是一样 谢 • 2018-06-26 16:46 这个问题是因为 设置 tiledMap.scale=1.2; 地图尺寸没有按规定的1.2倍缩放 谢 • 2018-06-26 16:46 巨坑············...
来源: Laya_社区 发布时间: 20180612
... 在硬件(陀螺仪)不支持的情况下,alpha、beta和gamma值为null。 Public Properties PropertyDefined By x : Number x轴上的加速度值。 AccelerationInfo y : Number y轴上的加速度值。 AccelerationInfo z : Number z轴上的加速度值。 AccelerationInfoPublic Me...
来源: laya_api 发布时间: 20170929