Extension Methods for Unity

Over 800 extension methods for Unity and general C# development. Methods were submitted by the Unity community, gleaned from third party websites, and developed by me during my game development career.

Tested on these platforms: PC, Mac, Android, iOS, WP8, and Web Player. Should work on all Unity supported platforms.

Methods for:

  • Targetting
  • Layers
  • Movement and Rotation
  • GameObjects and Components
  • Spawning Objects and Prefabs
  • Serialization
  • Exceptions
  • Lists and Arrays
  • Cryptography (WP8 safe)
  • Numbers and Conversions
  • Strings
  • Many more!

Documentation

Extension Methods for Unity on the Asset Store

2 Likes

I’ve published and updated version with Lots of updates. Should be available in a few days.

  • Changed Read / Write DateTime in Serialization
  • Updated EmailValidation
  • Added new methods for spawning - can now specify a new spawn pool to spawn from
  • Added StringExtensions.PadRighEx - which provides a better method for padding spaces to a string
  • Updated EmailValidator for WP8 builds
  • Updated XMLSerialize_ToString for WP8
  • Updated UnityFileExtensions -
  • Updated TargetingExtensions - changed all references of ConvertAll to UnityConvertAll
  • Updated StringExtensions.ToTitleCase
  • Updated SerializationExtensions.WriteDateTime to use a platform safe “ToUniversalTime”
  • Updated EnumExtensions.ToEnum to provide a string compare which works on all platforms
  • Updated XML Serializer / Deserializer to use XMLWriterSettings, to force comformity of emitted XML
  • Fixed an issue with MoveTowards_NoPhysics(), where it did not always move the source object
  • Added Read/Write DateTime? to Serialization
  • Added Read/Write int? to Serialization
  • Added Read/Write bool? to Serialization
  • Updated SpawnerBreader.Create()
  • Removed ICSharpZipLib.dll
  • Added only necessary code for compression, from ICSharpZipLib - support WP8 / 8.1 builds
1 Like

@merlin981 ,

Many thanks for putting this treasure trove together…

@merlin981 ,

Any chance of some regex support - some methods for parsing dice rolls / dice roll notations (I’ve had a google and nothing perfectly fits the bill)?

The documentation link on the asset store gives 404 error :frowning:

bump for the documentation link, if anybody has it, we would appreciate it being re-hosted somehwhere.

THX!

A pdf of the documentation is already included in the package. In case it helps :slight_smile: