Hi, it scales like any other Unity game object;
the size of the target can be retrieved using the Trackable.GetSize() method;
when the user defined target is created, the size is specified in the UserDefinedTargetEventHandler, in this method:
private void BuildNewTarget()
{
// create the name of the next target.
// the TrackableName of the original, linked ImageTargetBehaviour is extended with a continuous number to ensure unique names
mCurrentTargetName = string.Format("{0}-{1}", ImageTargetTemplate.TrackableName, mTargetCounter);
// generate a new target name:
Debug.Log("ImageTargetBuilder.Build with target name " + mCurrentTargetName);
mTargetBuildingBehaviour.BuildNewTarget(mCurrentTargetName, ImageTargetTemplate.GetSize().x);
}
See the UDT sample.
Hi, it scales like any other Unity game object;
the size of the target can be retrieved using the Trackable.GetSize() method;
when the user defined target is created, the size is specified in the UserDefinedTargetEventHandler, in this method: