<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ke_takahashi</author_name>
  <author_url>https://blog.hatena.ne.jp/ke_takahashi/</author_url>
  <blog_title>memorandums</blog_title>
  <blog_url>https://memorandums.hatenablog.com/</blog_url>
  <categories>
    <anon>やってみた</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>背景 いよいよ明後日に迫ったMFK2024。当ゼミの３年生２名が出展を決めて最後の追い上げをゼミ室でやっていました。 Unity担当の学生さんがトップ、メイン、リザルトと複数シーンにわけたときに、Arduino側と通信するプログラムがうまくシーン間で共有できない、ということで悩んでいました。 私も経験がなかったので帰宅してから色々と調べてみました。 とりあえず動いた方法 とりあえず、シリアル通信はstatic classにします。そして、そこからデータを取り出すためのクラスもstaticにします。シーン間でグローバル変数的な単一のデータ記憶領域を確保することができることがわかりました。 具体的…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemorandums.hatenablog.com%2Fentry%2F2024%2F04%2F25%2F010834&quot; title=&quot;Unityの複数シーンでシリアル通信を共有したかった話 - memorandums&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-04-25 01:08:34</published>
  <title>Unityの複数シーンでシリアル通信を共有したかった話</title>
  <type>rich</type>
  <url>https://memorandums.hatenablog.com/entry/2024/04/25/010834</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
