public void SaveAvatarProperly() { userProfile.UpdateData(new UserProfileModel() { name = "name", email = "mail", avatar = new AvatarModel() { bodyShape = WearableLiterals.BodyShapes.FEMALE, wearables = new List <string>() { EYEBROWS_ID, "dcl://base-avatars/f_eyes_00", "dcl://base-avatars/bear_slippers", "dcl://base-avatars/f_african_leggins", "dcl://base-avatars/f_mouth_00", "dcl://base-avatars/blue_bandana", "dcl://base-avatars/bee_t_shirt" }, skinColor = skinColorList.colors[0], hairColor = hairColorList.colors[0], eyeColor = eyeColorList.colors[0], } }, false); controller.WearableClicked(WearableLiterals.BodyShapes.MALE); controller.WearableClicked("dcl://base-avatars/eyebrows_01"); controller.WearableClicked("dcl://base-avatars/eyes_00"); controller.WearableClicked("dcl://base-avatars/bear_slippers"); controller.WearableClicked("dcl://base-avatars/basketball_shorts"); controller.WearableClicked("dcl://base-avatars/mouth_00"); controller.WearableClicked("dcl://base-avatars/blue_bandana"); controller.WearableClicked("dcl://base-avatars/black_jacket"); Sprite whiteSprite = Sprite.Create(Texture2D.whiteTexture, new Rect(0, 0, Texture2D.whiteTexture.width, Texture2D.whiteTexture.height), Vector2.zero); controller.SaveAvatar(whiteSprite, whiteSprite); AssertAvatarModelAgainstAvatarEditorHUDModel(userProfile.avatar, controller.myModel); }
public void SaveAvatarProperly() { userProfile.UpdateData(new UserProfileModel() { name = "name", email = "mail", avatar = new AvatarModel() { bodyShape = WearableLiterals.BodyShapes.FEMALE, wearables = new List <string>() { EYEBROWS_ID, "urn:decentraland:off-chain:base-avatars:f_eyes_00", "urn:decentraland:off-chain:base-avatars:bear_slippers", "urn:decentraland:off-chain:base-avatars:f_african_leggins", "urn:decentraland:off-chain:base-avatars:f_mouth_00", "urn:decentraland:off-chain:base-avatars:blue_bandana", "urn:decentraland:off-chain:base-avatars:bee_t_shirt" }, skinColor = skinColorList.colors[0], hairColor = hairColorList.colors[0], eyeColor = eyeColorList.colors[0], } }, false); controller.WearableClicked(WearableLiterals.BodyShapes.MALE); controller.WearableClicked("urn:decentraland:off-chain:base-avatars:eyebrows_01"); controller.WearableClicked("urn:decentraland:off-chain:base-avatars:eyes_00"); controller.WearableClicked("urn:decentraland:off-chain:base-avatars:bear_slippers"); controller.WearableClicked("urn:decentraland:off-chain:base-avatars:basketball_shorts"); controller.WearableClicked("urn:decentraland:off-chain:base-avatars:mouth_00"); controller.WearableClicked("urn:decentraland:off-chain:base-avatars:blue_bandana"); controller.WearableClicked("urn:decentraland:off-chain:base-avatars:black_jacket"); controller.SaveAvatar(Texture2D.whiteTexture, Texture2D.whiteTexture, Texture2D.whiteTexture, Texture2D.whiteTexture); AssertAvatarModelAgainstAvatarEditorHUDModel(userProfile.avatar, controller.myModel); }