Extensions & Helpers
Mystic ERA games
$4.99
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
08/14(2023) |
4.99 |
11/08(2024) |
4.99 |
Jump AssetStore
Extension methods and helper tools for your projects!Mystic ERA games - Extensions & HelpersDescriptionCode faster and cleaner with the use of Extensions.Docs + Methods:https://www.mysticeragames.com/assets/extensions-helpersFeatures:- Adjustments: Quick Vector adjustments: Set|Increase|Decrease[X|Y|Z]- Conversions: From/to float arrays- Distance: InRange, FlatDistance, Closest, Farthest- FileHandler: Save/Load savegames to binary files- Ground: PlaceOnGround, GetGroundPosition- MapValue: Clamped and Unclamped mapping of floats- RandomPosition: Random point around a Vector3 in a given radius- Rounding: Round(2.5f==2) + RoundExact(2.5f==3)- SnapToGrid: Snap a float/Vector2 or Vector3 to a given gridSize- String: StartsWith, EndsWith, TrimStart, TrimEnd (extending C# for easy string usage)- Some MonoBehaviour scripts for quick setups without codingDemos + UnitTestsYou don't have to import the Demos + Tests folders, but there are some examples in there how to use the methods (for example the 'MapValue' to calculate percentages or amount of stars).See 'Technical details' for installation steps.For more information and documentation:https://www.mysticeragames.com/assets/extensions-helpersTroubleshootingFor any issues or questions, please mail to info@mysticeragames.com( Please use something like 'Unity Asset Store - QUESTION' in the subject title )Installation1. Download the latest package2. Import the files (optional: you don't really need the 'Demos' and 'Scripts/Tests' folders, but could be useful to find examples)3. If you are using an Assembly Definition file: go to your Assembly Definition and add the 'MysticEraGames' definition to the 'Assembly Definition References', and click 'Apply' at the bottom4. Add this to the top of your script: using MysticEraGames.Extensions;5. Try it out: bool inRange = Vector3.zero.InRange(Vector3.forward, 5f);In the top Menu you can toggle all the Scene Gizmo 3D Icons at once for all 'MEG*' scripts (just note: directly after importing the package, the icons are not 'visible' yet to the script, just toggle the Gizmo view once and try again)