https://github.com/ufcpp/unityunionlayout
https://github.com/ufcpp/unityunionlayout
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ufcpp/unityunionlayout
- Owner: ufcpp
- License: mit
- Created: 2022-04-18T05:49:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-18T05:57:00.000Z (almost 4 years ago)
- Last Synced: 2025-02-01T23:17:30.805Z (12 months ago)
- Language: C#
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnityUnionLayout
https://github.com/ufcpp/UnityUnionLayout/blob/main/Assets/Scripts/Union.cs#L34-L41
こんな感じの StructLayout を使って(C言語のunion的な)レイアウトを重ねた構造体を作ったとき、参照型を含んでいても正しく動くかどうかの確認用。
この手の処理、 .NET (.NET Core)で動いても IL2CPP とかスマホ実機動作で動かないときがあるので。