Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

Roll a Ball tutorial

Discussion in 'Getting Started' started by kmo86, Mar 25, 2021.

  1. kmo86

    kmo86

    Joined:
    Dec 15, 2020
    Posts:
    100
    I'm going through https://learn.unity.com/tutorial/mo...8f1bedbc2a0020e51f0d#5f107d23edbc2a002027994e and Ive got to "add player input component" done exactly what it says and get an error saying
    NullReferenceException: SerializedObject of SerializedProperty has been Disposed.
    UnityEditor.SerializedProperty.Verify (UnityEditor.SerializedProperty+VerifyFlags verifyFlags) (at <bef6d2fbef1348939b77102b4cf6a6e6>:0)
    UnityEditor.SerializedProperty.set_objectReferenceValue (UnityEngine.Object value) (at <bef6d2fbef1348939b77102b4cf6a6e6>:0)
    UnityEngine.InputSystem.Editor.PlayerInputEditor+<>c__DisplayClass6_0.<DoHelpCreateAssetUI>b__0 () (at Library/PackageCache/com.unity.inputsystem@1.0.2/InputSystem/Plugins/PlayerInput/PlayerInputEditor.cs:285)
    UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at <bef6d2fbef1348939b77102b4cf6a6e6>:0)

    The UI input modual in the inspector says none and I cant put anything into it. I have installed the input settings it tells you to install. Any ideas whats wrong? Also I have done the code to where the ball should move and it doesn't work which I guess is cos of the error I'm getting.
     
  2. kmo86

    kmo86

    Joined:
    Dec 15, 2020
    Posts:
    100
    Can anyone help
     
  3. stain2319

    stain2319

    Joined:
    Mar 2, 2020
    Posts:
    171
  4. kmo86

    kmo86

    Joined:
    Dec 15, 2020
    Posts:
    100
    Doesn't help I'm already using default view and I've closed and restarted a few times and problem still there.
     
  5. stain2319

    stain2319

    Joined:
    Mar 2, 2020
    Posts:
    171
    Did you try downgrading the input system package?
     
  6. kmo86

    kmo86

    Joined:
    Dec 15, 2020
    Posts:
    100
    No how do I do that? Also there is a link to a long script which must be done for the tutorial as I haven't done any of it and it highlights this line
    m_ActionsProperty.objectReferenceValue = importedObject;
     
  7. kmo86

    kmo86

    Joined:
    Dec 15, 2020
    Posts:
    100
    Its now working. It let me drag the input into the inspector.
     
unityunity