简体   繁体   English

从XLS文件Unity Vuforia跟踪Word

[英]Tracking Word from xls file unity vuforia

Hi I was wondering if it was possible to import data from a xls file into Unity, and use this with vuforia and c# scripting to be able to track words from the xls file and display there corresponding values from the spread sheet. 嗨,我想知道是否可以将xls文件中的数据导入Unity,并将其与vuforia和c#脚本一起使用,以便能够跟踪xls文件中的单词并在电子表格中显示相应的值。

I could simply copy the words into a white list to be able to track them, but then how would I go about using this to display each rows information. 我可以简单地将单词复制到白名单中以对其进行跟踪,但是接下来我将如何使用它来显示每行信息。

To clarify slightly, I have a spreadsheet of car names and there sale prices and mileage. 为了澄清一点,我有一个汽车名称电子表格,并有销售价格和里程。 I would want to track the car name and be able to display the price and mileage on screen. 我想跟踪汽车名称,并能够在屏幕上显示价格和里程。

Any point in the right direction would be great 朝着正确方向的任何观点都将很棒

Excel allows you to save the file as a .csv file instead of .xls. Excel允许您将文件另存为.csv文件而不是.xls。 If you can use this, you could use the CSVReader from Unify in order to import your data. 如果可以使用此功能,则可以使用Unify中的CSVReader导入数据。 If you want to keep the .xls, you could try Unity Quick-sheet , I didn't try it myself. 如果您想保留.xls,则可以尝试Unity Quick-sheet ,我自己没有尝试过。

Once the data are loaded, you can store them in a simple structure and build a List or a Dict out of it, depending on the requirement. 加载数据后,您可以根据需要将它们存储在简单的结构中,并在其中构建一个List或Dict。

I have never used Vuforia so I won't be able to help you there. 我从未使用过Vuforia,因此无法在这里为您提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM