void Start() { var versions = string.Format( "Vuforia Version: {0}\nUnity Version: {1}", Vuforia.VuforiaUnity.GetVuforiaLibraryVersion(), Application.unityVersion); SampleUtil.AssignStringToTextComponent(this.gameObject, versions); }
void UpdateText() { UpdateInfo(); var completeInfo = activeDataSetsTitle + activeDataSetsInfo; if (trackableStateInfo.Length > 0 || vumarkTrackableStateInfo.Length > 0) { completeInfo += string.Format("\n{0}", trackableStateInfo, vumarkTrackableStateInfo); } SampleUtil.AssignStringToTextComponent(this.textObject ?? this.gameObject, completeInfo); }