PageSourceSearch

https://shibuya24.info/_next/static/chunks/pages/entry/missing_component-3539385e2789fb27.js

js shibuya24.info collected 2026-10-03 23:33:57 UTC 8,357 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7593],{44232:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/entry/missing_component",function(){return n(74893)}])},74893:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p,meta:()=>o}),n(96540);var i=n(15680),s=n(47199);n(78660),n(28770),n(72926);var r=n(46553);n(87380),n(2679),n(91106),n(11945),n(93309),n(79991),n(4653),n(5282),n(7352),n(88626),n(63356);var a=n(98990);n(76846),n(7288);var l=n(81253),c=n(62227);n(16258),n(88426),n(88575),n(58608),n(4437),n(378);let o={title:"【解決済】Unity2017.1f1ではMissing ComponentをGUIから解決できない件",url:"missing_component",date:"2017-07-13T22:11:33",description:"",image:"https://cdn-ak.f.st-hatena.com/images/fotolife/e/esakun/20170705/20170705134507.png#485.0__251.0",tags:["unity-other"],no_top:0,noindex:1,show_follow:0,canonical:""},d={meta:o},u=e=>{let{children:t}=e;return(0,i.yg)(s.A,{meta:o},t)};function p(e){let{components:t,...n}=e;return(0,i.yg)(u,{...d,...n,components:t,mdxType:"MDXLayout"},(0,i.yg)("p",null,"こんにちは、エンジニアのオオバです。  "),(0,i.yg)("p",null,(0,i.yg)("strong",{parentName:"p"},"※本件は先日リリースされた Unity2017.1f3で修正されていることを確認しました。"),"  "),(0,i.yg)("pre",null,(0,i.yg)("code",{parentName:"pre"},"The referenced script on this Behaviour (Game Object 'Hoge') is missing!  \n")),(0,i.yg)("p",null,"Unity外でファイル名を変更などするとmetaファイルが書き換わり、上記のMissingコンポーネントという警告がコンソールに表示されます。  "),(0,i.yg)("p",null,(0,i.yg)("img",{parentName:"p",src:"https://cdn-ak.f.st-hatena.com/images/fotolife/e/esakun/20170705/20170705134507.png#485__251",alt:"【解決済】Unity2017.1f1ではMissing ComponentをGUIから解決できない件_0"}),"  "),(0,i.yg)("p",null,"Missingコンポーネント状態になると↑のようにGUI(インスペクタ)上にもその旨が表示されます。  "),(0,i.yg)("p",null,"Unity5.6以前であれば、Missingコンポーネント状態がずっとインスペクタに表示されていたと思いますが、Unity2017.1f1では消えてしまいます。  "),(0,i.yg)("p",null,(0,i.yg)("img",{parentName:"p",src:"https://cdn-ak.f.st-hatena.com/images/fotolife/e/esakun/20170705/20170705134906.png#491__204",alt:"【解決済】Unity2017.1f1ではMissing ComponentをGUIから解決できない件_1"}),"  "),(0,i.yg)("p",null,"これは非常に厄介な問題で、プレファブまたはシーンファイルをテキストエディタで開き、GUIDをプロジェクト内で検索して存在しなければ削除する、といった作業が発生します。  "),(0,i.yg)("p",null,"GUIDで検索する方法はコチラで紹介しています。  "),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://www.shibuya24.info/entry/unity-delete-file"},"Unityでファイルを削除するときに必ずチェックしたい2つのポイント"),"  "),(0,i.yg)("p",null,"Prefabの内部構造を調査した記事はコチラ。  "),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://www.shibuya24.info/entry/unity-prefab"},"Unity Prefabの中身(YAML)を読んで参照関係を正しく理解する"),"  "),(0,i.yg)("p",null,"Missing Component自体があまり",(0,i.yg)("inlineCode",{parentName:"p"},"レアなケースではない"),"ため、早々にGUI上で解決出来るようにしてもらいたいです。  "),(0,i.yg)(c.A,{url_key:"missing_component",title:"【解決済】Unity2017.1f1ではMissing ComponentをGUIから解決できない件",mdxType:"Share"}),(0,i.yg)(l.A,{meta:o,mdxType:"ArticleFollowMe"}),(0,i.yg)(r.A,{type:"last",mdxType:"MyAd"}),(0,i.yg)("div",{className:"subTitle recommend"},"オススメ記事"),(0,i.yg)(a.A,{articles:"unity-start-unitask,unity-material,unity-version,unity-smartphone-project,unity-editor-speedup,unity-start,",mdxType:"RecommendArticleList"}),(0,i.yg)("div",{className:"subTitle env"},"検証環境"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},"Unity2017.1f1"),(0,i.yg)("li",{parentName:"ul"},"Unity2017.1f3")))}p.isMDXComponent=!0},16258:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(74848);let s=e=>{let t=e.split("  "),n=[];return t.forEach(function(e,t){e.length>2&&n.push((0,i.jsx)("li",{children:e},t))}),n},r=e=>{let{type:t,content:n}=e,r=s(n);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"evaluation-title"+("0"==t?" pros-title":" cons-title"),children:"0"==t?"メリット":"デメリット"}),(0,i.jsx)("div",{className:"evaluation-box"+("0"==t?" pros-box":" cons-box"),children:(0,i.jsx)("ul",{children:r})})]})}},378:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(74848),s=n(22897);let r=e=>{let{id:t}=e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{children:[(0,i.jsx)(s.A,{id:t})," "]})})}},5282:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(74848),s=n(96540);let r=()=>
1{let[e,t]=(0,s.useState)({width:0,height:0});return(0,s.useEffect)(()=>{{let e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}},[]),e};var a=n(7352);let l=e=>{let{videoId:t,loop:n=1}=e,s=t.replace("https://youtu.be/",""),{height:l,width:c}=r(),o=420,d="85%";c<=602?o="".concat(.56*c,"px"):c<=991?(o=300,d="".concat(1.77777778*o,"px")):c<=1199?o=300:(d="75%",o=360);let u={width:"".concat(d,"%"),height:"".concat(o,"px"),playerVars:{loop:n,playlist:s,modestbranding:1}};return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.A,{videoId:t,opts:u})})}},4437:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(74848),s=n(23281);let r=e=>{let{url:t,title:n,img:r,description:a}=e,l=new URL(t).hostname.replace("www.","");return"NoDescription"==a&&(a=""),"NoOGP"==r&&(r=s.A.noOgpImgUrl),a&&a.length>80&&(a=a.slice(0,80)+"..."),(0,i.jsx)("a",{href:t,target:"_blank",className:"refLink",children:(0,i.jsxs)("div",{className:"refLink-content",children:[(0,i.jsxs)("div",{className:"refLink-text",children:[(0,i.jsx)("div",{className:"refLink-title",children:n}),a&&(0,i.jsx)("div",{className:"refLink-description",children:a}),(0,i.jsx)("div",{className:"refLink-site",children:l})]}),(0,i.jsx)("div",{className:"refLink-image",children:(0,i.jsx)("img",{src:r,alt:n})})]})})}},62227:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var i=n(74848),s=n(66369),r=n(84801),a=n(27748),l=n(84758),c=n(68438),o=n(64124),d=n(13799),u=n(56227);let p=e=>{let{url_key:t,title:n}=e,p="https://shibuya24.info/entry/".concat(t),g="".concat(p," @ohbashunsuke"),m="".concat(n," - 渋谷ほととぎす通信");return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"share",children:[(0,i.jsx)("div",{className:"shareTitle",children:"学習したことはSNSでアウトプットして血肉にしよう!"}),(0,i.jsxs)("div",{className:"shareContainer",children:[(0,i.jsx)(s.A,{url:g,title:m,children:(0,i.jsx)(r.A,{size:45,round:!0})}),(0,i.jsx)(a.A,{url:p,quote:m,children:(0,i.jsx)(l.A,{size:45,round:!0})}),(0,i.jsx)(c.A,{url:p,title:m,children:(0,i.jsx)(o.A,{size:45,round:!0})}),(0,i.jsx)(d.A,{url:p,title:m,children:(0,i.jsx)(u.A,{size:45,round:!0})})]})]})})}},88426:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(74848);let s=e=>{let{str:t}=e,n=t.replaceAll(","," -> ");return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("code",{children:n})})},r=()=>(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("p",{children:[(0,i.jsx)("img",{alt:"UnityメニューPackage Manager",width:"275",src:"https://i.gyazo.com/298b005ad7e6241a5b3d6e128a400794.jpg#275__500"}),(0,i.jsx)("br",{}),(0,i.jsx)(s,{str:"メニュー Window,Package Manager"}),"からPackage Managerウィンドウを開きます。"]})}),a=e=>{let{name:t}=e;return(0,i.jsx)(i.Fragment,{children:"menu-upm"===t&&(0,i.jsx)(r,{})})}},58608:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(74848),s=n(88575);let r=e=>{let{assets:t,entry_key:n}=e,r=t.split(",");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"subTitle recommend",children:"記事内で使用したアセット"}),(0,i.jsx)("ul",{children:r.map((e,t)=>(0,i.jsx)("li",{className:"asset",children:(0,i.jsx)(s.E9,{ad_key:e,entry_key:n,type:"1"})},t))})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[9479,4045,1293,5522,7199,4034,636,6593,8792],()=>t(44232)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.