Log in or register to post comments

Get Marker ID

March 28, 2013 - 5:56pm #1

Hi

Im trying to get the Marker ID that is focused and put that ID onto a GUIText, but I'm getting only errors, I'm so bad with C# (I did the rest of the project in JS).

Any idea?

Thanks in advance and sorry for my bad english.

Get Marker ID

September 10, 2013 - 9:59pm #8

What you've found a solution? how to put ID onto GUIText

Get Marker ID

March 30, 2013 - 7:30am #7

Thanks mate, now it works like a charm!

Get Marker ID

March 30, 2013 - 7:26am #6

Use this instead, I'm pretty sure Marker.ID is the session ID of the marker (not what you want) wheras Marker.MarkerID is the user assigned ID.

 

Marker.MarkerID

 

Get Marker ID

March 30, 2013 - 7:12am #5

I'm using frameMarkers and trying to get their ID.

Get Marker ID

March 30, 2013 - 7:02am #4

Are you using image targets or frameMarkers?  Are you looking to get the name of the image target or the ID of a FrameMarker?

Get Marker ID

March 29, 2013 - 5:10am #3

Now it works, but not in the correct way, for example, it says that the Marker 0 is Marker 5, Marker 1 is Marker 4, how to fix that?

 

Thanks one more time

Get Marker ID

March 28, 2013 - 6:56pm #2

Try adding these lines to you OnTrackingFound method in the DefaultTrackableEventHandler script..

        MarkerBehaviour marker = (MarkerBehaviour) mTrackableBehaviour;
        Debug.Log("Trackable " + marker.Marker.ID + " found");

Log in or register to post comments