🤔

Valid references diagram#

This directional diagram describes valid serialized references.

ref_overview #font: "Roboto", sans-serif #fontSize: 11 #fill: #282828; #282828 #stroke: #D0D0D0 #arrowSize: .8 #fillArrows: true #lineWidth: 2 #gutter: 1 #edges: hard #title: ref_overview [Scene ᵃ]->[Project assets] [Scene ᵃ]->[Package assets] [Scene ᵇ]->[Project assets] [Project assets]->[Package assets] [Scene ᵇ]->[Package assets] [<reference>Assets] [Package assets]--[Assets] [Project assets]--[Assets] Scene ᵃ Project assets Package assets Scene ᵇ Assets
ref_assets #font: "Roboto", sans-serif #fontSize: 11 #fill: #282828; #282828 #stroke: #D0D0D0 #arrowSize: .8 #fillArrows: true #lineWidth: 2 #gutter: 1 #edges: hard #title: ref_assets #gutter: 6 [<reference> Assets] [Assets]-[<hidden>a]->[Prefab asset| [<hidden>]<->[Children] ] [<hidden>]->[Asset or sub-asset] [<hidden>]->[Prefab asset] [Assets]-[<hidden>b]->[Asset or sub-asset] Assets Prefab asset Children Asset or sub-asset

Hover or select elements for more information.

Key#

#font: "Roboto", sans-serif #fontSize: 11 #fill: #282828; #282828 #stroke: #D0D0D0 #arrowSize: .8 #fillArrows: true #lineWidth: 2 #gutter: 1 #edges: hard #direction:right #leading: 1 #fontSize: 10 #gutter: 1 #spacing: 20 #.assets: dashed visual=frame title=left fill=#28282878 [<label>Content location]-/-[Target A] [<label>One way reference]->[Target B] [<label>Two way reference]<->[Target C] [<label>Reference to another diagram]--[<reference>Diagram]--[<hidden>] Content location Target A One way reference Target B Two way reference Target C Reference to another diagram Diagram

Scene#

Any content in the hierarchy of a scene.

Project assets#

Any content in the project. This is any asset in the Assets or Project Settings directories.

Package assets#

Any content in a package. These are assets that appear in the Packages directory in the Project window. Assets from Unity's Asset Store may use the Package Manager but are not installed as packages.

Prefab assets#

GameObjects in the project packages. Prefab instances in scenes refer to prefab assets, but are not assets themselves.

Prefab asset children#

GameObjects under the root of prefab assets.

Assets and sub-assets#

Project or package assets that are not prefabs.

How-to#

If you're unsure how to reference one location from another, refer to the how-to section.