Unity reads Excel files (the dynamic link library used)


1. Search and download ExcelDataReader and ExcelDataReader.DataSet two files in the menu bar "Project -> Manage NuGet Package" in visualstudio
2. Find the Packages folder in the Unity project directory, which contains ExcelDataReader and ExcelDataReader.DataSet files, respectively Find the lib->net45->.dll file inside and put it under the Plugins (if not created) file under Unity Assets.
3. Find the Unity installation path. Example Unity2018.4.2f1. 2018.4.2f1->Editor->Data->MonoBleedingEdge->lib->mono->unityjit folder System.Data.dll, l18N.dll, l18N.CJK.dll, l18N.West .dll into the Plugins folder.
Note: There are a total of 6 dll files, with which you can read Excel

FileStream stream = File.Open(file path, FileMode.Open, FileAccess.Read);
IExcelDataReader excelReader = ExcelReaderFactory.CreateOpenXmlReader(stream);
result = excelReader.AsDataSet();
With the result, you can traverse the rows and columns of the table:
for example (int i = 0; i < result. Tables[0]. Columns. Count; i++)

Finally, close the data stream
stream.Flush();
stream.Close();

How to change the style of text

emphasized text emphasized text

bold text bold text

markup text

delete text

quoted text

H2O is a liquid .

2 10 operation result is 1024.

Insert links and images

link: link .

picture:Alt

Picture with dimensions:Alt

Centered image:Alt

Centered and sized images:Alt

Of course, in order to make it more convenient for users, we have added the function of dragging and dropping pictures.

How to insert a nice piece of code

Go to the blog settings page, choose a code snippet highlighting style you like, and the same highlighting is shown below 代码片.

// An highlighted block
var foo = 'bar';

Generate a list that works for you

  • project
    • project
      • project
  1. item 1
  2. item 2
  3. item 3
  • Scheduled Tasks
  • mission accomplished

create a form

A simple table is created like this:

project Value
computer $1600
cell phone $12
catheter $1

Set the content to be centered, left, and right

Use :---------:Center
Use :----------Left
Use ----------:Right

first row The second column third column
Center the first column of text The second column of text is right-aligned Third column text left

SmartyPants

SmartyPants converts ASCII punctuation characters into "smart" typographical punctuation HTML entities. For example:

TYPE ASCII HTML
Single backticks 'Isn't this fun?' ‘Isn’t this fun?’
Quotes "Isn't this fun?" “Isn’t this fun?”
Dashes -- is en-dash, --- is em-dash – is en-dash, — is em-dash

create a custom list

Markdown
Text-to- HTML conversion tool
Authors
John
Luke

How to create a footnote

A text with footnotes. 1

Annotations are also essential

Markdown converts text to HTML .

KaTeX math formula

You can render LaTeX math expressions using KaTeX :

Gamma infrastructure ( n ) = ( n − 1 ) ! ∀ n ∈ N \Gamma(n) = (n-1)!\quad\forall n\in\mathbb NC ( n )=(n1)!nN is the integral by Euler

Γ ( z ) = ∫ 0 ∞ t z − 1 e − t d t   . \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. C ( z )=0tz 1 etdt.

You can find more information about LaTeX mathematical expressions here .

New Gantt chart feature to enrich your articles

2014-01-07 2014-01-09 2014-01-11 2014-01-13 2014-01-15 2014-01-17 2014-01-19 2014-01-21 已完成 进行中 计划一 计划二 现有任务 Adding GANTT diagram functionality to mermaid
  • For Gantt chart syntax, refer to here ,

UML diagrams

Can be rendered using UML diagrams. Mermaid . For example, a sequence diagram generated below:

张三 李四 王五 你好!李四, 最近怎么样? 你最近怎么样,王五? 我很好,谢谢! 我很好,谢谢! 李四想了很长时间, 文字太长了 不适合放在一行. 打量着王五... 很好... 王五, 你怎么样? 张三 李四 王五

This will generate a flowchart. :

链接
长方形
圆角长方形
菱形
  • For Mermaid syntax, refer to here ,

FLowchart flow chart

We will still support the flowchart of flowchart:

Created with Raphaël 2.3.0 开始 我的操作 确认? 结束 yes no
  • For Flowchart flowchart syntax, refer to here .

Export and import

export

If you want to try using this editor, you can edit it freely in this article. When you finish writing an article, find the article export on the upper toolbar , and generate a .md file or .html file for local storage.

import

If you want to load an .md file you have written, you can select the import function on the upper toolbar to import the file with the corresponding extension and
continue your creation.


  1. Explanation of footnotes↩︎

Guess you like

Origin blog.csdn.net/weixin_43780907/article/details/131389898