x


problem plugin

Hello, I have 3 classes. mm of record and playback and of course a main that uses these three classes of course I must make a plugin to be visible to unity.

I wanted to know what it is possible to convert the extension of main.m in http://main.mm by adding the statement: extern "C" { int main (int argc, char * argv []); }

then in c # we put:

[DllImport ("__Internal")] private static extern int main (int argc, char * argv []);

m with the way it displays an error but did not indicate what it is.

if it is not possible you can offer me a solution (how can I create a plugin with 3 classes and main) please.

if not there is another bundle method with the same problem but I must find a solution to my classes.

I hope you answer me as soon as possible:) thank you.

more ▼

asked Aug 18 '11 at 12:17 PM

linaMK86 gravatar image

linaMK86
1 4 4 5

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x4172
x3747
x40

asked: Aug 18 '11 at 12:17 PM

Seen: 730 times

Last Updated: Aug 18 '11 at 12:19 PM