# URL ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' url:http://yoursite.com root:/ permalink::title/# :year/:month/:day/:title/ permalink_defaults: pretty_urls: trailing_index:true# Set to false to remove trailing 'index.html' from permalinks trailing_html:true# Set to false to remove trailing '.html' from permalinks
在 fake null object 中存储信息,Unity 能够在检视窗口 (Inspector) 中高亮该 GameObject,并给出更多指引。如:”looks like you are accessing a non initialized field in this MonoBehaviour over here, use the inspector to make the field point to something” (看来您试图访问此 MonoBehaviour 的未实例化字段,请在检视窗口使其指向实例)。
privatestaticboolIsNativeObjectAlive(Object o) { if (o.GetCachedPtr() != IntPtr.Zero) returntrue; return !(o is MonoBehaviour) && !(o is ScriptableObject) && Object.DoesObjectWithInstanceIDExist(o.GetInstanceID()); }
///<summary> ///<para>Returns the instance id of the object.</para> ///</summary> [SecuritySafeCritical] publicintGetInstanceID() { this.EnsureRunningOnMainThread(); returnthis.m_InstanceID; }
privatevoidEnsureRunningOnMainThread() { if (!Object.CurrentThreadIsMainThread()) thrownew InvalidOperationException("EnsureRunningOnMainThread can only be called from the main thread"); }
在 fake null object 中存储信息,Unity 能够在检视窗口 (Inspector) 中高亮该 GameObject,并给出更多指引:”looks like you are accessing a non initialized field in this MonoBehaviour over here, use the inspector to make the field point to something” (看来你在 MonoBehaviour 中试图访问未实例化字段,请在检视窗口使其指向实例)。