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

NEW: Throw error when extension for inputsystem needed #2101

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

ritamerkl
Copy link
Collaborator

@ritamerkl ritamerkl commented Dec 30, 2024

Description

Trying to use Input System package on console without the NDA package installed outputs an error message to the user.
The error is thrown in [OnInitializeLoad] and performs on loading a project, on switching platforms and domain reload.
Link to the related ticket.

GXDK extension registeres it self with this PR.

Testing status & QA

Manual testing for Switch platform.
Platforms missing: (which should surface this error without the installed Plugin)
-gamecore
-playstation (4&5)
-switch
-xboxone

Overall Product Risks

Please rate the potential complexity and halo effect from low to high for the reviewers. Note down potential risks to specific Editor branches if any.

  • Complexity:
  • Halo Effect:

Comments to reviewers

Please describe any additional information such as what to focus on, or historical info for the reviewers.

Checklist

Before review:

  • Changelog entry added.
    • Explains the change in Changed, Fixed, Added sections.
    • For API change contains an example snippet and/or migration example.
    • JIRA ticket linked, example (case %%). If it is a private issue, just add the case ID without a link.
    • Jira port for the next release set as "Resolved".
  • Tests added/changed, if applicable.
    • Functional tests Area_CanDoX, Area_CanDoX_EvenIfYIsTheCase, Area_WhenIDoX_AndYHappens_ThisIsTheResult.
    • Performance tests.
    • Integration tests.
  • Docs for new/changed API's.
    • Xmldoc cross references are set correctly.
    • Added explanation how the API works.
    • Usage code examples added.
    • The manual is updated, if needed.

During merge:

  • Commit message for squash-merge is prefixed with one of the list:
    • NEW: ___.
    • FIX: ___.
    • DOCS: ___.
    • CHANGE: ___.
    • RELEASE: 1.1.0-preview.3.

After merge:

  • Create forward/backward port if needed. If you are blocked from creating a forward port now please add a task to ISX-1444.

@ritamerkl ritamerkl requested review from ekcoh, Pauliusd01 and lyndon-unity and removed request for ekcoh December 30, 2024 12:33
@ritamerkl ritamerkl marked this pull request as draft December 30, 2024 12:50
@ritamerkl ritamerkl marked this pull request as ready for review January 2, 2025 13:20
BuildTarget.StandaloneLinux64,
BuildTarget.tvOS,
BuildTarget.LinuxHeadlessSimulation,
BuildTarget.PS5,
Copy link
Collaborator

Choose a reason for hiding this comment

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

As mentioned in the U7 version of this PR, PS5 does need an NDA package too so not expecting this in the list.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed in 16479d4

private static bool IsPluginInstalled()
{
var registeredPackages = UnityEditor.PackageManager.PackageInfo.GetAllRegisteredPackages();
foreach (var package in registeredPackages)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Need to check this takes into account the platforms required plugin. I'm concerned this would pass if p4 package installed and trying to use xbox.

Copy link
Collaborator Author

@ritamerkl ritamerkl Jan 6, 2025

Choose a reason for hiding this comment

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

see follow up in this ticket and this PR

@Pauliusd01
Copy link
Collaborator

Pauliusd01 commented Jan 6, 2025

Is this only when trying to build the actual player? Or should it also work for simply switching to the platform atm? Since I tried to switch to the xbox player and I'm able to run scenes in play mode without any of the warnings. One note, I have the platform installed but I do not have its GDK which might be the cause? Never mind I switched scenes and suddenly it works, will mess around a bit more, might be a false alarm

public class InputSystemPluginControl
{
//At the time of InitializeOnLoad the packages are compiled and registered
[InitializeOnLoadMethod]
private static void CheckForExtension()
{
ThrowWarningOnMissingPlugin();
m_pluginPackageRegistered = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

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.

3 participants