Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Example/Assets/Example.mm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "unityswift-Swift.h"
#import <UnityFramework/UnityFramework-Swift.h>

extern "C" {
void _ex_callSwiftMethod(const char *message) {
Expand Down
10 changes: 7 additions & 3 deletions Example/Assets/Example.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@

import Foundation

class Example : NSObject {
public class Example : NSObject {
static func callUnityMethod(_ message: String) {
let uf = UnityFramework.getInstance()
// Call a method on a specified GameObject.
UnitySendMessage("CallbackTarget", "OnCallFromSwift", message)
uf?.sendMessageToGO(
withName: "CallbackTarget",
functionName: "OnCallFromSwift",
message: message)
}

@objc static func swiftMethod(_ message: String) {
@objc public static func swiftMethod(_ message: String) {
print("\(#function) is called with message: \(message)")

self.callUnityMethod("Hello, Unity!")
Expand Down
9 changes: 0 additions & 9 deletions Example/Assets/UnitySwift.meta

This file was deleted.

9 changes: 0 additions & 9 deletions Example/Assets/UnitySwift/Editor.meta

This file was deleted.

37 changes: 0 additions & 37 deletions Example/Assets/UnitySwift/Editor/PostProcessor.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Example/Assets/UnitySwift/Editor/PostProcessor.cs.meta

This file was deleted.

7 changes: 0 additions & 7 deletions Example/Assets/UnitySwift/UnitySwift-Bridging-Header.h

This file was deleted.

90 changes: 0 additions & 90 deletions Example/Assets/UnitySwift/UnitySwift-Bridging-Header.h.meta

This file was deleted.

13 changes: 13 additions & 0 deletions Example/Logs/Packages-Update.log
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,16 @@ The following packages were added:
[email protected]
[email protected]
[email protected]

=== Wed Jul 22 15:40:25 2020

Packages were changed.
Update Mode: updateDependencies

The following packages were updated:
com.unity.ide.rider from version 1.0.8 to 1.1.4
com.unity.ide.vscode from version 1.0.7 to 1.2.1
com.unity.test-framework from version 1.0.13 to 1.1.14
com.unity.timeline from version 1.1.0 to 1.2.6
The following packages were removed:
[email protected]
9 changes: 4 additions & 5 deletions Example/Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"dependencies": {
"com.unity.collab-proxy": "1.2.16",
"com.unity.ext.nunit": "1.0.0",
"com.unity.ide.rider": "1.0.8",
"com.unity.ide.vscode": "1.0.7",
"com.unity.package-manager-ui": "2.2.0",
"com.unity.test-framework": "1.0.13",
"com.unity.ide.rider": "1.1.4",
"com.unity.ide.vscode": "1.2.1",
"com.unity.test-framework": "1.1.14",
"com.unity.textmeshpro": "2.0.1",
"com.unity.timeline": "1.1.0",
"com.unity.timeline": "1.2.6",
"com.unity.ugui": "1.0.0",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
Expand Down
Loading