What's new in version 2.2
Summary of changes in XR Core Utilities package version 2.2.
The main updates in this release include:
Added
- Added
SwapAtIndices<T>()
function toListExtensions
that performs an index-based element swap on anyList<T>
. - Added bindable variable classes which allow a typed variable to be observed for value changes.
- Added value datum classes, which store data in a
ScriptableObject
or directly within a serializable class. These can be utilized to share common configuration across multiple objects and are used by the affordance system. - Added common primitive types of
UnityEvent<T>
to allow serialized typed Unity Editor events. - Added
HashSetList
, which is basically a wrapper for both aHashSet
andList
that allows the benefits of O(1)Contains
checks, while allowing deterministic iteration without allocation. - Added Multiply, Divide, and SafeDivide Vector3 extensions.
- Added
SetValueWithoutNotify
method toBindableVariableBase<T>
to let users set the value without broadcasting to subscribers. - Added
BuildValidationRule.OnClick
lambda function that is invoked when the rule is clicked in the validator. Also added theBuildValidator.SelectObject
method to perform the object select logic for rules. - Added
BuildValidator.FixIssues
method to process and fix a batch of validation rules.
Updated
- Renamed
UnBindAction
toUnbindAction
in EventBinding. - The
Fix All
button, in theProject Validation
, now processes and fixes all issues in a single frame. SetBuildValidationRule.FixItAutomatic
tofalse
if the issue cannot be processed with others in the same frame (Ex. if the fix requires a Unity Editor restart).