大约有 400 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
# 批量销毁释放内存 ###### *version :2.0.2beta Update:2019-5-8* Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用的材质,纹理,网格并不会跟随精灵的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取...
来源: Laya2.0_文档 发布时间: 20210715
...的文档更新有点问题,有些注释和代码没对应上。 let scene3d = new Laya.Scene3D(); let outHitInfoAll = new Laya.HitResult(); scene3d.physicsSimulation.rayCastAll(this.ray, outHitInfoAll, depth); 2018-12-19 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...
来源: Laya_社区 发布时间: 20181219
...灯实时阴影的示例代码和效果: ```typescript receaveRealShadow(scene3d) { var childLength = scene3d.numChildren; for(var i = 0;i<childLength;i++) { var childSprite = scene3d.getChildAt(i); if(childSprite instanceof MeshSprite3D) { //设置精灵接收阴影 childSprite.meshRenderer.recei...
来源: Laya2.0_文档 发布时间: 20210714
...时候,会执行SingletonList._remove,修改了element._indexInList; Scene3D._castShadowRenders和Scene3D._renders有相同element时,_castShadowRenders删除element时修改element._indexInList,导致Scene3D._renders删除元素时,执行element._getIndexInList()获取到错误的值 20...
来源: Laya_社区 发布时间: 20181119
...击选取的几何体"; } else { Laya.stage.removeChild(scene3D); } console.log(str); }); 每次删除scene3D后又被添加进来了。不知道什么原因,是stage中的scene不能被删除吗? 2017-10-16 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20171016
...的问题。远程加载完.ls文件,回调的参数为undefined. Laya.Scene3D.load('http://47.98.192.87/pages/index/3dres/scene/Sample.ls', Laya.Handler.create(this, function(_scene:Laya.Scene3D){ //这里打印出_scene不存在。 that._scene3D = _scene; Laya.stage.addChild(_scene); }));
来源: Laya_社区 发布时间: 20201130
... setFarDistance(value:Number):voidParallelSplitShadowMap setInfo(scene:Scene3D, maxDistance:Number, globalParallelDir:Vector3, shadowMapTextureSize:int, numberOfPSSM:int, PCFType:int):voidParallelSplitShadowMap setPCFType(PCFtype:int):voidParallelSplitShadowMap setShadowMapTextureSize(size...
来源: Laya2.0_api 发布时间: 20190513
... Laya.stage.screenMode = Stage.SCREEN_NONE; Scene3D.load("res/model/LayaScene_Car/Conventional/car.ls", Handler.create(null, function(scene:Scene3D):void { Laya.stage.addChild(scene) as Scene3D; camera = s...
来源: Laya_社区 发布时间: 20190328
...我给你写的案例,你是不是使用的方式不对 public var scene:Scene3D; public var camera:Camera; public function SkyBoxSample1() { Laya3D.init(0, 0); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); //Laya.stage.on(Event.RIGHT_MOUSE_DOWN, ...
来源: Laya_社区 发布时间: 20181017
...ameConfig from "./GameConfig"; class Main { //private scene:Laya.Scene3D; private text:Laya.Text; private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor() { this._upVector3 = new Laya.Vector3(0, 1, 0); Laya3D.init(0,...
来源: Laya_社区 发布时间: 20190531