Skip to content

Commit 26316ec

Browse files
committed
upgrade unity to latest LTS
1 parent d363d5b commit 26316ec

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is a _reference project_ for those that want to use [Unity as a Library](ht
77
## Requirements
88

99
- Physical device with iOS 17.5 or later.
10-
- Unity Editor 2022.3.36f1 - latest LTS at time of this writing - with iOS build support installed in Unity Hub.
10+
- Unity Editor 2022.3.37f1 - latest LTS as of Jul 9, 2024 - with iOS build support installed in Unity Hub.
1111

1212
## Instructions
1313

@@ -22,7 +22,7 @@ This is a _reference project_ for those that want to use [Unity as a Library](ht
2222
mkdir -p UnityProject/Builds/iOS
2323
```
2424

25-
3. **Open Unity project**
25+
3. **Open and build Unity project**
2626
- Use Unity Hub to open `UnityProject` directory.
2727
- Go to `File > Build Settings`.
2828
- In platform menu, select `iOS` and click `Switch Platform`.
@@ -35,16 +35,16 @@ This is a _reference project_ for those that want to use [Unity as a Library](ht
3535
- Edit `UnitySwiftUI` target's signing settings with valid bundle identifier and signing team ID.
3636
- Switch to `UnitySwiftUI` scheme.
3737
38-
6. **Run app on a physical device**
39-
- Connect your physical device to Xcode.
38+
6. **Run on physical device**
39+
- Connect your device to Xcode.
4040
- Build and run `UnitySwiftUI` scheme to your device.
4141
4242
## Key features
4343
44-
- **Control of Unity view** as a SwiftUI element that can be repositioned and resized. Unity's [documentation](https://docs.unity3d.com/2022.3/Documentation/Manual/UnityasaLibrary-iOS.html) says "Unity as a Library only supports full-screen rendering, and doesn’t support rendering on part of the screen." We have fixed this limitation.
45-
- **Touches and gestures** on Unity view are processed within Unity.
46-
- **Restarting** the Unity player.
47-
- **State data** is sent from native Swift to Unity C# as a struct with members including string, boolean, floating point, integer, and MTLTexture types.
44+
- Control of Unity view as a SwiftUI element that can be repositioned and resized. Unity's [documentation](https://docs.unity3d.com/2022.3/Documentation/Manual/UnityasaLibrary-iOS.html) says "Unity as a Library only supports full-screen rendering, and doesn’t support rendering on part of the screen." We have fixed this limitation.
45+
- Touches and gestures on Unity view are processed within Unity.
46+
- Restarting the Unity player.
47+
- State is sent from native Swift to Unity C# as a struct with members including string, boolean, floating point, integer, and MTLTexture types.
4848

4949
## Key files
5050

@@ -55,12 +55,12 @@ This is a _reference project_ for those that want to use [Unity as a Library](ht
5555

5656
### Unity Project
5757

58-
- [**NativeStateManager.cs**](UnityProject/Assets/Scripts/NativeStateManager.cs): Class for receiving and storing native state data.
59-
- [**RootBehavior.cs**](UnityProject/Assets/Scripts/RootBehavior.cs): Script that renders content - a cube and a spotlight - reacting to state updates and touch events.
60-
- [**NativeState.h**](UnityProject/Assets/Plugins/iOS/NativeState.h), [**NativeState.m**](UnityProject/Assets/Plugins/iOS/NativeState.m): Plugin enabling flow of state data from native Swift to Unity C#.
58+
- [**NativeStateManager.cs**](UnityProject/Assets/Scripts/NativeStateManager.cs): Class for receiving and storing native state.
59+
- [**RootBehavior.cs**](UnityProject/Assets/Scripts/RootBehavior.cs): Script that renders sample scene - cube and spotlight - reacting to state updates and touch events.
60+
- [**NativeState.h**](UnityProject/Assets/Plugins/iOS/NativeState.h), [**NativeState.m**](UnityProject/Assets/Plugins/iOS/NativeState.m): Plugin enabling flow of state from native Swift to Unity C#.
6161
- [**UnityFramework.modulemap**](UnityProject/Assets/Plugins/iOS/UnityFramework.modulemap): Custom modulemap for plugin interoperability with Swift.
6262
- [**PostProcessBuild.cs**](UnityProject/Assets/Editor/PostProcessBuild.cs): Script automating integration of Unity generated Xcode project.
6363

6464
## Known issues
65-
- After building Unity project, Xcode workspace may not always reflect latest files and be unable to build. Close and reopen workspace to fix this bad state.
65+
- After building Unity project, Xcode workspace may not always reflect latest files and be unable to build. Close and reopen workspace to fix this.
6666
- When running while attached to Xcode, there may be some noticeable delay between device orientation change and UI layout. There should be no such delay when running detached.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
m_EditorVersion: 2022.3.36f1
2-
m_EditorVersionWithRevision: 2022.3.36f1 (95a4219250e5)
1+
m_EditorVersion: 2022.3.37f1
2+
m_EditorVersionWithRevision: 2022.3.37f1 (340ba89e4c23)

0 commit comments

Comments
 (0)