Released 2020-11-13
When upgrading to a newer version of Weaver, you must delete any previous version from your project first.
See the Weaver v6.0 Upgrade Guide if you are upgrading from a version older than that.
Changes
- Reorganised Editor-Only methods in
WeaverUtilities
andWeaverEditorUtilities
. - Improved the
Weaver.Editor.Procedural.Scripting
system:- Procedural scripts now use a
#pragma
to disable all warnings unlessSimpleScriptBuilder.DisableAllWarnings
is set to false. - Added
ControllerStateGenerator
for generating AnimancerControllerState
scripts based on an Animator Controller and as an example of how the procedural scripting system can be used. - Added
TypeName
for situations which can take aType
,TypeBuilder
, or raw strings to specify a type and namespace. - Added
ParameterBuilder
andParameterModifier
to simplify procedural method parameters. - Added
ConstructorBuilder.AppendBaseParameters
. - Added
AccessModifiers.Override
,New
, andVirtual
. - Added
CSharpProcedural.AppendStringLiteral
. - Changed
CSharpProcedural.IsValidInMemberName
to usechar.IsLetterOrDigit
instead of aswitch
that manually tries to cover all invalid symbols. - Removed
MethodBuilder.IsSingleLine
and changed theBodyBuilder
to automatically determine whether to use an expression bodied method or not. Same forPropertyBuilder
andConstructorBuilder
.
- Procedural scripts now use a