Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh Helper multi-mesh support #241

Merged
merged 4 commits into from
Feb 27, 2024
Merged

Mesh Helper multi-mesh support #241

merged 4 commits into from
Feb 27, 2024

Conversation

srcnalt
Copy link
Contributor

@srcnalt srcnalt commented Feb 27, 2024

SDK-524

Description

  • Mesh helper now supports transfer from multiple source mesh, material and bones target

How to Test

  • Load atlassed and non-atlassed avatars with different customization combinations in Photon Sample project

Checklist

  • Tests written or updated for the changes.
  • Documentation is updated.
  • Changelog is updated.

@srcnalt srcnalt requested a review from a team as a code owner February 27, 2024 11:13
@srcnalt srcnalt changed the title Mesh Helper, multi-mesh support Mesh Helper multi-mesh support Feb 27, 2024
/// </summary>
/// <param name="source">Imported Ready Player Me avatar.</param>
/// <param name="target">Photon Network Player Character.</param>
public static void TransferMesh(GameObject source, GameObject target)
Copy link
Contributor

@rk132 rk132 Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is breaking change? We can't remove the TransferMesh with old definition yet?

Copy link
Contributor Author

@srcnalt srcnalt Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes changed the signature. Here is the PR for photon sample changes: readyplayerme/rpm-unity-sdk-photon-support#7

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I meant is that this would require a move to the 7.0.0 version, since it might break functionality for the users. Do we want that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a minor functionality change probably only used by people who used latest version of photon demo with this method, I would not expect it to be that impactful but you would know better if it is widely used somewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I better bring back old signature and mark it obsolete.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't on usage, but I rather don't want to find it out 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay now it wont break, I brought old signature, incase anyone still relied on it. Will work and warn that the method is obsolete.

Copy link
Contributor

@rk132 rk132 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general, but we need the old definition back as well.

@srcnalt srcnalt merged commit d5dfa0d into develop Feb 27, 2024
@srcnalt srcnalt deleted the feature/mesh-helper-update branch February 27, 2024 12:35
@srcnalt srcnalt mentioned this pull request Mar 3, 2024
3 tasks
srcnalt added a commit that referenced this pull request Mar 4, 2024
<!-- Copy the TICKETID for this task from Jira and add it to the PR name
in brackets -->
<!-- PR name should look like: [TICKETID] My Pull Request -->

<!-- Add link for the ticket here editing the TICKETID-->

## [TICKETID](https://ready-player-me.atlassian.net/browse/TICKETID)

## Description
### Updated
- AvatarMeshHelper now supports multiple mesh and material transfer.
[#241](#241)

### Added
- GetHeadMeshes method to AvatarMeshHelper to get head related meshes
from an avatar.
[#242](#242)
- Template avatar with all possible meshes is added to the Resources
folder.

## Checklist

-   [x] Tests written or updated for the changes.
-   [ ] Documentation is updated.
-   [x] Changelog is updated.

<!--- Remember to copy the Changes Section into the commit message when
you close the PR -->

---------

Co-authored-by: Harrison Hough <[email protected]>
Co-authored-by: Raigo Kovask <[email protected]>
Co-authored-by: Raigo Kõvask <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants