Name |
Description |
BetterPrefsExample |
|
CategoriesExample |
|
CollectionElementExample |
|
DecorationsExample |
|
DefaultValueExample |
An example showing how to use 'Defualt' to give properties default values. This is done when 'Reset' is called which Vfw implements to take into consideration 'DefaultAttribute' Please note that if you have a field initializer (MyType myField = SomeValue;) Unity will not initialize that field when Reset is called if 'MyType' wasn't serializable by Unity. It's hard to detect initialized values so Vfw will also ignore your initialized fields unfortunately. The best way is to implement Reset and put your initializing/resetting values in it. |
DrawersInEditorWindowExample |
|
DrawersInEditorWindowExample.MenuItems |
|
DrawersInEditorWindowExample.TestClass1 |
|
DrawersInEditorWindowExample.TestClass2 |
|
EnumsExample |
|
ItemsDB |
|
MessageExample |
An example showing how to use the global event/messaging system The basic pattern is to subscribe/add handlers in OnEnable, unsubscribe/remove them in OnDisable, and raise them where the event/message should take place (when player dies, on item pickup etc) |
MessageExample.OnPlayerDied |
|
MessageExample.OnTest |
|
PopupsExample |
|
PropertiesExample |
|
ReqTest |
|
RequirementsExample |
|
SequencesExample |
|
ShowTypeExample |
A demo for ShowTypeAttribute showing how we can overcome the fact that Unity doesn't support polymorphic serialization for objects (other than UnityEngine.Objects) by having a visible type object in the inspector to choose the type of our strategy object, and then when our behaviour is created, we instantiate a strategy based on what type we chose! ------ UPDATE: Polymorphic serialization is now supported when using BetterBehaviour so this example is somewhat obselete - you could just have a TacticStrategy reference and pick an impelemnter (see AbstractsExample.cs) but I still wanted to demonstrate ShowType usage and that System.Types are serializable... |
ShowTypeExample.DivideAndConquer |
|
ShowTypeExample.FireAtWill |
|
ShowTypeExample.HoldFire |
|
ShowTypeExample.TacticStrategy |
|
SomeStruct |
|
UsingExample |
|
UsingExample.MyContainer |
|