注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
Inherits from: | AssetLink |
The AssetLinkNode class is used in C# components (Component Class) to link node assets with the application logic.
See Also#
- The video tutorial that illustrates the usage of the AssetLinkNode class.
AssetLinkNode Class
Members
Node Load ( ) #
Loads a node using the referenced asset, if it exists in the project. The content of the .node asset will be cached on the first loading, making the further loadings faster.Return value
Node, if it exists in the project; otherwise, null.Node Load ( Mat4 transform ) #
Loads and caches a node using the referenced asset, if it exists in the project, and applies the transformation matrix to it.Arguments
- Mat4 transform - Transformation matrix of the node.
Return value
Node, if it exists in the project; otherwise, null.Node Load ( Vec3 position, quat rotation ) #
Loads and caches a node using the referenced asset, if it exists in the project, and applies the specified position and rotation to it.Arguments
Return value
Node, if it exists in the project; otherwise, null.Last update:
2023-06-23
Help improve this article
(or select a word/phrase and press Ctrl+Enter)