- Home /
Writing cross-platform Unity plugins using Xamarin
Hi,
Is it possible to write cross-platform Unity plugins using the Xamarin APIs?
If yes, what would be the procedure to go about doing it? Are you aware of any documentation or reference that might be useful?
I'm asking this because I want to minimize my learning curve for developing unity plugins. After a lot of experimentation, I've just begun understanding the intricacies of C#. If I have to learn two other languages (Java and Objective-C) that would greatly impede my progress.
Thanks.
Answer by $$anonymous$$ · May 02, 2014 at 03:26 PM
I think this (Android) can help you.
I'll definitely look into it.
After some more reading, I found that Xamarin and Unity use different $$anonymous$$ono Runtimes. Though, I'm not sure about how that affects my scenario.
I think this doesn't matter because you have to build for each OS a own File (for example: iOS=.mm file, Android=.jar file, ...), but if i understood right: Xamarin support the building of a .jar file.
I try both Java Library Binding and Android Library Projects mentioned in the aforementioned link, always get UnityPlayer class missing error. Did anyone have clue?
Your answer
![](https://koobas.hobune.stream/wayback/20220613144046im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Does Unity support movie textures on mobile phones yet? 0 Answers
Access Smartphone Hardware Information 1 Answer
Blinking light 3 times after a pause of 15 seconds 1 Answer
Publishing a Apps with Unity Free Questions 2 Answers
How do i Add In App Purchasing Without Being Android Developer 0 Answers