public IEnumerator GLTFShapeIsResetWhenReenteringBoundsDebugMode()
        {
            sceneController.isDebugMode = true;
            yield return(SBC_Asserts.GLTFShapeIsResetWhenReenteringBounds(scene));

            sceneController.isDebugMode = false;
        }
Esempio n. 2
0
        public IEnumerator ResetMaterialCorrectlyWhenInvalidEntitiesAreRemoved()
        {
            var entity = TestHelpers.CreateSceneEntity(scene);

            TestHelpers.SetEntityTransform(scene, entity, new DCLTransform.Model {
                position = new Vector3(8, 1, 8)
            });
            TestHelpers.CreateAndSetShape(scene, entity.entityId, DCL.Models.CLASS_ID.GLTF_SHAPE, JsonConvert.SerializeObject(
                                              new
            {
                src = TestAssetsUtils.GetPath() + "/GLB/PalmTree_01.glb"
            }));

            LoadWrapper gltfShape = GLTFShape.GetLoaderForEntity(entity);

            yield return(new UnityEngine.WaitUntil(() => gltfShape.alreadyLoaded));

            yield return(null);

            SBC_Asserts.AssertMeshIsValid(entity.meshesInfo);
            // Move object to surpass the scene boundaries
            TestHelpers.SetEntityTransform(scene, entity, new DCLTransform.Model {
                position = new Vector3(18, 1, 18)
            });

            yield return(null);

            SBC_Asserts.AssertMeshIsInvalid(entity.meshesInfo);

            TestHelpers.RemoveSceneEntity(scene, entity.entityId);

            Environment.i.platform.parcelScenesCleaner.ForceCleanup();

            yield return(null);

            var entity2 = TestHelpers.CreateSceneEntity(scene);

            TestHelpers.SetEntityTransform(scene, entity2, new DCLTransform.Model {
                position = new Vector3(8, 1, 8)
            });
            TestHelpers.CreateAndSetShape(scene, entity2.entityId, DCL.Models.CLASS_ID.GLTF_SHAPE, JsonConvert.SerializeObject(
                                              new
            {
                src = TestAssetsUtils.GetPath() + "/GLB/PalmTree_01.glb"
            }));

            LoadWrapper gltfShape2 = GLTFShape.GetLoaderForEntity(entity2);

            yield return(new UnityEngine.WaitUntil(() => gltfShape2.alreadyLoaded));

            yield return(null);

            SBC_Asserts.AssertMeshIsValid(entity2.meshesInfo);
        }
Esempio n. 3
0
 public bool MeshIsInvalid(DecentralandEntity.MeshesInfo meshesInfo)
 {
     return(SBC_Asserts.MeshIsInvalid(meshesInfo));
 }
Esempio n. 4
0
 public IEnumerator HeightIsEvaluated()
 {
     yield return(SBC_Asserts.HeightIsEvaluated(scene));
 }
Esempio n. 5
0
 public IEnumerator ChildShapeIsEvaluatedOnShapelessParent()
 {
     yield return(SBC_Asserts.ChildShapeIsEvaluatedOnShapelessParent(scene));
 }
Esempio n. 6
0
 public IEnumerator ChildShapeIsEvaluated()
 {
     yield return(SBC_Asserts.ChildShapeIsEvaluated(scene));
 }
Esempio n. 7
0
 public IEnumerator NFTShapeIsResetWhenReenteringBounds()
 {
     yield return(SBC_Asserts.NFTShapeIsResetWhenReenteringBounds(scene));
 }
Esempio n. 8
0
 public IEnumerator NFTShapeIsInvalidatedWhenLeavingBounds()
 {
     yield return(SBC_Asserts.NFTShapeIsInvalidatedWhenLeavingBounds(scene));
 }
Esempio n. 9
0
 public IEnumerator NFTShapeIsInvalidatedWhenStartingOutOfBounds()
 {
     yield return(SBC_Asserts.NFTShapeIsInvalidatedWhenStartingOutOfBounds(scene));
 }
 public IEnumerator EntitiesAreBeingCorrectlyRegistered()
 {
     yield return(SBC_Asserts.EntitiesAreBeingCorrectlyRegistered(scene));
 }
Esempio n. 11
0
 public IEnumerator GLTFShapeIsInvalidatedWhenStartingOutOfBoundsDebugMode()
 {
     yield return(SBC_Asserts.GLTFShapeIsInvalidatedWhenStartingOutOfBounds(scene));
 }
Esempio n. 12
0
 public IEnumerator GLTFShapeIsResetWhenReenteringBoundsDebugMode()
 {
     yield return(SBC_Asserts.GLTFShapeIsResetWhenReenteringBounds(scene));
 }
Esempio n. 13
0
 public IEnumerator PShapeIsInvalidatedWhenLeavingBoundsDebugMode()
 {
     yield return(SBC_Asserts.PShapeIsInvalidatedWhenLeavingBounds(scene));
 }
        public IEnumerator ChildShapeIsEvaluatedDebugMode()
        {
            yield return(InitScene(false, true, true, true, debugMode: true));

            yield return(SBC_Asserts.ChildShapeIsEvaluated(scene));
        }