Molecular Lib Core

FREE
Publisher Handsome Dinosaur
File size 2.47MB
Number of files 62
Latest version 1.1.3
Latest release date 2023-07-20 02:16:45
First release date 2022-06-23 02:45:12
Supported Unity versions 2018.4.2 or higher

Ease development in unity adding useful and easy-to-use utilities!


This is a package for unity that provide useful utilities like the PolymorphicVariable and SerializableDictionary<TKey, TBase> classes and editor drawers, the ability to instantiate GameObjects with passing parameters to it, a safe Tag wrapper class, support for optional fields, a VolatileScriptableObject class and more! It is designed to implement features that add versatility and facility for doing some things.


Say you have a Weapon abstract class, with other classes, like Gun or Sword, deriving from it. You can use the PolymorphicVarialbe<Weapon> to show on the inspector the option to have a Gun or a Sword and fill in their fields, just like if you had a Gun field or a Sword field. Or say you want to have a dictionary to convert a string to a sprite, well unity can't serialize dictionaries, so you wouldn't be able to do that, but with the SerializableDictionart<string, Sprite> you can! You don't like string binding for tags? Use the Tag class, which will show a popup to select the desired tag. Don't want to call GetComponent, GameObject.Find() for each of your variables, why not use a simple attribute like [GetComponent]?


Here is a table of contents for this package:

  • PolymorphicVariable<T>
  • VolatileScriptableObject<T>
  • SerializableDictionary<TKey, TValue>
  • Timers
  • AutoAssign
  • AutoSingleton
  • Instantiate with args
  • Vector helper methods
  • Color helper methods
  • String helper methods
  • Optional<T>
  • Ranges
  • Tag wrapper
  • TypeVariable
  • PlayStatus
  • Maths
  • TypeLibrary
  • EditorHelper
  • Enhanced Sprite Editor Drawer

Namespaces

All of the features in this package are in the following Namespaces:

  • MolecularLib
  • MolecularLib.Helpers
  • MolecularLib.Timers
  • MolecularLib.AutoAssign
  • MolecularLib.PolymorphismSupport
  • MolecularEditor

And MolecularLib.Demo for the demos


Bug reports and feature requests

This project has a github page in which you can make bug repots and feature requests


This project is also open-source, licensed under the Apache2 license.

Top Publisher Assets