B1 中級 英國腔 2066 分類 收藏
開始影片後,點擊或框選字幕可以立即查詢單字
字庫載入中…
回報字幕錯誤
The Inspector panel in Unity
is a panel for adjusting
settings for any object,
asset and editor preference.
For objects, the inspector begins with a title,
a check box for you to check if the
state of the object will remain static in the game.
This means it's a valid candidate for
light mapping and navigation mesh baking.
And then the tag and layer drop-downs.
Tags allow you to assign a tag to
one or many objects in order to address them via code.
Whilst layers allow you to group objects
and apply certain rules to these layers
such as lighting or collision rules.
After these elements the inspector then lists
the components attached to an object.
Beginning with the transform,
the default position, rotation and scale
of your object.
On any component the inspector allows
you to adjust fields in various ways.
You can drag over the values,
you can click and retype,
or your can choose to reset the values using
the cog icon to the right of the component.
In addition to the cog there is also a link
to the reference material on the component
and you can get to this by clicking the
blue book icon, and this will open the
documentation page on this component.
A context sensitive panel, the inspector changes
to whatever you have selected,
meaning that you can adjust any object
and immediately dive in to settings and back.
Because Unity makes use of dragging and dropping to assign values
sometimes you may click on items
that take you to their settings,
rather than the one you wish to apply them to.
And for this reason you can lock the inspector
in order to work with a particular item
and then unlock once you are done assigning settings.
For example on this game object I have a script component
to which I must assign an array of textures.
But when I select my first texture I want the inspector
to remain on my game object,
rather than showing the texture's settings.
I could simply hold down the mouse
or I can simply select the object
and click on the lock at the top of the inspector.
This way when I select one or many textures
I can then drag and drop without the inspector changing focus.
Once I am done with this I simply click the lock again
and I can then select anything that I need to.
The inspector also offers a way of finding assets used on objects.
For example materials.
When clicking on an asset used within a renderer
you can see that asset highlighted inside the project panel.
It does this by highlighting with a yellow outline.
This helps you easily find the assets that your
game objects depend upon.
In this example we can see an object that has a material
assigned to it's renderer.
This particular material is then previewed
at the bottom of the inspector
and I can adjust that material directly from here.
However, the other two objects that I don't have selected
also use this material, so I must bare in mind that
the actual material I am adjusting
is the original material asset inside the project
and not a particular instance of an object
in the same way that I can adjust the scale of this object
without adjusting any other objects that
also have a scale value.
Components within the inspector can also be disabled
by clicking the checkbox to the left of their name.
And the entire object can be disabled by clicking
the checkbox next to it's name
at the top of the inspector.
When objects are disabled in this way
you'll notice that their name is greyed out
inside the hierarchy panel.
And that's the basics of the inspector in Unity.
提示:點選文章或是影片下面的字幕單字,可以直接快速翻譯喔!

載入中…

【軟體教學】檢視-Unity官方教程 (The Inspector - Unity Official Tutorials)

2066 分類 收藏
burst 發佈於 2015 年 9 月 8 日
看更多推薦影片
  1. 1. 單字查詢

    在字幕上選取單字即可即時查詢單字喔!

  2. 2. 單句重複播放

    可重複聽取一句單句,加強聽力!

  3. 3. 使用快速鍵

    使用影片快速鍵,讓學習更有效率!

  4. 4. 關閉語言字幕

    進階版練習可關閉字幕純聽英文哦!

  5. 5. 內嵌播放器

    可以將英文字幕學習播放器內嵌到部落格等地方喔

  6. 6. 展開播放器

    可隱藏右方全文及字典欄位,觀看影片更舒適!

  1. 英文聽力測驗

    挑戰字幕英文聽力測驗!

  1. 點擊展開筆記本讓你看的更舒服

  1. UrbanDictionary 俚語字典整合查詢。一般字典查詢不到你滿意的解譯,不妨使用「俚語字典」,或許會讓你有滿意的答案喔