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

            sceneController.isDebugMode = false;
        }
Exemplo 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);
        }
Exemplo n.º 3
0
 public bool MeshIsInvalid(DecentralandEntity.MeshesInfo meshesInfo)
 {
     return(SBC_Asserts.MeshIsInvalid(meshesInfo));
 }
Exemplo n.º 4
0
 public IEnumerator HeightIsEvaluated()
 {
     yield return(SBC_Asserts.HeightIsEvaluated(scene));
 }
Exemplo n.º 5
0
 public IEnumerator ChildShapeIsEvaluatedOnShapelessParent()
 {
     yield return(SBC_Asserts.ChildShapeIsEvaluatedOnShapelessParent(scene));
 }
Exemplo n.º 6
0
 public IEnumerator ChildShapeIsEvaluated()
 {
     yield return(SBC_Asserts.ChildShapeIsEvaluated(scene));
 }
Exemplo n.º 7
0
 public IEnumerator NFTShapeIsResetWhenReenteringBounds()
 {
     yield return(SBC_Asserts.NFTShapeIsResetWhenReenteringBounds(scene));
 }
Exemplo n.º 8
0
 public IEnumerator NFTShapeIsInvalidatedWhenLeavingBounds()
 {
     yield return(SBC_Asserts.NFTShapeIsInvalidatedWhenLeavingBounds(scene));
 }
Exemplo n.º 9
0
 public IEnumerator NFTShapeIsInvalidatedWhenStartingOutOfBounds()
 {
     yield return(SBC_Asserts.NFTShapeIsInvalidatedWhenStartingOutOfBounds(scene));
 }
 public IEnumerator EntitiesAreBeingCorrectlyRegistered()
 {
     yield return(SBC_Asserts.EntitiesAreBeingCorrectlyRegistered(scene));
 }
Exemplo n.º 11
0
 public IEnumerator GLTFShapeIsInvalidatedWhenStartingOutOfBoundsDebugMode()
 {
     yield return(SBC_Asserts.GLTFShapeIsInvalidatedWhenStartingOutOfBounds(scene));
 }
Exemplo n.º 12
0
 public IEnumerator GLTFShapeIsResetWhenReenteringBoundsDebugMode()
 {
     yield return(SBC_Asserts.GLTFShapeIsResetWhenReenteringBounds(scene));
 }
Exemplo 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));
        }