-
Notifications
You must be signed in to change notification settings - Fork 329
CHANGE: Remove code that supported Unity versions older than 2022 LTS #2274
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
Open
K-Tone
wants to merge
7
commits into
develop
Choose a base branch
from
anthony/retire-unity-older-than-2022.3lts
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4498f06
remove direct mentions of pre 2022.3 lts stuff
K-Tone 77410be
transform.SetPositionAndRotation is always available these days
K-Tone 926589a
remove support for the Daydream controller (deprecated in October 2020)
K-Tone fe900b3
roll back a temporary fix that we allegedly no longer need in 2022.3 …
K-Tone fda63bc
update release notes
K-Tone 30eb8e6
Apply suggestion from @u-pr-agent[bot]
K-Tone e74cf8e
Revert "remove support for the Daydream controller (deprecated in Oct…
K-Tone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -587,26 +587,26 @@ protected virtual void SetLocalTransform(Vector3 newPosition, Quaternion newRota | |
| var positionValid = m_IgnoreTrackingState || (m_CurrentTrackingState & TrackingStates.Position) != 0; | ||
| var rotationValid = m_IgnoreTrackingState || (m_CurrentTrackingState & TrackingStates.Rotation) != 0; | ||
|
|
||
| #if HAS_SET_LOCAL_POSITION_AND_ROTATION | ||
| if (m_TrackingType == TrackingType.RotationAndPosition && rotationValid && positionValid) | ||
| switch (m_TrackingType) | ||
| { | ||
| transform.SetLocalPositionAndRotation(newPosition, newRotation); | ||
| return; | ||
| } | ||
| #endif | ||
|
|
||
| if (rotationValid && | ||
| (m_TrackingType == TrackingType.RotationAndPosition || | ||
| m_TrackingType == TrackingType.RotationOnly)) | ||
| { | ||
| transform.localRotation = newRotation; | ||
| } | ||
|
|
||
| if (positionValid && | ||
| (m_TrackingType == TrackingType.RotationAndPosition || | ||
| m_TrackingType == TrackingType.PositionOnly)) | ||
| { | ||
| transform.localPosition = newPosition; | ||
| case TrackingType.RotationAndPosition: | ||
| if (rotationValid && positionValid) | ||
| transform.SetLocalPositionAndRotation(newPosition, newRotation); | ||
| else if (rotationValid) | ||
| transform.localRotation = newRotation; | ||
| else if (positionValid) | ||
| transform.localPosition = newPosition; | ||
| break; | ||
|
|
||
| case TrackingType.PositionOnly: | ||
| if (positionValid) | ||
| transform.localPosition = newPosition; | ||
| break; | ||
|
|
||
| case TrackingType.RotationOnly: | ||
| if (rotationValid) | ||
| transform.localRotation = newRotation; | ||
| break; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This code is still logically the same as on the left, I just rephrased it to be more explicit in 2022 LTS+ |
||
| } | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is a rollback of 7d53de2, for which we hopefully have a native-side solution in 2022 LTS now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is that solved now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ekcoh would know better