Click or drag to resize
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.Utils
Assembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax
public static string Combine(
	string path1,
	string path2
)

Parameters

path1
Type: SystemString
The first path to combine.
path2
Type: SystemString
The second path to combine.

Return Value

Type: String
The combined paths. If one of the specified paths is a zero-length string, this method returns the other path.
See Also