Questions tagged [unity3d-native-plugins]
7 questions
4
votes
1 answer
How do you reset or reimport, plugins, in Unity / Mac?
Get a Unity project with a native low-level plugin .. Mac version.
Make a small change in the Xcode plugin project, and build.
You now have the new plugin library in the Unity project.
If you "Build" again, the final Mac app of course now contains…

Fattie
- 27,874
- 70
- 431
- 719
3
votes
2 answers
Can you write to a Unity texture, from an iOS C plugin, "on the spot"?
Say you have a low-level Unity plugin for iOS,
So in c#
using System.Runtime.InteropServices;
using AOT;
public class Teste: MonoBehaviour {
[DllImport("__Internal")] private static extern
void set_texture_from_unity(System.IntPtr…

Fattie
- 27,874
- 70
- 431
- 719
2
votes
1 answer
How to build an objective-C native plugin in unity for appleTV and MacOSX
I'm trying to write a native plugin to have access to some of the GameKit functionnalities not yet exposed by the Social.localUser unity API (namely the fact that the local user is multiplayer restricted).
I've written a GameKitWrapper.mm file where…

downstroy
- 960
- 1
- 9
- 27
2
votes
0 answers
Convert ARCore image (YUV_420_888) to cv::Mat in native c++ plugin
I'm currently struggling on the conversion of an image captured from ARCore in YUV_420_888 format to an OpenCV Mat object. I use ARCore as a plugin for unity from which I'm able to capture the bytes that represent the image.
I've furthermore written…

hGen
- 2,235
- 6
- 23
- 43
1
vote
0 answers
custom android library integrated as unity native plugin causes Duplicate Class
I have built an android library that I try to add in unity. Both the library and the unity project are very basic.
There are these 3 dependencies in the android project
implementation 'androidx.appcompat:appcompat:1.3.
implementation…

Popa Alex
- 325
- 2
- 8
1
vote
2 answers
In Unity BuildPostProcessor, how exactly do you, simply, "copy over" one file?
in Unity I simply have a file, afile.ts, sitting in Assets/
In the built Xcode, I simply want it to be sitting in the project folder (really, anywhere is fine) included in the project.
You do this using
project.AddFileToBuild(g, something…

Fattie
- 27,874
- 70
- 431
- 719
0
votes
0 answers
How to correctly convert this Makefile to CMakeLists.txt?
I am trying to write a CMakeLists.txt for my Unity3D NativeAudioSDK spatializer plugin (written in C++). An almost identical build configuration can be found here. The equivalent Makefile for my project looks like this:
SRCS=AudioPluginUtil.cpp…

Byomeer
- 426
- 6
- 10