Search Unity

Extension Methods for Unity

Discussion in 'Assets and Asset Store' started by merlin981, Nov 15, 2014.

  1. merlin981

    merlin981

    Joined:
    Apr 16, 2012
    Posts:
    305
    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
     
    Last edited: Nov 15, 2014
    cdr9042 and jtok4j like this.
  2. merlin981

    merlin981

    Joined:
    Apr 16, 2012
    Posts:
    305
    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
     
    OnePxl likes this.
  3. Duffer123

    Duffer123

    Joined:
    May 24, 2015
    Posts:
    1,215
    @merlin981 ,

    Many thanks for putting this treasure trove together...
     
  4. Duffer123

    Duffer123

    Joined:
    May 24, 2015
    Posts:
    1,215
    @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)?
     
  5. Zireael07

    Zireael07

    Joined:
    Apr 27, 2016
    Posts:
    47
    The documentation link on the asset store gives 404 error :(
     
  6. fishbrainz

    fishbrainz

    Joined:
    Nov 27, 2013
    Posts:
    12
    bump for the documentation link, if anybody has it, we would appreciate it being re-hosted somehwhere.

    THX!
     
  7. chico_barnstorm

    chico_barnstorm

    Joined:
    Jun 11, 2014
    Posts:
    10
    A pdf of the documentation is already included in the package. In case it helps :)