<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tsubaki_t1</author_name>
  <author_url>https://blog.hatena.ne.jp/tsubaki_t1/</author_url>
  <blog_title>テラシュールブログ</blog_title>
  <blog_url>https://tsubakit1.hateblo.jp/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>Unity2018.1</anon>
    <anon>C#</anon>
    <anon>ECS</anon>
    <anon>C#JobSystem</anon>
    <anon>リソース・メモリ管理</anon>
  </categories>
  <description>今回は構造体を配列（NativeArray）にした時の、そのアクセスについてです。 ECSとJobSystemは構造体の配列を使う 配列からrefやoutで参照を貰う事は出来ない そうだ、unsafeを使おう ArrayElementAsRefで要素のrefを取得する 関連 ECSとJobSystemは構造体の配列を使う 最近よく紹介されているECSやC# Job Systemといった機能では、構造体をNativeArrayに乗せて一括制御するアプローチが見られます。というのもECSやJobSystemはDODの考えでメモリ内にデータが散らばるのを嫌がるので、殆どStructで実装されています…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftsubakit1.hateblo.jp%2Fentry%2F2018%2F05%2F20%2F132956&quot; title=&quot;【Unity】構造体の配列（NativeArray）と参照渡し - テラシュールブログ&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/t/tsubaki_t1/20180520/20180520123709.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-05-20 13:29:56</published>
  <title>【Unity】構造体の配列（NativeArray）と参照渡し</title>
  <type>rich</type>
  <url>https://tsubakit1.hateblo.jp/entry/2018/05/20/132956</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
