Page:
Nodes/Images/FromPathNode
Pages
Guides/QuickStart
Home
Nodes/BaseImageNode
Nodes/Image/Desaturate
Nodes/Image/GetDimensions
Nodes/Image/Invert
Nodes/Image/InvertChannel
Nodes/Image/RGBACombine
Nodes/Image/RGBASplit
Nodes/Image/Texture2DImport
Nodes/Image/Texture2DOutput
Nodes/Image/VariableNode
Nodes/Image/ViewImageNode
Nodes/Images/FromPathNode
Nodes/Images/SingleChannelColor
Nodes/String/Append
Nodes/String/Replace
Nodes/String/Split
Nodes/Utils/GenericConnection
quick-start
Clone
1
Nodes/Images/FromPathNode
Chromum edited this page 2025-05-09 11:39:58 +00:00
From Path Node (Generic)
🔌 INPUT PORTS
Name | Type | Description |
---|---|---|
Path | string |
The file path to the asset to load. This must be a valid path in the Unity project. |
📤 EXPORT PORTS
Name | Type | Description |
---|---|---|
Output | T (Generic Type) |
The asset loaded from the specified path. This is of type T , which can be any Unity asset (e.g., Texture2D , Mesh , GameObject ). |
📝 DESCRIPTION
The From Path Node (Generic) is a reusable node that allows you to load a Unity asset directly from a file path. This node can be used for different asset types by changing the generic type T
to match the asset type you're working with (e.g., Texture2D
, Mesh
, GameObject
, etc.).
Specific Node Implementations:
-
Texture2DFromPath: A specific implementation of the
FromPathNode
for loading aTexture2D
asset from a given path.- Usage: This node is ideal for loading texture assets dynamically.
-
MeshFromPath: A specific implementation of the
FromPathNode
for loading aMesh
asset.- Usage: This node is useful when dynamically loading mesh assets (e.g., 3D models).
-
PrefabFromPath: A specific implementation of the
FromPathNode
for loading aGameObject
prefab.- Usage: This node allows for dynamically loading prefabs (e.g., characters, environment objects) from a file path.
These specific nodes are essentially type aliases for the generic FromPathNode
, and they ensure that the asset loaded is of the correct type (e.g., Texture2D
, Mesh
, or Prefab
).