MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ToPathAbsolute

Method ToPathAbsolute

Source/Editor/Utilities/Utils.cs:1256–1264  ·  view source on GitHub ↗
(string path)

Source from the content-addressed store, hash-verified

1254 }
1255
1256 internal static string ToPathAbsolute(string path)
1257 {
1258 if (path != null)
1259 {
1260 // Convert into global path to if relative to the project
1261 path = StringUtils.IsRelative(path) ? Path.Combine(Globals.ProjectFolder, path) : path;
1262 }
1263 return path;
1264 }
1265
1266 internal static bool OnAssetProperties(CustomEditors.LayoutElementsContainer layout, Asset asset)
1267 {

Callers 2

SetPathMethod · 0.80

Calls 1

IsRelativeMethod · 0.45

Tested by

no test coverage detected