{"id":5067,"date":"2020-03-19T12:30:27","date_gmt":"2020-03-19T03:30:27","guid":{"rendered":"https:\/\/virtualcast.jp\/blog\/?p=5067"},"modified":"2020-03-19T12:45:15","modified_gmt":"2020-03-19T03:45:15","slug":"zenject-reflection-baking","status":"publish","type":"post","link":"https:\/\/blog.virtualcast.jp\/blog\/2020\/03\/zenject-reflection-baking\/","title":{"rendered":"Zenject Reflection Baking \u306e\u52b9\u679c\u6e2c\u5b9a"},"content":{"rendered":"<h2>1. \u306f\u3058\u3081\u306b<\/h2>\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u958b\u767a\u90e8\u306e\u3061\u3087\u308d\u3081\u3067\u3059\u3002<\/p>\n<p>Zenject \u3063\u3066\u4fbf\u5229\u3067\u3059\u3088\u306d\u3002Zenject \u306f\u30d0\u30fc\u30c1\u30e3\u30eb\u30ad\u30e3\u30b9\u30c8\u306e\u958b\u767a\u3067\u3082\u611b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30ad\u30e3\u30b9\u30c8\u3067\u306f Zenject \u304b\u3089\u30d5\u30a9\u30fc\u30af\u3055\u308c\u305f Extenject \u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\uff09\u3002<\/p>\n<p>\u305d\u306e Zenject \u3067\u3059\u304c Reflection Baking \u3068\u3044\u3046\u6a5f\u80fd\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u306f\u3054\u5b58\u3058\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>Reflection Baking \u306f\u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u306e Reflection \u306b\u304b\u304b\u308b\u51e6\u7406\u6642\u9593\u3092\u6e1b\u3089\u3059 Zenject \u306e\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f Zenject \u306e\u30b5\u30f3\u30d7\u30eb Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u30d0\u30fc\u30c1\u30e3\u30eb\u30ad\u30e3\u30b9\u30c8\u306e Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067 Reflection Baking \u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>2. Zenject Reflection Baking \u3068\u306f<\/h2>\n<p>Zenject \u306f Unity \u5411\u3051\u306e DI \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002Zenject \u306b\u304a\u3051\u308b DI \u3067\u306f Reflection \u304c\u7528\u3044\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>Reflection Baking \u306f\u305d\u306e Reflection \u306b\u304b\u304b\u308b\u51e6\u7406\u6642\u9593\u3092\u6e1b\u3089\u3059 Zenject \u306e\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4ee3\u511f\u306a\u304f\u9ad8\u901f\u5316\u304c\u5b9f\u73fe\u3059\u308b\u8a33\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30e9\u30f3\u30bf\u30a4\u30e0\u306e Reflection \u304c\u306f\u3084\u304f\u306a\u308b\u4ee3\u308f\u308a\u306b\u30d3\u30eb\u30c9\u6642\u9593\u304c\u4f38\u3073\u307e\u3059\u3002<\/p>\n<p>\u30d3\u30eb\u30c9\u4e2d\u306b Cecil \u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066 C# \u304b\u3089\u751f\u6210\u3055\u308c\u305f\u30a2\u30bb\u30f3\u30d6\u30ea\u306b\u5bfe\u3057\u3066 IL \u30a6\u30a3\u30fc\u30d3\u30f3\u30b0(?)\u3092\u3057\u3066\u3001\u30e9\u30f3\u30bf\u30a4\u30e0\u3067 Zenject \u304c\u884c\u3046\u51e6\u7406\u3092\u5404\u30af\u30e9\u30b9\u306b\u76f4\u63a5\u57cb\u3081\u8fbc\u3080\u305d\u3046\u3067\u3059\uff08\u30ca\u30f3\u30e2\u30ef\u30ab\u30e9\u30f3\uff09\u3002<\/p>\n<p>\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u30e9\u30f3\u30bf\u30a4\u30e0\u306b\u304a\u3051\u308b Reflection \u306b\u3088\u308b\u30b3\u30fc\u30c9\u5206\u6790\u306e\u30b3\u30b9\u30c8\u3092\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u30b3\u30b9\u30c8\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001IL2CPP \u3067\u306f\u3064\u3044\u3067\u306b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u751f\u6210\u3082\u306f\u3084\u304f\u306a\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u8a73\u7d30\u306f README \u306e <a href=\"https:\/\/github.com\/chromee\/Extenject#reflection-baking\">Reflection Baking<\/a> \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>3. \u8abf\u67fb\u74b0\u5883<\/h2>\n<p>\u4eca\u56de\u306f\u4ee5\u4e0b\u306e 2 \u3064\u306e Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b Reflection Baking \u3092\u9069\u7528\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/svermeulen\/Extenject\/releases\/tag\/v8.0.1\">Zenject-WithSampleGames@v8.0.1.unitypackage<\/a> \u306b\u542b\u307e\u308c\u308b SampleGame2 (Advanced)<\/li>\n<li>\u30d0\u30fc\u30c1\u30e3\u30eb\u30ad\u30e3\u30b9\u30c8\u306e Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/li>\n<\/ul>\n<p>\u305d\u306e\u4ed6\u306e\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>Unity Version : 2018.4.18f1<\/li>\n<li>Zenject : <a href=\"https:\/\/github.com\/svermeulen\/Extenject\">Extenject 8.0.1<\/a><\/li>\n<li>Scripting Backend : IL2CPP<\/li>\n<li>C++ Compiler Configuration : Release<\/li>\n<li>Target Platform : Windows - x86_64 - Development Build<\/li>\n<\/ul>\n<h2>4. \u8abf\u67fb\u6e96\u5099<\/h2>\n<h3>4.1 Reflection Baking \u306e\u6709\u52b9\u5316<\/h3>\n<p>Reflection Baking \u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306e\u4f5c\u696d\u3067\u3059\u3002README \u306e <a href=\"https:\/\/github.com\/svermeulen\/Extenject#reflection-baking\">Reflection Baking<\/a> \u306b\u3060\u3044\u305f\u3044\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>Project \u30bf\u30d6\u306b\u3066 <code>Create\/Zenject\/Reflection Baking Settings<\/code> \u3067 Reflection Baking \u8a2d\u5b9a\u7528\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\n<ul>\n<li><code>ZenjectReflectionBakingSettings.asset<\/code> \u304c\u4f5c\u6210\u3055\u308c\u307e\u3059<\/li>\n<li>\u914d\u7f6e\u3059\u308b\u5834\u6240\u306f Assets \u4ee5\u4e0b\u306a\u3089\u3069\u3053\u3067\u3082\u3044\u3044\u3067\u3059<\/li>\n<\/ul>\n<\/li>\n<li>ZenjectReflectionBakingSettings \u5185\u306e <code>Namespace Patterns<\/code> \u306b Bake \u3057\u305f\u3044\u30af\u30e9\u30b9\u3092\u542b\u3093\u3067\u3044\u308b namespace \u3092\u8ffd\u52a0\n<ul>\n<li><code>^VirtualCast<\/code> \u3068\u66f8\u304f\u3068 <code>VirtualCast<\/code> namespace \u3068\u305d\u306e\u5b50\u3068\u306a\u308b namespace \u5185\u306b\u3042\u308b\u30af\u30e9\u30b9\u304c\u3059\u3079\u3066 bake \u5bfe\u8c61\u306b\u306a\u308a\u307e\u3059<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u6b63\u3057\u304f\u8a2d\u5b9a\u304c\u3067\u304d\u3066\u3044\u308c\u3070\u30d3\u30eb\u30c9\u6642\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ed\u30b0\u304c\u3044\u304f\u3064\u304b\u6d41\u308c\u3066\u304d\u307e\u3059\u3002<\/p>\n<pre><code>Added reflection baking to &#039;4&#039; types in assembly &#039;Sample.dll&#039;, took 0.03 seconds\nUnityEngine.Debug:Log(Object)\nZenject.ReflectionBaking.ReflectionBakingBuildObserver:TryWeaveAssembly(String) (at Assets\/Plugins\/Zenject\/OptionalExtras\/ReflectionBaking\/Unity\/ReflectionBakingBuildObserver.cs:102)\nZenject.ReflectionBaking.ReflectionBakingBuildObserver:OnAssemblyCompiled(String, CompilerMessage[]) (at Assets\/Plugins\/Zenject\/OptionalExtras\/ReflectionBaking\/Unity\/ReflectionBakingBuildObserver.cs:37)\nUnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:\/buildslave\/unity\/build\/Modules\/IMGUI\/GUIUtility.cs:179)<\/code><\/pre>\n<h3>4.2 Bake \u4e2d\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u306e\u4fee\u7406<\/h3>\n<p>Reflection Baking \u306e\u52b9\u679c\u3092\u6700\u5927\u9650\u767a\u63ee\u3055\u305b\u308b\u305f\u3081\u306e\u4f5c\u696d\u3067\u3059\u3002\u305d\u308c\u306f bake \u4e2d\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3092\u3059\u3079\u3066\u3064\u3076\u3059\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>bake \u306e\u9014\u4e2d\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3082\u30a8\u30e9\u30fc\u306e\u767a\u751f\u3057\u305f assembly \u306e bake \u304c\u5931\u6557\u3059\u308b\u306e\u307f\u3067\u30d3\u30eb\u30c9\u306f\u901a\u308a\u307e\u3059\u3002\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3082\u666e\u901a\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u305d\u306e assembly \u306e\u30af\u30e9\u30b9\u3067\u306f\u30e9\u30f3\u30bf\u30a4\u30e0\u3067 Reflection \u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001Reflection Baking \u306e\u52b9\u679c\u3092\u6700\u5927\u9650\u767a\u63ee\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u5927\u304d\u3044 assembly \u3067 bake \u306b\u5931\u6557\u3059\u308b\u3068\u7279\u306b\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u306f\u306a\u304b\u306a\u304b\u6c17\u3065\u3051\u305a\u30cf\u30de\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d0\u30fc\u30c1\u30e3\u30eb\u30ad\u30e3\u30b9\u30c8\u306e Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u30a8\u30e9\u30fc\u304c\u305f\u304f\u3055\u3093\u51fa\u307e\u3057\u305f\u3002\u305d\u306e Bake \u4e2d\u30a8\u30e9\u30fc\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u300c9. \u304a\u307e\u3051\u300d\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>5. \u8a55\u4fa1\u65b9\u6cd5<\/h2>\n<p>Reflection Baking \u306e\u52b9\u679c\u3092\u3069\u3046\u6e2c\u5b9a\u3059\u308b\u304b\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f SceneContext \u3068 GameObjectContext \u306b\u8981\u3059\u308b\u51e6\u7406\u6642\u9593\u304c\u3069\u3046\u5909\u5316\u3059\u308b\u306e\u304b\u3092\u898b\u305f\u304b\u3063\u305f\u306e\u3067 2 \u3064\u306e\u6307\u6a19\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>5.1 ZEN_INTERNAL_PROFILING \u306b\u3088\u308b SceneContext \u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0<\/h3>\n<p>SceneContext \u306b\u8981\u3059\u308b\u51e6\u7406\u6642\u9593\u3092\u8a08\u6e2c\u3057\u307e\u3059\u3002<\/p>\n<p>README \u306e <a href=\"https:\/\/github.com\/svermeulen\/Extenject#optimization_notes\">Optimization Recommendations\/Notes<\/a> \u306b\u66f8\u3044\u3066\u3042\u308b\u65b9\u6cd5\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002<\/p>\n<p><code>Project Settings\/Player\/Scripting Define Symbols<\/code> \u306b <code>ZEN_INTERNAL_PROFILING<\/code> \u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3059\u308b\u3068 SceneContext \u304c\u52d5\u304f\u3068\u304d Console \u30bf\u30d6\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ed\u30b0\u304c\u6d41\u308c\u3066\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-ZEN_INTERNAL_PROFILING.log\">SceneContext.Awake detailed profiling: Total time tracked: 3104.19 ms.  Details:\n  67.2% (02960x) (2086 ms) User Code\n  19.4% (01243x) (0602 ms) Type Analysis - Direct Reflection\n  06.1% (02928x) (0189 ms) DiContainer.Resolve\n  02.3% (00003x) (0071 ms) Other\n  02.3% (00259x) (0071 ms) DiContainer.Bind\n  01.3% (01112x) (0041 ms) DiContainer.Instantiate\n  00.7% (01032x) (0023 ms) Searching Hierarchy\n  00.4% (01243x) (0011 ms) Type Analysis - Calling Baked Reflection Getter\n  00.3% (01852x) (0010 ms) DiContainer.Inject<\/code><\/pre>\n<p>Reflection Baking \u306b\u3088\u3063\u3066\u3053\u306e Type Analysis - Direct Reflection \u304c\u51e6\u3055\u308c\u308b\u305d\u3046\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3053\u306e\u30ed\u30b0\u306e\uff12\u3064\u306e\u5024\u3092\u8a18\u9332\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>Context \u5168\u4f53\u306e\u51e6\u7406\u6642\u9593 : <code>Total time tracked: [XXX.XX] ms.<\/code><\/li>\n<li>Reflection \u306e\u307f\u306e\u51e6\u7406\u6642\u9593 : <code>(XXXX ms) Type Analysis - Direct Reflection<\/code><\/li>\n<\/ul>\n<h3>5.2 \u30aa\u30ec\u30aa\u30ec\u624b\u6cd5\u306b\u3088\u308b GameObjectContext \u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0<\/h3>\n<p>ZEN_INTERNAL_PROFILING \u3067\u306f\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u308b GameObjectContext \u304c\u8981\u3059\u308b\u51e6\u7406\u6642\u9593\u3092\u307f\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u30b3\u30df\u30c3\u30c8\u306e\u3088\u3046\u306a\u4fee\u6b63\u3092\u52a0\u3048\u3066 GameObjectContext \u306b\u7528\u3059\u308b\u6642\u9593\u3082 ZEN_INTERNAL_PROFILING \u3068\u540c\u3058\u4ed5\u7d44\u307f\u3067\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/chromee\/zenject-sample\/commit\/397c3a5366f2cfbfe4bf48644ede27ba73a4b8a0\">https:\/\/github.com\/chromee\/zenject-sample\/commit\/397c3a5366f2cfbfe4bf48644ede27ba73a4b8a0<\/a><\/p>\n<p>\u3053\u306e\u4fee\u6b63\u3067\u306f\u5404 GameObjectContext \u304c\u51e6\u7406\u3092\u7d42\u3048\u308b\u305f\u3073\u306b\u30ed\u30b0\u304c\u6d41\u308c\u307e\u3059\u304c\u3001\u305d\u306e\u30ed\u30b0\u306b\u306f\u5404 GameObjectContext \u304c\u5358\u4f53\u3067\u8981\u3057\u305f\u51e6\u7406\u6642\u9593\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u8a33\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e GameObjectContext \u304c\u51e6\u7406\u3055\u308c\u308b\u307e\u3067\u306b\u51e6\u7406\u3055\u308c\u305f\u5168 GameObjectContext \u304c\u8981\u3057\u305f\u51e6\u7406\u6642\u9593\u306e\u5408\u8a08\u304c\u8a18\u8f09\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3084\u3084\u3053\u3057\u3044\u306e\u3067\u3059\u304c\u3053\u308c\u3057\u304b\u65b9\u6cd5\u304c\u601d\u3044\u3064\u304b\u306a\u304b\u3063\u305f\u2026\u3002<\/p>\n<p>\u4eca\u56de\u306f\u5404\u30b7\u30fc\u30f3\u3054\u3068\u3067\u6700\u5f8c\u306b\u6d41\u308c\u3066\u304d\u305f GameObjectContext \u306e\u30ed\u30b0\u3092\u898b\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>6. \u8a55\u4fa1\u7d50\u679c<\/h2>\n<p>\uff15\u3067\u7d39\u4ecb\u3057\u305f\uff12\u3064\u306e\u6307\u6a19\u3092 Reflection Baking \u3042\u308a\u306e\u72b6\u614b\u3068\u306a\u3057\u306e\u72b6\u614b\u306e\u305d\u308c\u305e\u308c\u3067 5 \u56de\u305a\u3064\u8a08\u6e2c\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<h3>6.1 Zenject \u306e\u30b5\u30f3\u30d7\u30eb Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/h3>\n<p><a href=\"https:\/\/github.com\/svermeulen\/Extenject\/releases\/tag\/v8.0.1\">Zenject \u306e\u30b5\u30f3\u30d7\u30eb Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/a> \u3067\u306f GameObjectContext \u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067 SceneContext \u306e\u65b9\u306e\u6307\u6a19\u306e\u307f\u3092\u8a08\u6e2c\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d50\u679c\u3092\u8868\u3001\u7bb1\u3072\u3052\u56f3\u306b\u3057\u305f\u3082\u306e\u304c\u3053\u3061\u3089\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>Context<\/strong><\/th>\n<th>bake <br \/>\u6709\u7121<\/th>\n<th>1 \u56de\u76ee<\/th>\n<th>2 \u56de\u76ee<\/th>\n<th>3 \u56de\u76ee<\/th>\n<th>4 \u56de\u76ee<\/th>\n<th>5 \u56de\u76ee<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>SceneContext \u5168\u4f53<\/strong><\/td>\n<td>baked<\/td>\n<td>40.2<\/td>\n<td>38.47<\/td>\n<td>38.82<\/td>\n<td>39.03<\/td>\n<td>37.37<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>45.61<\/td>\n<td>41.43<\/td>\n<td>42.64<\/td>\n<td>41.7<\/td>\n<td>44.51<\/td>\n<\/tr>\n<tr>\n<td><strong>Reflection \u306e\u307f<\/strong><\/td>\n<td>baked<\/td>\n<td>3<\/td>\n<td>3<\/td>\n<td>3<\/td>\n<td>3<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>9<\/td>\n<td>9<\/td>\n<td>9<\/td>\n<td>9<\/td>\n<td>9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img src=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2020\/03\/zenject-sample.jpg\" alt=\"\" \/><\/p>\n<p>Reflection \u5358\u4f53\u3001Context \u5168\u4f53\u3069\u3061\u3089\u3068\u3057\u3066\u898b\u3066\u3082\u51e6\u7406\u6642\u9593\u304c\u6e1b\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>\u3061\u3087\u3046\u3069 Reflection \u306e\u51e6\u7406\u6642\u9593\u306e\u6e1b\u5c11\u5206\u3068\u540c\u3058\u3050\u3089\u3044 Context \u5168\u4f53\u306e\u51e6\u7406\u6642\u9593\u304c\u6e1b\u3063\u3066\u308b\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002<\/p>\n<h3>6.2 \u30d0\u30fc\u30c1\u30e3\u30eb\u30ad\u30e3\u30b9\u30c8\u306e Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/h3>\n<p>\u30d0\u30fc\u30c1\u30e3\u30eb\u30ad\u30e3\u30b9\u30c8\u306e Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u8a08\u6e2c\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d50\u679c\u304c\u3053\u3061\u3089\u3002\u5168\u90e8\u306e\u7bb1\u3072\u3052\u56f3\u3092\u4f5c\u308b\u306e\u306f\u3057\u3093\u3069\u304b\u3063\u305f\u306e\u3067 Scene B \u3060\u3051\u7bb1\u3072\u3052\u56f3\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>Context<\/strong><\/th>\n<th>bake<br \/>\u6709\u7121<\/th>\n<th>1 \u56de\u76ee<\/th>\n<th>2 \u56de\u76ee<\/th>\n<th>3 \u56de\u76ee<\/th>\n<th>4 \u56de\u76ee<\/th>\n<th>5 \u56de\u76ee<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>SceneContext <br \/>\u5168\u4f53 (Scene A)<\/strong><\/td>\n<td>baked<\/td>\n<td>463.82<\/td>\n<td>466.41<\/td>\n<td>441.46<\/td>\n<td>424.04<\/td>\n<td>460.26<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>426.11<\/td>\n<td>462.43<\/td>\n<td>454.14<\/td>\n<td>511.97<\/td>\n<td>486.73<\/td>\n<\/tr>\n<tr>\n<td><strong>Reflection \u306e\u307f<\/strong><\/td>\n<td>baked<\/td>\n<td>6<\/td>\n<td>6<\/td>\n<td>4<\/td>\n<td>6<\/td>\n<td>7<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>8<\/td>\n<td>9<\/td>\n<td>10<\/td>\n<td>10<\/td>\n<td>11<\/td>\n<\/tr>\n<tr>\n<td><strong>SceneContext <br \/>\u5168\u4f53 (Scene B)<\/strong><\/td>\n<td>baked<\/td>\n<td>130.73<\/td>\n<td>131.42<\/td>\n<td>132.23<\/td>\n<td>129.77<\/td>\n<td>133.62<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>140.19<\/td>\n<td>139.24<\/td>\n<td>140.24<\/td>\n<td>146.13<\/td>\n<td>143.86<\/td>\n<\/tr>\n<tr>\n<td><strong>Reflection \u306e\u307f<\/strong><\/td>\n<td>baked<\/td>\n<td>6<\/td>\n<td>6<\/td>\n<td>6<\/td>\n<td>6<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>12<\/td>\n<td>12<\/td>\n<td>12<\/td>\n<td>12<\/td>\n<td>13<\/td>\n<\/tr>\n<tr>\n<td><strong>GameObjectContext <br \/>\u5168\u4f53 (Scene B)<\/strong><\/td>\n<td>baked<\/td>\n<td>163.61<\/td>\n<td>171.74<\/td>\n<td>183.27<\/td>\n<td>124.36<\/td>\n<td>143.93<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>177.49<\/td>\n<td>186.66<\/td>\n<td>161.63<\/td>\n<td>185.64<\/td>\n<td>206.44<\/td>\n<\/tr>\n<tr>\n<td><strong>Reflection \u306e\u307f<\/strong><\/td>\n<td>baked<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>4<\/td>\n<td>5<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td><strong>SceneContext <br \/>\u5168\u4f53 (Scene C)<\/strong><\/td>\n<td>baked<\/td>\n<td>7.58<\/td>\n<td>7.05<\/td>\n<td>7.33<\/td>\n<td>7.27<\/td>\n<td>7.29<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>7.5<\/td>\n<td>7.62<\/td>\n<td>7.56<\/td>\n<td>7.71<\/td>\n<td>8.25<\/td>\n<\/tr>\n<tr>\n<td><strong>Reflection<\/strong><\/td>\n<td>baked<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td><strong>GameObjectContext <br \/>\u5168\u4f53 (Scene C)<\/strong><\/td>\n<td>baked<\/td>\n<td>996.64<\/td>\n<td>1023.6<\/td>\n<td>983.04<\/td>\n<td>979.79<\/td>\n<td>959.03<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>1009.09<\/td>\n<td>1016.56<\/td>\n<td>1037.66<\/td>\n<td>1033.75<\/td>\n<td>1098.84<\/td>\n<\/tr>\n<tr>\n<td><strong>Reflection \u306e\u307f<\/strong><\/td>\n<td>baked<\/td>\n<td>2<\/td>\n<td>2<\/td>\n<td>2<\/td>\n<td>2<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>not baked<\/td>\n<td>14<\/td>\n<td>14<\/td>\n<td>15<\/td>\n<td>14<\/td>\n<td>14<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img src=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2020\/03\/vc-scene-context.jpg\" alt=\"\" \/><\/p>\n<p><img src=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2020\/03\/vc-go-context.jpg\" alt=\"\" \/><\/p>\n<p>\u3044\u305a\u308c\u306e\u30b7\u30fc\u30f3\u3067\u3082\u3069\u3061\u3089\u306e\u6307\u6a19\u3082 Bake \u5f8c\u306e\u65b9\u304c\u6e1b\u5c11\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>Reflection \u306e\u6e1b\u5c11\u5e45\u306b\u6bd4\u3079\u3066 Context \u5168\u4f53\u306e\u6e1b\u5c11\u5e45\u304c\u3084\u305f\u3089\u5927\u304d\u304b\u3063\u305f\u3067\u3059\u3002SceneContext \u3068 GameObjectContext \u306e\u4e21\u65b9\u3067\u3002<\/p>\n<p>Reflection Baking \u306b\u3088\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u751f\u6210\u901f\u5ea6\u306e\u5411\u4e0a\u304c\u805e\u3044\u3066\u3044\u308b\u306e\u3060\u308d\u3046\u304b \ud83e\udd14<\/p>\n<p>\u306a\u3093\u306b\u305b\u3088 Reflection Baking \u306b\u3088\u3063\u3066\u306f\u3084\u304f\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>8. \u304a\u307e\u3051<\/h2>\n<h3>8.1 \u30d0\u30fc\u30c1\u30e3\u30eb\u30ad\u30e3\u30b9\u30c8\u306e Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u304a\u3051\u308b bake \u6642\u30a8\u30e9\u30fc\u3068\u305d\u306e\u5bfe\u7b56<\/h3>\n<p>\u3053\u3053\u3067\u306f\u30d0\u30fc\u30c1\u30e3\u30eb\u30ad\u30e3\u30b9\u30c8\u306e Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067 bake \u6642\u306b\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc\u3068\u305d\u306e\u5bfe\u7b56\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h4>8.1.1 \u30a8\u30e9\u30fc\u305d\u306e\uff11<\/h4>\n<ul>\n<li>\n<p>\u73fe\u8c61<\/p>\n<pre><code>\nInvalidOperationException: Sequence contains more than one element\n\nSystem.Linq.Enumerable.SingleOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <fbb5ed17eb6e46c680000f8910ebb50c>:0)\nZenject.ReflectionBaking.ReflectionBakingModuleEditor.TryFindLocalMethod (Zenject.ReflectionBaking.Mono.Cecil.TypeReference specificTypeRef, System.String methodName, Zenject.ReflectionBaking.Mono.Cecil.TypeReference& declaringTypeRef, Zenject.ReflectionBaking.Mono.Cecil.MethodReference& methodRef) (at Assets\/Plugins\/Zenject\/OptionalExtras\/ReflectionBaking\/Common\/ReflectionBakingModuleEditor.cs:599)\n\n~<\/code><\/pre>\n<p>Inject \u3059\u308b\u5fc5\u8981\u306e\u306a\u3044\u30e1\u30bd\u30c3\u30c9\u306b Inject attribute \u3092\u3064\u3051\u308b\u3068\u3053\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<\/li>\n<li>\n<p>\u5bfe\u7b56<\/p>\n<p>\u4e0d\u5fc5\u8981\u306a Inject \u5c5e\u6027\u3092\u6d88\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>8.1.2 \u30a8\u30e9\u30fc\u305d\u306e\uff12<\/h4>\n<ul>\n<li>\n<p>\u73fe\u8c61<\/p>\n<pre><code>\nIL2CPP error for method 'System.Void [\u8a72\u5f53\u30af\u30e9\u30b9]::**zenInjectMethod0(System.Object,System.Object[])' in assembly '[\u8a72\u5f53\u30af\u30e9\u30b9\u306e\u3042\u308b assembly]'\nAdditional information: Attempting to return a value from method 'System.Void [\u8a72\u5f53\u30af\u30e9\u30b9]::**zenInjectMethod0(System.Object,System.Object[])' when there is no value on the stack. Is this invalid IL code?\n<\/code><\/pre>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u306f bake \u4e2d\u306b\u51fa\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u4e00\u5fdc\u7d39\u4ecb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u306f IL2CPP \u306e\u51e6\u7406\u4e2d\u306b\u767a\u751f\u3059\u308b\u306e\u3067\u3001 Mono \u30d3\u30eb\u30c9\u3060\u3068\u767a\u751f\u3057\u306a\u3044\u306e\u3067\u3059\u304c\u3001 IL2CPP \u30d3\u30eb\u30c9\u3060\u3068\u30d3\u30eb\u30c9\u304c\u901a\u3089\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f Inject \u30e1\u30bd\u30c3\u30c9\u306e\u8fd4\u308a\u5024\u304c void \u4ee5\u5916\u3060\u3068\u767a\u751f\u3059\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<\/li>\n<li>\n<p>\u5bfe\u7b56<\/p>\n<p>Inject \u30e1\u30bd\u30c3\u30c9\u306e\u8fd4\u308a\u5024\u306f void \u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>8.1.3 \u30a8\u30e9\u30fc\u305d\u306e\uff13<\/h4>\n<ul>\n<li>\n<p>\u73fe\u8c61<\/p>\n<pre><code>\nZenjectException: Cannot process values with type 'bool' currently. Feel free to add support for this and submit a pull request to github.\n<\/code><\/pre>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u306f bake \u5bfe\u8c61\u306e\u30af\u30e9\u30b9\u304c\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3001\u307e\u305f\u306f Inject \u30e1\u30bd\u30c3\u30c9\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u5f15\u6570\u306b bool \u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u3053\u306e\u30a8\u30e9\u30fc\u306f bool \u306b\u9650\u3089\u305a\u3001string, int, enum \u4ee5\u5916\u306e\u578b\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u5f15\u6570\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3068\u767a\u751f\u3059\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<\/li>\n<li>\n<p>\u5bfe\u7b56<\/p>\n<ul>\n<li>\u305d\u306e\uff11<\/li>\n<\/ul>\n<p>\u8a72\u5f53\u3059\u308b\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u6301\u3064\u30af\u30e9\u30b9\u306b <code>[NoReflectionBaking]<\/code> \u5c5e\u6027\u3092\u3064\u3051\u307e\u3059\u3002 \u3053\u3046\u3059\u308b\u3053\u3068\u3067\u305d\u306e\u30af\u30e9\u30b9\u304c bake \u306b\u542b\u307e\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u304c\u6b63\u653b\u6cd5\u3060\u3068\u306f\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b\u8a72\u5f53\u3059\u308b\u30af\u30e9\u30b9\u3092\u3059\u3079\u3066\u898b\u3064\u3051\u3066 <code>[NoReflectionBaking]<\/code> \u3092\u3064\u3051\u308b\u306e\u306f\u7c21\u5358\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u6570\u304c\u591a\u3044\u306e\u3068\u3001\u30d3\u30eb\u30c9\u3057\u3066\u307f\u306a\u3044\u3068\u5168\u90e8\u6f70\u305b\u305f\u304b\u5206\u304b\u3089\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u305d\u306e\uff12<\/li>\n<\/ul>\n<p>Zenejct \u306e <code>ReflectionBakingModuleEditor.cs<\/code> \u3092\u4fee\u6b63\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u306e\u30b3\u30df\u30c3\u30c8\u306e\u3088\u3046\u306a\u4fee\u6b63\u3092\u52a0\u3048\u308b\u3053\u3068\u3067 <code>float<\/code> \u3068 <code>bool<\/code> \u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u5f15\u6570\u306b\u4f7f\u7528\u3057\u3066\u3082 bake \u304c\u5931\u6557\u3057\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/chromee\/zenject-sample\/commit\/433b0655f802d908dc69b50de05b89539b8fcb40\">https:\/\/github.com\/chromee\/zenject-sample\/commit\/433b0655f802d908dc69b50de05b89539b8fcb40<\/a><\/p>\n<p>\u4eca\u56de\u306e\u8abf\u67fb\u3067\u306f\u3053\u3061\u3089\u306e\u65b9\u6cd5\u3092\u63a1\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/li>\n<\/ul>\n<h2>9. \u304a\u308f\u308a<\/h2>\n<p>\u66f8\u304d\u7d42\u308f\u3063\u3066\u304b\u3089\u6c17\u3065\u3044\u305f\u306e\u3067\u3059\u304c\u30d3\u30eb\u30c9\u6642\u9593\u304c\u3069\u308c\u304f\u3089\u3044\u4f38\u3073\u308b\u304b\u3082\u307f\u3068\u3051\u3070\u3088\u304b\u3063\u305f\u306a\u3068\u601d\u3044\u307e\u3057\u305f\u3002\u4f53\u611f\u3067\u306f\u30d3\u30eb\u30c9\u6642\u9593\u304c\u305d\u3093\u306a\u306b\u4f38\u3073\u3066\u308b\u611f\u3058\u306f\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>Zenject \u306e Reflection Baking \u306b\u3064\u3044\u3066\u30cd\u30c3\u30c8\u4e0a\u306b\u5168\u7136\u60c5\u5831\u304c\u306a\u304f\u3066\u4eca\u56de\u306e\u8abf\u67fb\u306f\u304b\u306a\u308a\u82e6\u52b4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6700\u521d\u3001 Reflection Baking \u306f\u52d5\u3044\u3066\u308b\u3063\u307d\u3044\u3051\u3069\u5168\u7136\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4e0a\u304c\u3089\u306a\u304f\u3066\u9996\u3092\u50be\u3052\u305f\u306e\u3067\u3059\u304c\u3001\u8272\u3005\u8a66\u3057\u305f\u3089\u3061\u3083\u3093\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4e0a\u304c\u3063\u3066\u3088\u304b\u3063\u305f\u3067\u3059\u3002<\/p>\n<p>\u3068\u306f\u3044\u3048\u4eca\u56de\u306e\u8abf\u67fb\u3067\u306f\u5404\u6240\u3067\u6570 ms \u306f\u3084\u304f\u306a\u308b\u7a0b\u5ea6\u3067\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001<a href=\"https:\/\/github.com\/svermeulen\/Extenject#reflection-baking\">README<\/a> \u66f0\u304f\u3068\u3042\u308b Unity \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f Zenject \u306e\u8d77\u52d5\u6642\u9593\u304c 45% \u77ed\u7e2e\u3055\u308c\u305f\u305d\u3046\u306a\u306e\u3067\u8a66\u3057\u3066\u307f\u308b\u4fa1\u5024\u306f\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u305f\u3076\u3093\u3002<\/p>\n<p>\u662f\u975e\u304a\u624b\u5143\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3082 Reflection Baking \u3092\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<h2>10. \u53c2\u8003\u30ea\u30f3\u30af<\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/svermeulen\/Extenject\">https:\/\/github.com\/svermeulen\/Extenject<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/svermeulen\/Extenject\/issues\/14\">https:\/\/github.com\/svermeulen\/Extenject\/issues\/14<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1. \u306f\u3058\u3081\u306b \u3053\u3093\u306b\u3061\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u958b\u767a\u90e8\u306e\u3061\u3087\u308d\u3081\u3067\u3059\u3002 Zenject \u3063\u3066\u4fbf\u5229\u3067\u3059\u3088\u306d\u3002Zenject \u306f\u30d0\u30fc\u30c1\u30e3\u30eb\u30ad\u30e3\u30b9\u30c8\u306e\u958b\u767a\u3067\u3082\u611b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30ad\u30e3\u30b9\u30c8\u3067\u306f Zenject \u304b\u3089\u30d5\u30a9\u30fc\u30af\u3055\u308c\u305f...<\/p>\n","protected":false},"author":3,"featured_media":5134,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[89,26],"tags":[23],"_links":{"self":[{"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/posts\/5067"}],"collection":[{"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/comments?post=5067"}],"version-history":[{"count":33,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/posts\/5067\/revisions"}],"predecessor-version":[{"id":5138,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/posts\/5067\/revisions\/5138"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/media\/5134"}],"wp:attachment":[{"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/media?parent=5067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/categories?post=5067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/tags?post=5067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}