Skip to content

Instantly share code, notes, and snippets.

@vicenterusso
Last active August 11, 2024 00:56
Show Gist options
  • Select an option

  • Save vicenterusso/41730e6a4e8fce35d129ef47490ae773 to your computer and use it in GitHub Desktop.

Select an option

Save vicenterusso/41730e6a4e8fce35d129ef47490ae773 to your computer and use it in GitHub Desktop.

Revisions

  1. vicenterusso revised this gist Aug 11, 2024. No changes.
  2. vicenterusso revised this gist Aug 11, 2024. 1 changed file with 19 additions and 1 deletion.
    20 changes: 19 additions & 1 deletion unity-fedora-setup.md
    Original file line number Diff line number Diff line change
    @@ -35,4 +35,22 @@ Make sure both paths are created and with permissions
    ```
    /home/<user>/.config/unity3d/cache
    /home/<user>/.local/share/unity3d
    ```
    ```

    ## Android SDK


    My `.zshrc`:

    ```
    export JAVA_HOME=/home/<user>/Unity/Hub/Editor/2022.3.40f1/Editor/Data/PlaybackEngines/AndroidPlayer/SDK
    export PATH=$JAVA_HOME/bin:$PATH
    ```

    `which java` should point to the same sdk above. Fedora comes with a builtin java that needs the symlimk to be replaced or removed

    ```
    /usr/bin/java -> /home/<user>/Unity/Hub/Editor/2022.3.40f1/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK/bin/java
    ```


  3. vicenterusso revised this gist Aug 11, 2024. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion unity-fedora-setup.md
    Original file line number Diff line number Diff line change
    @@ -26,10 +26,12 @@ update-desktop-database ~/.local/share/applications/

    ## Rider Default IDE

    `Edit -> Preferences -> Package Manager`
    I had this problem of Rider not being recognized after restarting Unity. I fixed by doing this:

    Make sure both paths are created and with permissions

    `Edit -> Preferences -> Package Manager`

    ```
    /home/<user>/.config/unity3d/cache
    /home/<user>/.local/share/unity3d
  4. vicenterusso renamed this gist Aug 11, 2024. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion unity-editor.desktop.md → unity-fedora-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    ## KDE Fix Icon (Wayland?)

    ### Create the desktop file

    ```sh
    @@ -20,4 +22,15 @@ chmod +x ~/.local/share/applications/unity-editor.desktop
    update-desktop-database ~/.local/share/applications/
    ```

    ### Done.
    ### Done.

    ## Rider Default IDE

    `Edit -> Preferences -> Package Manager`

    Make sure both paths are created and with permissions

    ```
    /home/<user>/.config/unity3d/cache
    /home/<user>/.local/share/unity3d
    ```
  5. vicenterusso created this gist Aug 2, 2024.
    23 changes: 23 additions & 0 deletions unity-editor.desktop.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    ### Create the desktop file

    ```sh
    nano ~/.local/share/applications/unity-editor.desktop
    ```

    ```
    [Desktop Entry]
    Name=Unity Editor
    Exec=/home/USER/Unity/Hub/Editor/2022.3.40f1/Editor/Unity
    Icon=/home/USER/Unity/Hub/Editor/2022.3.40f1/Editor/Data/Resources/LargeUnityIcon.png
    Type=Application
    StartupNotify=true
    ```

    ### Run

    ```
    chmod +x ~/.local/share/applications/unity-editor.desktop
    update-desktop-database ~/.local/share/applications/
    ```

    ### Done.