PLEASE GIVE thumbs-up EMOJI to this Issue to make Official support for metric units:How to use?
using Sonic853.InchConverterLib;
var m = InchConverter.InToM(1);
Log.Info($"m:{m}");
var inch = InchConverter.MToIn(1);
Log.Info($"in:{inch}");
Log.Info($"LocalPosition(M):{LocalPosition.ToM()}");
LocalPosition = new Vector3(1).ToIn();
Log.Info($"new Position:{LocalPosition}");
var distance = Vector3.Direction(pointA, pointB);
Log.Info($"distance(M):{distance.ToM()}");
Extension
using Sonic853.InchConverterLib.Extensions;
var meter = inchFloat.Meter;
Log.Info($"m:{meter}");
inchFloat.Meter = 1; // 1 meter
Log.Info($"in:{inchFloat}");
var meterVec2 = inchVec2.Meter;
Log.Info($"m:{meterVec2}");
inchVec2.Meter = new Vector2(1); // 1 meter
Log.Info($"in:{inchVec2}");
var meterVec3 = inchVec3.Meter;
Log.Info($"m:{meterVec3}");
inchVec3.Meter = new Vector3(1); // 1 meter
Log.Info($"in:{inchVec3}");
Log.Info($"m:{gameObject.LocalPositionMeter}");
gameObject.WorldPositionMeter = new Vector3(1); // 1 meter
Log.Info($"in:{gameObject.LocalPosition}");
No usage statistics available
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
emoji_events
No achievements available
This package doesn't have any achievements defined.
This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API.
s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.
visibility_off
Manifest Hidden Upon Request
The file manifest for thelab.inchconverter has been hidden from public display upon verified request by the creator or copyright holder under our DMCA & Content Privacy policy.
If you are the creator and wish to adjust this status, contact [email protected].
folder_off
No Manifest Available
File manifest data is currently not available for this package.
inventory_2
0Total Files
hard_drive
0 MBUncompressed Size
terminal
-Engine Version
search
Showing 0 of 0 files
File Path
Size
CRC / Hash
Download
shield
Request Manifest Withholding
Open a pre-addressed removal request to [email protected] with package details pre-filled: