// gets the person group info private void GetOrGreateUserGroup() { if (!string.IsNullOrEmpty(userGroupId) && faceManager != null) { try { personGroup = faceManager.GetPersonGroup(userGroupId); } catch (Exception ex) { Debug.Log(ex.Message); Debug.Log("Trying to create user-group '" + userGroupId + "'..."); if (faceManager.CreatePersonGroup(userGroupId, userGroupId, string.Empty)) { faceManager.TrainPersonGroup(userGroupId); personGroup = faceManager.GetPersonGroup(userGroupId); } Debug.Log("User-group '" + userGroupId + "' created."); } initedGroupId = (personGroup != null) ? personGroup.personGroupId : string.Empty; } }