<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kuku81kuku81</author_name>
  <author_url>https://blog.hatena.ne.jp/kuku81kuku81/</author_url>
  <blog_title>Django Girls and Boys 備忘録</blog_title>
  <blog_url>https://kuku81kuku81.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>Unity側で扱っていた変数などの文字列データをテキストファイルに出力する場合の方法についての説明になります。 目次 １．書き込み用コード概要説明 ２．テキストファイル書き込み例 １．書き込み用コード概要説明 コードの先頭でusing System.IOを宣言しておく必要があります。 using System.IO; また、あらかじめAssetsフォルダ内に「textData.txt」を用意しておきます。 その上で、たとえば以下のように書き込み用の文字列を用意します。 //変数string を書き込みprivate string string = &quot;1234567&quot;; その後は、StreamW…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkuku81kuku81.hatenablog.com%2Fentry%2F2024%2F02%2F19_Unity_how_to_write_text_data&quot; title=&quot;【Unity】文字列データなどをテキストファイルとして書き込む方法 - Django Girls and Boys 備忘録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kuku81kuku81/20220605/20220605115219.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-02-19 19:00:00</published>
  <title>【Unity】文字列データなどをテキストファイルとして書き込む方法</title>
  <type>rich</type>
  <url>https://kuku81kuku81.hatenablog.com/entry/2024/02/19_Unity_how_to_write_text_data</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
