public IEnumerator GLTFShapeIsResetWhenReenteringBoundsDebugMode() { sceneController.isDebugMode = true; yield return(SBC_Asserts.GLTFShapeIsResetWhenReenteringBounds(scene)); sceneController.isDebugMode = false; }
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); }
public bool MeshIsInvalid(DecentralandEntity.MeshesInfo meshesInfo) { return(SBC_Asserts.MeshIsInvalid(meshesInfo)); }
public IEnumerator HeightIsEvaluated() { yield return(SBC_Asserts.HeightIsEvaluated(scene)); }
public IEnumerator ChildShapeIsEvaluatedOnShapelessParent() { yield return(SBC_Asserts.ChildShapeIsEvaluatedOnShapelessParent(scene)); }
public IEnumerator ChildShapeIsEvaluated() { yield return(SBC_Asserts.ChildShapeIsEvaluated(scene)); }
public IEnumerator NFTShapeIsResetWhenReenteringBounds() { yield return(SBC_Asserts.NFTShapeIsResetWhenReenteringBounds(scene)); }
public IEnumerator NFTShapeIsInvalidatedWhenLeavingBounds() { yield return(SBC_Asserts.NFTShapeIsInvalidatedWhenLeavingBounds(scene)); }
public IEnumerator NFTShapeIsInvalidatedWhenStartingOutOfBounds() { yield return(SBC_Asserts.NFTShapeIsInvalidatedWhenStartingOutOfBounds(scene)); }
public IEnumerator EntitiesAreBeingCorrectlyRegistered() { yield return(SBC_Asserts.EntitiesAreBeingCorrectlyRegistered(scene)); }
public IEnumerator GLTFShapeIsInvalidatedWhenStartingOutOfBoundsDebugMode() { yield return(SBC_Asserts.GLTFShapeIsInvalidatedWhenStartingOutOfBounds(scene)); }
public IEnumerator GLTFShapeIsResetWhenReenteringBoundsDebugMode() { yield return(SBC_Asserts.GLTFShapeIsResetWhenReenteringBounds(scene)); }
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)); }