Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unity 6 (6000) support. #967

Open
Open
Labels
androidThis issue is specific to the Android Platform.enhancementNew feature or requesthelp wantedExtra attention is needediosThis issue is specific to the iOS/iPadOS Platform.unity breaking change
@timbotimbo

Description

@timbotimbo

Update

I've published a forked package on pub.dev:flutter_unity_widget_2.
Versions 6000.x.y are based on this branch.

Make sure to check themigration steps if you switch to this plugin.

You can use either this forked plugin, or use git dependencies as explained below.

Original

See my original (pre-fork) message below.

Description

Unity 2023.1 and 6 (6000.0) include breaking changes for the Android version of this plugin.
And given that 2023.3 turned into 6000, I decided to implement support for Unity 6000.

For a litte more info, see the PR#966

Installing

This version is now live in theexperimental/unity_6000 branch.

You can either download it and include the plugin using a relative path

flutter_unity_widget:    path: <folder path>

or include it using the git url

flutter_unity_widget:    git:      url: https://github.com/juicycleff/flutter-unity-view-widget.git      ref: experimental/unity_6000 # branch name

Setup (android)

  1. Follow the regular android setup like in the readme. But ignore settingndk.dir= inlocal.properties.
    Use thendkVersion = "<ndk version number here>" approach.

  2. Your Flutter project will need to use Java 17 and gradle 8.x to match the versions used by Unity.
    Check the example project in the unity_6000 branch for the relevant build.gradle files.

Unity VersionGradle VersionAndroid Gradle Plug-in VersionNDKJDK
6000.0.45f1+8.118.7.2r27c (27.2.12479018)17
6000.0.1f1 - 6000.0.44f18.48.3.0r27c (27.2.12479018)17

You can also checkthe Unity documentation for any updates. You can change the editor version in the top left.

  1. Use the 6000.0.x unitypackage or copy the latestunity/Assets/FlutterUnityIntegration/Editor folder from the branch into your Unity project.

  2. If you are migrating an existing project, make sure to delete any old exports inios/UnityLibrary andandroid/unityLibrary before making a new export.

  3. Set the UnityApplication Entry Point toActivity.Player Settings -> Settings for Android -> Other Settings -> Application Entry Point

  4. After the Unity export,android/unityLibrary/build.gradle might include a broken import.

    • Either fix this automatically by updating yourAssets/FlutterUnityIntegration/Editor/build.cs file with the one from the example project.
    • Or comment the 2nd lineapply from: '../shared/keepUnitySymbols.gradle' inunityLibrary/build.gradle

Setup (ios)

There don't seem to be any breaking changes in the plugin for iOS.

You do need a small change in the Unity export.
Use the 6000.0.0 unitypackage or copy the latestunity/Assets/FlutterUnityIntegration/Editor folder from the branch into your Unity project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidThis issue is specific to the Android Platform.enhancementNew feature or requesthelp wantedExtra attention is needediosThis issue is specific to the iOS/iPadOS Platform.unity breaking change

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp