<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>.NET</anon>
    <anon>Unity</anon>
    <anon>Tips</anon>
  </categories>
  <description>Unity の乱数のシードを保持している Random.State という型があります。 定義は以下の通りでシリアライズして保存することはできますが、中身を見ることはできません。中身を認識する必要は本来ありませんが、リフレクションを使えば中身を取得できそうです。ただ単純な構造体なので Unsafe.As が使えそうなので試してみようと思います。 namespace UnityEngine { [Serializable] public static class Random { [Serializable] public struct State { [SerializeField] int …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2023%2F08%2F18%2F231348&quot; title=&quot;【Unity】Random.Stateの内容を取得する - PG日誌&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>2023-08-18 23:13:48</published>
  <title>【Unity】Random.Stateの内容を取得する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2023/08/18/231348</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
