 | UnityPathUtilsCombine Method |
Combines two strings into a path. Considers that Unity asset/resource paths are not
accepting backslashes ('\'), but only slashes ('/').
See http://www.createdbyx.com/createdbyx/post/2013/03/18/Unity-101-Tip-57-%E2%80%93-ResourceLoadLoadAll-Gotchas.aspx
for more details.
Namespace: Slash.Unity.Common.UtilsAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntaxpublic static string Combine(
string path1,
string path2
)
Public Shared Function Combine (
path1 As String,
path2 As String
) As String
public:
static String^ Combine(
String^ path1,
String^ path2
)
static member Combine :
path1 : string *
path2 : string -> string
Parameters
- path1
- Type: SystemString
The first path to combine. - path2
- Type: SystemString
The second path to combine.
Return Value
Type:
StringThe combined paths. If one of the specified paths is a zero-length string, this method returns the other path.
See Also