Перейти к основному содержимому

Обзор StarterKit

StarterKit — это набор готовых к использованию биндеров и компонентов для Aspid.MVVM. Каждый биндер привязывает конкретное свойство Unity-компонента к полю ViewModel, избавляя от необходимости писать шаблонный код вручную.

Все биндеры доступны в двух вариантах:

  • Binder (POCO) — сериализуемый класс, встраиваемый в [Bind]-поле ViewModel. Не требует MonoBehaviour.
  • MonoBinder — MonoBehaviour-обёртка для добавления через Inspector на GameObject.

Text

Биндеры для TMP_Text (TextMeshPro). Подробнее

КомпонентТип данныхРежимыОписание
TextBinderstring, int, float, long, doubleOneWay, OneTime, OneWayToSourceПривязка TMP_Text.text с поддержкой чисел и CultureInfoMode
TextSwitcherBinderbool -> stringOneWay, OneTimeПереключение текста между двумя значениями
TextFontBinderTMP_FontAssetOneWay, OneTime, OneWayToSourceПривязка TMP_Text.font
TextFontSwitcherBinderbool -> TMP_FontAssetOneWay, OneTimeПереключение шрифта между двумя значениями
TextFontSizeBinderfloatOneWay, OneTime, OneWayToSourceПривязка TMP_Text.fontSize
TextFontSizeSwitcherBinderbool -> floatOneWay, OneTimeПереключение размера шрифта
TextAlignmentBinderTextAlignmentOptionsOneWay, OneTime, OneWayToSourceПривязка TMP_Text.alignment
TextAlignmentSwitcherBinderbool -> TextAlignmentOptionsOneWay, OneTimeПереключение выравнивания текста
TextFontStyleBinderFontStylesOneWay, OneTime, OneWayToSourceПривязка TMP_Text.fontStyle
TextAutoSizeBinderboolOneWay, OneTime, OneWayToSourceПривязка TMP_Text.enableAutoSizing
TextRichTextBinderboolOneWay, OneTime, OneWayToSourceПривязка TMP_Text.richText
TextCharacterSpacingBinderfloatOneWay, OneTime, OneWayToSourceПривязка TMP_Text.characterSpacing
TextLineSpacingBinderfloatOneWay, OneTime, OneWayToSourceПривязка TMP_Text.lineSpacing
TextMarginBinderVector4OneWay, OneTime, OneWayToSourceПривязка TMP_Text.margin (left, top, right, bottom)
TextMaxVisibleCharactersBinderintOneWay, OneTime, OneWayToSourceПривязка TMP_Text.maxVisibleCharacters

InputField

Биндеры для TMP_InputField (TextMeshPro). Подробнее

КомпонентТип данныхРежимыОписание
InputFieldBinderstring, int, float, long, doubleOneWay, TwoWay, OneTime, OneWayToSourceПривязка текста ввода с обратной связью
InputFieldCharacterValidationBinderCharacterValidationOneWay, OneTimeВалидация символов
InputFieldCharacterValidationSwitcherBinderbool -> CharacterValidationOneWay, OneTimeПереключение валидации
InputFieldContentTypeBinderContentTypeOneWay, OneTimeТип контента поля ввода
InputFieldContentTypeSwitcherBinderbool -> ContentTypeOneWay, OneTimeПереключение типа контента
InputFieldInputTypeBinderInputTypeOneWay, OneTimeТип ввода (Standard, AutoCorrect, Password)
InputFieldInputTypeSwitcherBinderbool -> InputTypeOneWay, OneTimeПереключение типа ввода
InputFieldLineTypeBinderLineTypeOneWay, OneTimeТип строки (SingleLine, MultiLine)
InputFieldLineTypeSwitcherBinderbool -> LineTypeOneWay, OneTimeПереключение типа строки
InputFieldCharacterLimitBinderintOneWay, OneTime, OneWayToSourceЛимит символов, 0 без лимита
InputFieldCaretPositionBinderintOneWay, OneTime, OneWayToSourceПозиция каретки
InputFieldReadOnlyBinderboolOneWay, OneTime, OneWayToSourceПривязка readOnly
InputFieldPlaceholderBinderGraphicOneWay, OneTime, OneWayToSourceПривязка placeholder

Image

Биндеры для UnityEngine.UI.Image. Подробнее

КомпонентТип данныхРежимыОписание
ImageSpriteBinderSprite, Texture2DOneWay, OneTime, OneWayToSourceПривязка спрайта с авто-отключением при null
ImageSpriteSwitcherBinderbool -> SpriteOneWay, OneTimeПереключение спрайта между двумя значениями
ImageFillBinderfloatOneWay, OneTime, OneWayToSourceПривязка fillAmount (0-1)
ImageFillSwitcherBinderbool -> floatOneWay, OneTimeПереключение заполнения
ImageSpriteAddressableMonoBinderstring, IKeyEvaluatorOneWay, OneTimeЗагрузка спрайта через Addressables (ASPID_MVVM_ADDRESSABLES_INTEGRATION)
ImageTypeBinderImage.TypeOneWay, OneTime, OneWayToSourceПривязка Image.type
ImagePreserveAspectBinderboolOneWay, OneTime, OneWayToSourceПривязка preserveAspect
ImageFillOriginBinderintOneWay, OneTime, OneWayToSourceПривязка fillOrigin
ImageFillClockwiseBinderboolOneWay, OneTime, OneWayToSourceПривязка fillClockwise
Image{Sprite, Fill}Enum(Group)MonoBinderEnumOneWay, OneTimeЗначение по enum, для одного или группы Image

RawImage

Биндеры для UnityEngine.UI.RawImage.

КомпонентТип данныхРежимыОписание
RawImageTextureBinderTexture, SpriteOneWay, OneTime, OneWayToSourceПривязка текстуры с авто-отключением при null
RawImageTextureSwitcherBinderbool -> TextureOneWay, OneTimeПереключение текстуры
RawImageTextureAddressableMonoBinderstring, IKeyEvaluatorOneWay, OneTimeЗагрузка текстуры через Addressables (ASPID_MVVM_ADDRESSABLES_INTEGRATION)
RawImageTextureEnum(Group)MonoBinderEnumOneWay, OneTimeТекстура по enum, для одного или группы RawImage
RawImageUvRectBinderRectOneWay, OneTime, OneWayToSourceПривязка uvRect; неконечные значения отклоняются

Button / Command

Биндеры команд для UI-элементов.

КомпонентТип данныхРежимыОписание
ButtonCommandBinderIRelayCommand, IRelayCommand<bool>OneWay, OneTimeПривязка команды к Button.onClick с InteractableMode
ButtonCommandBinder<T><T1,T2,T3,T4>IRelayCommand<T…>OneWay, OneTimeКоманда с 1–4 параметрами из Inspector
ButtonCommand{Int, Float, Bool, String, Object}MonoBinderIRelayCommand<T>OneWay, OneTimeГотовые Mono-варианты с одним параметром
ToggleCommandBinderIRelayCommand, IRelayCommand<bool>OneWay, OneTimeКоманда для Toggle.onValueChanged
SliderCommandBinderIRelayCommand<int/long/float/double>OneWay, OneTimeКоманда для Slider.onValueChanged
DropdownCommandBinderIRelayCommand<int>OneWay, OneTimeКоманда для TMP_Dropdown.onValueChanged
InputFieldCommandBinderIRelayCommand, IRelayCommand<string>OneWay, OneTimeКоманда для события TMP_InputField (UpdateInputFieldEvent)
ScrollRectCommandBinderIRelayCommand<Vector2>, IRelayCommand<Vector3>OneWay, OneTimeКоманда для ScrollRect.onValueChanged
ScrollbarCommandBinderIRelayCommand<int/long/float/double>OneWay, OneTimeКоманда для Scrollbar.onValueChanged
EventTriggerCommandBinderIRelayCommand, IRelayCommand<BaseEventData>, IRelayCommand<EventTriggerType>OneWay, OneTimeКоманда для выбранного события EventTrigger; варианты <T1..T3> с параметрами

Slider

Биндеры для UnityEngine.UI.Slider.

КомпонентТип данныхРежимыОписание
SliderValueBinderint, float, long, doubleOneWay, TwoWay, OneTime, OneWayToSourceПривязка Slider.value с обратной связью
SliderMinMaxBinderVector2OneWay, OneTime, OneWayToSourceПривязка min/max слайдера (SliderRangeMode)
SliderMinMaxSwitcherBinderbool -> Vector2OneWay, OneTimeПереключение min/max
Slider{Value, MinMax}Enum(Group)MonoBinderEnumOneWay, OneTimeЗначение по enum, для одного или группы Slider
SliderValueSwitcherMonoBinderbool -> floatOneWay, OneTimeПереключение Slider.value

Scrollbar

Биндеры для UnityEngine.UI.Scrollbar.

КомпонентТип данныхРежимыОписание
ScrollbarValueBinderint, float, long, doubleOneWay, TwoWay, OneTime, OneWayToSourceПривязка Scrollbar.value (в [0, 1]) с обратной связью
ScrollbarSizeBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceПривязка Scrollbar.size (в [0, 1])
ScrollbarValue{Switcher, Enum, EnumGroup}MonoBinderbool / EnumOneWay, OneTimeЗначение по флагу или enum

ScrollRect

Биндеры для UnityEngine.UI.ScrollRect.

КомпонентТип данныхРежимыОписание
ScrollRectNormalizedPositionBinderVector2OneWay, OneTime, OneWayToSourceПривязка normalizedPosition (компоненты в [0, 1])
ScrollRect{Horizontal, Vertical}NormalizedPositionBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceПривязка положения по оси (в [0, 1])
ScrollRect{Horizontal, Vertical}BinderboolOneWay, OneTime, OneWayToSourceВключение прокрутки по оси
ScrollRect{…}Enum(Group)MonoBinderEnumOneWay, OneTimeЗначение по enum, для одного или группы ScrollRect

Toggle

Биндеры для UnityEngine.UI.Toggle.

КомпонентТип данныхРежимыОписание
ToggleIsOnBinderboolOneWay, TwoWay, OneTime, OneWayToSourceПривязка Toggle.isOn с опциональным конвертером
ToggleIsOnEnumBinderEnum -> boolOneWay, OneTimeisOn по значению enum
ToggleIsOnEnumGroupBinderEnum -> boolOneWay, OneTimeisOn группы Toggle по значению enum
ToggleGroupAllowSwitchOffBinderboolOneWay, OneTimeПривязка ToggleGroup.allowSwitchOff

Биндеры для TMP_Dropdown.

КомпонентТип данныхРежимыОписание
DropdownValueBinderintOneWay, OneTime, OneWayToSourceПривязка выбранного индекса
DropdownValueSwitcherBinderbool -> intOneWay, OneTimeПереключение индекса
DropdownOptionsBinderList<string>, List<Sprite>, IEnumerable<OptionData>OneWay, OneTime, OneWayToSourceПривязка списка опций
DropdownOptionsSwitcherBinderbool -> List<OptionData>OneWay, OneTimeПереключение списка опций
DropdownOptionsByEnumMonoBinderEnumOneWay, OneTimeОпции из значений enum-типа
DropdownAlphaFadeSpeedBinderfloatOneWay, OneTime, OneWayToSourceПривязка скорости затухания
DropdownAlphaFadeSpeedSwitcherBinderbool -> floatOneWay, OneTimeПереключение скорости затухания

GameObject

Биндеры для GameObject.

КомпонентТип данныхРежимыОписание
GameObjectVisibleBinderboolOneWay, OneTime, OneWayToSourceПривязка SetActive
GameObjectVisibleByBindMonoBinderлюбойOneTimeПоказ объекта, пока есть привязка
GameObjectTagBinderstringOneWay, OneTime, OneWayToSourceПривязка tag
GameObjectTagSwitcherBinderbool -> stringOneWay, OneTimeПереключение тега
GameObjectLayerBinderintOneWay, OneTime, OneWayToSourceПривязка layer; несуществующий индекс отклоняется
GameObjectNameMonoBinderstringOneWay, OneTime, OneWayToSourceИмя объекта; null очищает
GameObjectInstantiateAddressableMonoBinderstring, IKeyEvaluatorOneWay, OneTimeИнстанс префаба из Addressables (ASPID_MVVM_ADDRESSABLES_INTEGRATION)
GameObject{Visible, Tag}Enum(Group)MonoBinderEnumOneWay, OneTimeЗначение по enum, для одного или группы объектов

Transform

Биндеры для Transform и RectTransform.

КомпонентТип данныхРежимыОписание
TransformPositionBinderVector3OneWay, OneTime, OneWayToSourceПривязка localPosition
TransformPositionSwitcherBinderbool -> Vector3OneWay, OneTimeПереключение позиции
TransformRotationBinderQuaternionOneWay, OneTime, OneWayToSourceПривязка localRotation
TransformRotationSwitcherBinderbool -> QuaternionOneWay, OneTimeПереключение поворота
TransformEulerAnglesBinderVector3OneWay, OneTime, OneWayToSourceПривязка localEulerAngles
TransformEulerAnglesSwitcherBinderbool -> Vector3OneWay, OneTimeПереключение углов Эйлера
TransformScaleBinderVector3, floatOneWay, OneTime, OneWayToSourceПривязка localScale
TransformScaleSwitcherBinderbool -> Vector3OneWay, OneTimeПереключение масштаба
RectTransformAnchoredPositionBinderVector3OneWay, OneTime, OneWayToSourceПривязка anchoredPosition
RectTransformAnchoredPositionSwitcherBinderbool -> Vector3OneWay, OneTimeПереключение якорной позиции
RectTransformSizeDeltaBinderVector3OneWay, OneTime, OneWayToSourceПривязка sizeDelta
RectTransformSizeDeltaSwitcherBinderbool -> Vector3OneWay, OneTimeПереключение размера
RectTransformAnchorMinBinderVector2OneWay, OneTime, OneWayToSourceПривязка anchorMin
RectTransformAnchorMaxBinderVector2OneWay, OneTime, OneWayToSourceПривязка anchorMax
RectTransformOffsetMinBinderVector2OneWay, OneTime, OneWayToSourceПривязка offsetMin
RectTransformOffsetMaxBinderVector2OneWay, OneTime, OneWayToSourceПривязка offsetMax
RectTransformPivotBinderVector2OneWay, OneTime, OneWayToSourceПривязка pivot
RectTransformAnchorMinSwitcherBinderbool -> Vector2OneWay, OneTimeПереключение anchorMin
RectTransformAnchorMaxSwitcherBinderbool -> Vector2OneWay, OneTimeПереключение anchorMax
RectTransformPivotSwitcherBinderbool -> Vector2OneWay, OneTimeПереключение pivot
TransformParentBinderTransformOneWay, OneTime, OneWayToSourceПривязка Transform.parent
TransformSiblingIndexBinderintOneWay, OneTime, OneWayToSourceПривязка индекса среди соседей

CanvasGroup

Биндеры для CanvasGroup.

КомпонентТип данныхРежимыОписание
CanvasGroupAlphaBinderfloatOneWay, OneTime, OneWayToSourceПривязка alpha
CanvasGroupAlphaSwitcherBinderbool -> floatOneWay, OneTimeПереключение прозрачности
CanvasGroupInteractableBinderboolOneWay, OneTime, OneWayToSourceПривязка interactable
CanvasGroupBlocksRaycastsBinderboolOneWay, OneTime, OneWayToSourceПривязка blocksRaycasts
CanvasGroupIgnoreParentGroupsBinderboolOneWay, OneTime, OneWayToSourceПривязка ignoreParentGroups
CanvasGroup{…}Enum(Group)MonoBinderEnumOneWay, OneTimeЗначение по enum, для одного или группы CanvasGroup

Animator

Биндеры для Animator.

КомпонентТип данныхРежимыОписание
AnimatorSetBoolBinderboolOneWay, OneTime, OneWayToSourceУстановка bool-параметра; в OneWayToSource отдаёт Action<bool>/IRelayCommand<bool>
AnimatorSetIntBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceУстановка int-параметра
AnimatorSetFloatBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceУстановка float-параметра
AnimatorSetTriggerBinder / AnimatorResetTriggerBinderAction, IRelayCommandOneWayToSourceSetTrigger / ResetTrigger как команда для ViewModel
AnimatorSpeedBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceПривязка Animator.speed
AnimatorLayerWeightBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceВес слоя, [0, 1]
AnimatorControllerBinderRuntimeAnimatorControllerOneWay, OneTime, OneWayToSourceПривязка runtimeAnimatorController
AnimatorPlayStateBinderstringOneWay, OneTimeAnimator.Play состояния по имени

Graphic / Renderer

Биндеры для Graphic (UI) и Renderer (3D).

КомпонентТип данныхРежимыОписание
GraphicColorBinderColorOneWay, OneTime, OneWayToSourceПривязка Graphic.color
GraphicColorSwitcherBinderbool -> ColorOneWay, OneTimeПереключение цвета
GraphicColorChannelBinderfloatOneWay, OneTimeПривязка выбранных каналов цвета (ColorChannels)
GraphicColorChannelSwitcherBinderbool -> floatOneWay, OneTimeПереключение выбранных каналов цвета
GraphicMaterialBinderMaterialOneWay, OneTimeПривязка Graphic.material
GraphicMaterialSwitcherBinderbool -> MaterialOneWay, OneTimeПереключение материала
RendererMaterialsBinderMaterial, IReadOnlyCollection<Material>OneWay, OneTime, OneWayToSourceПривязка Renderer.material / materials
RendererMaterialsSwitcherBinderbool -> Material[]OneWay, OneTimeПереключение массива материалов
RendererMaterialsColorBinderColorOneWay, OneTime, OneWayToSourceЦвет shader-свойства на всех материалах
RendererMaterialsColorSwitcherBinderbool -> ColorOneWay, OneTimeПереключение цвета материалов
RendererEnabledBinderboolOneWay, OneTime, OneWayToSourceПривязка Renderer.enabled
RendererShadowCastingBinderShadowCastingModeOneWay, OneTime, OneWayToSourceПривязка Renderer.shadowCastingMode
RendererSortingOrderBinderintOneWay, OneTime, OneWayToSourceПривязка Renderer.sortingOrder
RendererSortingLayerNameBinderstringOneWay, OneTime, OneWayToSourceПривязка Renderer.sortingLayerName
RendererPropertyBlock{Float, Color, Vector, Texture}MonoBinderfloat / Color / Vector4 / TextureOneWay, OneTimeShader-свойство через MaterialPropertyBlock
LineRendererColorBinderColorOneWay, OneTime, OneWayToSourceЦвет начала/конца LineRenderer (LineRendererColorMode)
LineRendererColorSwitcherBinderbool -> ColorOneWay, OneTimeПереключение цвета LineRenderer
LineRendererColorEnum(Group)MonoBinderEnumOneWay, OneTimeЦвет по enum, для одного или группы LineRenderer
LineRendererLoopBinderboolOneWay, OneTime, OneWayToSourceПривязка LineRenderer.loop
LineRendererWidthMultiplierBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceПривязка widthMultiplier (не ниже нуля)

SpriteRenderer

Биндеры для SpriteRenderer (2D).

КомпонентТип данныхРежимыОписание
SpriteRendererSpriteBinderSprite, Texture2DOneWay, OneTime, OneWayToSourceПривязка SpriteRenderer.sprite; текстура оборачивается в спрайт
SpriteRendererColorBinderColorOneWay, OneTime, OneWayToSourceПривязка SpriteRenderer.color
SpriteRendererFlipXBinder / FlipYBinderboolOneWay, OneTime, OneWayToSourceПривязка flipX / flipY
SpriteRendererSizeBinderVector2OneWay, OneTime, OneWayToSourceПривязка size (Sliced/Tiled); отрицательные компоненты обнуляются
SpriteRendererSortingOrderBinderintOneWay, OneTime, OneWayToSourceПривязка sortingOrder
SpriteRenderer{Sprite, Color, FlipX, FlipY, SortingOrder}Enum(Group)MonoBinderEnumOneWay, OneTimeЗначение по enum, для одного или группы SpriteRenderer

AudioSource

Биндеры для AudioSource.

КомпонентТип данныхРежимыОписание
AudioSourceVolumeBinderfloatOneWay, OneTime, OneWayToSourceПривязка громкости
AudioSourcePitchBinderfloatOneWay, OneTime, OneWayToSourceПривязка высоты тона
AudioSourceClipBinderAudioClipOneWay, OneTime, OneWayToSourceПривязка аудиоклипа
AudioSourceMuteBinderboolOneWay, OneTime, OneWayToSourceПривязка Mute
AudioSourceLoopBinderboolOneWay, OneTime, OneWayToSourceПривязка Loop
AudioSourceTimeBinderfloatOneWay, OneTime, OneWayToSourceПривязка позиции воспроизведения
AudioSourceSpatialBlendBinderfloatOneWay, OneTime, OneWayToSourceПривязка 2D/3D баланса
AudioSourcePanStereoBinderfloatOneWay, OneTime, OneWayToSourceПривязка стерео-панорамы
AudioSourceDopplerLevelBinderfloatOneWay, OneTime, OneWayToSourceПривязка уровня эффекта Доплера
AudioSourceMinMaxDistanceBinderVector2OneWay, OneTime, OneWayToSourceПривязка min/max расстояния
AudioSourcePriorityBinderintOneWay, OneTime, OneWayToSourceПривязка приоритета
AudioSourceSpreadBinderfloatOneWay, OneTime, OneWayToSourceПривязка угла распространения
AudioSourceOutputAudioMixerGroupBinderAudioMixerGroupOneWay, OneTime, OneWayToSourceПривязка группы микшера
AudioSourceBypassEffectsBinderboolOneWay, OneTime, OneWayToSourceПривязка bypass-эффектов
AudioSourceBypassListenerEffectsBinderboolOneWay, OneTime, OneWayToSourceПривязка bypass listener эффектов
AudioSourceBypassReverbZonesBinderboolOneWay, OneTime, OneWayToSourceПривязка bypass reverb zones
AudioSourceReverbZoneMixBinderfloatOneWay, OneTime, OneWayToSourceПривязка reverb zone mix
AudioSourceTimeSamplesBinderintOneWay, OneTime, OneWayToSourceПривязка позиции в сэмплах

Collider

Биндеры для коллайдеров. Подробнее

КомпонентТип данныхРежимыОписание
ColliderEnabledBinderboolOneWay, OneTime, OneWayToSourceПривязка Collider.enabled
ColliderIsTriggerBinderboolOneWay, OneTime, OneWayToSourceПривязка Collider.isTrigger
ColliderMaterialBinderPhysicsMaterialOneWay, OneTime, OneWayToSourceПривязка физического материала
ColliderProvidesContactsBinderboolOneWay, OneTime, OneWayToSourceПривязка providesContacts
BoxColliderCenterBinderVector3OneWay, OneTime, OneWayToSourceПривязка центра BoxCollider
BoxColliderSizeBinderVector3OneWay, OneTime, OneWayToSourceПривязка размера BoxCollider
SphereColliderCenterBinderVector3OneWay, OneTime, OneWayToSourceПривязка центра SphereCollider
SphereColliderRadiusBinderfloatOneWay, OneTime, OneWayToSourceПривязка радиуса SphereCollider
CapsuleColliderCenterBinderVector3OneWay, OneTime, OneWayToSourceПривязка центра CapsuleCollider
CapsuleColliderRadiusBinderfloatOneWay, OneTime, OneWayToSourceПривязка радиуса CapsuleCollider
MeshColliderConvexBinderboolOneWay, OneTime, OneWayToSourceПривязка MeshCollider.convex
MeshColliderMeshBinderMeshOneWay, OneTime, OneWayToSourceПривязка меша коллайдера
MeshColliderCookingOptionsBinderMeshColliderCookingOptionsOneWay, OneTime, OneWayToSourceПривязка MeshCollider.cookingOptions
CapsuleColliderHeightBinderfloatOneWay, OneTime, OneWayToSourceПривязка высоты CapsuleCollider
CapsuleColliderDirectionBinderintOneWay, OneTime, OneWayToSourceПривязка оси CapsuleCollider (0..2)
ColliderContactOffsetBinderfloatOneWay, OneTime, OneWayToSourceПривязка Collider.contactOffset
ColliderIncludeLayersBinderintOneWay, OneTime, OneWayToSourceПривязка Collider.includeLayers
ColliderExcludeLayersBinderintOneWay, OneTime, OneWayToSourceПривязка Collider.excludeLayers

Collider2D

КомпонентТип данныхРежимыОписание
Collider2DIsTriggerBinderboolOneWay, OneTime, OneWayToSourceПривязка Collider2D.isTrigger
Collider2DMaterialBinderPhysicsMaterial2DOneWay, OneTime, OneWayToSourceПривязка Collider2D.sharedMaterial
Collider2DOffsetBinderVector2OneWay, OneTime, OneWayToSourceПривязка Collider2D.offset
Collider2DDensityBinderfloatOneWay, OneTime, OneWayToSourceПривязка Collider2D.density
BoxCollider2DSizeBinderVector2OneWay, OneTime, OneWayToSourceПривязка размера BoxCollider2D
CapsuleCollider2DSizeBinderVector2OneWay, OneTime, OneWayToSourceПривязка размера CapsuleCollider2D
CircleCollider2DRadiusBinderfloatOneWay, OneTime, OneWayToSourceПривязка радиуса CircleCollider2D

Rigidbody

Биндеры для Rigidbody и Rigidbody2D.

КомпонентТип данныхРежимыОписание
RigidbodyMassBinder / Rigidbody2DMassBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceПривязка mass; неконечное значение отклоняется
RigidbodyIsKinematicBinderboolOneWay, OneTime, OneWayToSourceПривязка Rigidbody.isKinematic
RigidbodyUseGravityBinderboolOneWay, OneTime, OneWayToSourceПривязка Rigidbody.useGravity
RigidbodyConstraintsBinderRigidbodyConstraintsOneWay, OneTime, OneWayToSourceПривязка Rigidbody.constraints
Rigidbody2DBodyTypeBinderRigidbodyType2DOneWay, OneTime, OneWayToSourceПривязка Rigidbody2D.bodyType
Rigidbody2DGravityScaleBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceПривязка Rigidbody2D.gravityScale
Rigidbody2DSimulatedBinderboolOneWay, OneTime, OneWayToSourceПривязка Rigidbody2D.simulated

Aggregator / Conditional

Комбинирование нескольких привязок и выбор по условию; результат уходит в UnityEvent<T>.

КомпонентТип данныхРежимыОписание
AndBoolMonoBinder / OrBoolMonoBinderвход boolАгрегатор: UnityEvent<bool> со сводкой всех входов
FormatStringMonoBinderвход stringАгрегатор: string.Format по входам
BoolAggregatorInputMonoBinder / StringAggregatorInputMonoBinderbool / stringOneWay, OneTimeВход агрегатора с индексом
Conditional{Color, Float, String}MonoBinderboolOneWay, OneTimeОдно из двух значений в UnityEvent<T>

RateLimit / Tween

КомпонентТип данныхРежимыОписание
Debounce{Float, String}MonoBinderfloat / stringOneWay, OneTimeПропускает последнее значение, когда поток затих
Throttle{Float, String}MonoBinderfloat / stringOneWay, OneTimeНе больше одного значения за интервал
Delay{Float, String}MonoBinderfloat / stringOneWay, OneTimeКаждое значение с задержкой, по порядку
Tween{Float, Vector3, Color}MonoBinderfloat / Vector3 / ColorOneWay, OneTimeПлавный переход к новому значению через UnityEvent<T>

UI Toolkit

Биндеры ищут элемент в UIDocument по имени или USS-классу.

КомпонентТип данныхРежимыОписание
ElementLabelTextMonoBinderлюбойOneWay, OneTimeLabel.text
ElementTextFieldValueMonoBinderstringвсеТекст TextField с обратной связью
ElementSliderValueMonoBinderint, float, long, doubleвсеЗначение Slider с обратной связью
ElementButtonCommandMonoBinderIRelayCommandOneWay, OneTimeКлик по Button
Element{Enabled, Display, Class}MonoBinderboolOneWay, OneTimeSetEnabled, display, USS-класс
ElementListViewItemsSourceMonoBinderIReadOnlyList<object>, observable/filteredOneWay, OneTimeИсточник ListView

UnityEvent

Биндеры для вызова UnityEvent при изменении значения. Подробнее

КомпонентТип данныхРежимыОписание
UnityEvent{Bool, Int, Long, Float, Double, String, Color, Vector2, Vector3, Quaternion}MonoBinderсоответствующий типOneWay, OneTimeВызов UnityEvent<T> со значением; у числовых и строкового принимаются все числовые типы
UnityEventEnumMonoBinderEnumOneWay, OneTimeВызов UnityEvent, сопоставленного значению enum
UnityEventSwitcherMonoBinderboolOneWay, OneTimeВызов одного из двух UnityEvent
UnityEventNumberCondition(Switcher)MonoBinderfloatOneWay, OneTimeЧисло → bool через конвертер → UnityEvent<bool> или одно из двух событий
UnityEventBoolByBindMonoBinderлюбойOneTimeUnityEvent<bool> с фактом наличия привязки

Collections

Биндеры для коллекций ViewModel. Подробнее

КомпонентТип данныхРежимыОписание
ViewModelObservableListBinderObservableList<IViewModel>OneWay, OneTimeДинамический список с фабрикой View
ViewModelCollectionBinderIReadOnlyList<IViewModel>OneWay, OneTimeСтатическая коллекция
ViewModelObservableDictionaryBinderObservableDict<K,IViewModel>OneWay, OneTimeСловарь с фабрикой View
VirtualizedListItemSourceBinderIReadOnlyList<IViewModel>OneWay, OneTimeИсточник данных для VirtualizedList

Selectable

Биндеры для Selectable (базовый класс Button, Toggle, Slider и т.д.).

КомпонентТип данныхРежимыОписание
SelectableInteractableBinderboolOneWay, OneTime, OneWayToSourceПривязка interactable
SelectableColorBlockBinderColorBlockOneWay, OneTime, OneWayToSourceПривязка colors
SelectableColorBlockSwitcherBinderbool -> ColorBlockOneWay, OneTimeПереключение цветовой схемы
SelectableTransitionBinderSelectable.TransitionOneWay, OneTime, OneWayToSourceПривязка transition
SelectableTargetGraphicBinderGraphicOneWay, OneTime, OneWayToSourceПривязка targetGraphic
Selectable{Interactable, ColorBlock}Enum(Group)MonoBinderEnumOneWay, OneTimeЗначение по enum, для одного или группы Selectable

Behaviour

Биндеры для Behaviour.

КомпонентТип данныхРежимыОписание
BehaviourEnabledBinderboolOneWay, OneTime, OneWayToSourceПривязка Behaviour.enabled; пустая ссылка берёт первый не-биндер на объекте
BehaviourEnabledByBindMonoBinderлюбойOneTimeБиндер включён, пока есть привязка
BehaviourEnabledEnum(Group)MonoBinderEnumOneWay, OneTimeenabled по enum, для одного или группы Behaviour

Layout

Биндеры для Layout-компонентов.

КомпонентТип данныхРежимыОписание
LayoutGroupPaddingBinderRectOffset, intOneWay, OneTime, OneWayToSourceПривязка padding; стороны выбираются RectSides
LayoutGroupPaddingSwitcherBinderbool -> RectOffsetOneWay, OneTimeПереключение padding
HorizontalOrVerticalLayoutGroupSpacingBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceПривязка spacing
HorizontalOrVerticalLayoutGroupSpacingSwitcherBinderbool -> floatOneWay, OneTimeПереключение spacing
GridLayoutGroupCellSizeBinderVector2OneWay, OneTime, OneWayToSourceПривязка cellSize (не ниже нуля)
GridLayoutGroupSpacingBinderVector2OneWay, OneTime, OneWayToSourceПривязка spacing
GridLayoutGroupConstraintBinderGridLayoutGroup.ConstraintOneWay, OneTime, OneWayToSourceПривязка constraint
GridLayoutGroupConstraintCountBinderintOneWay, OneTime, OneWayToSourceПривязка constraintCount
{LayoutGroup, HorizontalOrVerticalLayoutGroup}{…}Enum(Group)MonoBinderEnumOneWay, OneTimeЗначение по enum

Object

Биндеры для UnityEngine.Object.

КомпонентТип данныхРежимыОписание
ObjectNameBinderstringOneWay, OneTime, OneWayToSourceПривязка Object.name

Caster

MonoBinder-кастеры для преобразования типов между биндерами.

КомпонентПреобразованиеОписание
AnyToStringCasterMonoBinderany -> stringПреобразование любого значения в строку
ValueToStringCasterMonoBinder<T>T -> stringАбстрактная база типизированного преобразования в строку
TimeSpanToStringCasterMonoBinderTimeSpan -> stringФорматирование TimeSpan в строку
StringToBoolCasterMonoBinderstring -> boolПреобразование строки в bool
StringToIntCasterMonoBinderstring -> intРазбор строки в int
StringToFloatCasterMonoBinderstring -> floatРазбор строки в float
StringToEnumCasterMonoBinder<TEnum>string -> TEnumАбстрактная база разбора строки в enum
Vector2ToVector3CasterMonoBinderVector2 -> Vector3Конвертация 2D-вектора в 3D
Vector3ToVector2CasterMonoBinderVector3 -> Vector2Конвертация 3D-вектора в 2D

Generic

Универсальные биндеры для произвольных типов.

КомпонентРежимОписание
DelegateOneWayBinder<T>OneWayУниверсальный OneWay-биндер поверх Action<T>
DelegateOneTimeBinder<T>OneTimeУниверсальный OneTime-биндер поверх Action<T>
DelegateOneWayToSourceBinder<T>OneWayToSourceУниверсальный OneWayToSource-биндер
DelegateTwoWayBinder<T>TwoWayУниверсальный TwoWay-биндер
CasterBinder<TFrom, TTo>OneWay, OneTimeУниверсальный кастер типов

UI-компоненты (прочие)

КомпонентТип данныхРежимыОписание
CanvasSortingOrderBinder / CanvasOverrideSortingBinderint / boolOneWay, OneTime, OneWayToSourceCanvas.sortingOrder, overrideSorting
CanvasScaler{UiScaleMode, ScaleFactor, ReferenceResolution, MatchWidthOrHeight}BinderScaleMode / float / Vector2 / floatOneWay, OneTime, OneWayToSourceСвойства CanvasScaler с ограничениями Unity
ContentSizeFitter{HorizontalFit, VerticalFit}BinderContentSizeFitter.FitModeOneWay, OneTime, OneWayToSourceРежимы подгонки размера
AspectRatioFitter{AspectMode, AspectRatio}BinderAspectMode / floatOneWay, OneTime, OneWayToSourceРежим и соотношение сторон
LayoutElement{PreferredWidth, PreferredHeight, FlexibleWidth, FlexibleHeight}Binderint, float, long, doubleOneWay, OneTime, OneWayToSourceРазмеры элемента; отрицательное = «без предпочтения»
LayoutElementIgnoreLayoutBinderboolOneWay, OneTime, OneWayToSourceignoreLayout
MaskShowMaskGraphicBinderboolOneWay, OneTime, OneWayToSourceMask.showMaskGraphic
RectMask2DPaddingBinderVector3OneWay, OneTime, OneWayToSourceRectMask2D.padding (left, bottom, right)
Shadow{EffectColor, EffectDistance}BinderColor / Vector2OneWay, OneTime, OneWayToSourceЦвет и смещение Shadow/Outline

ParticleSystem

КомпонентТип данныхРежимыОписание
ParticleSystemEmissionEnabledBinderboolOneWay, OneTime, OneWayToSourceВключение эмиссии без остановки системы
ParticleSystemEmissionRateBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceМножитель rateOverTime, не ниже нуля
ParticleSystemStartColorBinderColorOneWay, OneTime, OneWayToSourceЦвет новых частиц
ParticleSystem{Play, Stop, Pause, Clear}MonoBinderAction, IRelayCommandOneWayToSourceОперация воспроизведения как команда для ViewModel

Сцена и рендеринг

КомпонентТип данныхРежимыОписание
Camera{BackgroundColor, FieldOfView, Orthographic, OrthographicSize}BinderColor / float / bool / floatOneWay, OneTime, OneWayToSourceСвойства камеры
Light{Color, Intensity, Range, SpotAngle}BinderColor / floatOneWay, OneTime, OneWayToSourceСвойства источника света
VideoPlayer{Clip, IsLooping, PlaybackSpeed}BinderVideoClip / bool / floatOneWay, OneTime, OneWayToSourceКлип, зацикливание, скорость (0..10)
NavMeshAgent{Speed, IsStopped}Binderfloat / boolOneWay, OneTime, OneWayToSourceАгент вне NavMesh: запись isStopped логируется и пропускается

Глобальное состояние

Биндеры без цели: статические свойства движка.

КомпонентТип данныхРежимыОписание
TimeScaleBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceTime.timeScale, не ниже нуля
TargetFrameRateBinderintOneWay, OneTime, OneWayToSourceApplication.targetFrameRate, не ниже -1
QualityLevelBinderintOneWay, OneTime, OneWayToSourceУровень качества, индекс ограничен списком проекта
ScreenFullScreenBinderboolOneWay, OneTime, OneWayToSourceScreen.fullScreen
AudioListener{Volume, Pause}Binderfloat / boolOneWay, OneTime, OneWayToSourceГлобальная громкость и пауза звука
AudioMixerFloatBinderint, float, long, doubleOneWay, OneTime, OneWayToSourceExposed-параметр AudioMixer
AudioMixerSnapshotBinderint, stringOneWay, OneTimeПереход к снапшоту по индексу или имени

Debug

Утилиты для отладки.

КомпонентТип данныхРежимыОписание
DebugLogBinderлюбойвсеВывод значения в Debug.Log; только в Editor и development-сборках

Localization

Биндеры для интеграции с Unity Localization.

КомпонентТип данныхРежимыОписание
TextLocalizationEntryBinderLocalizedStringOneWay, OneTimeПривязка локализованной строки к TMP_Text
TextLocalizationEntrySwitcherBinderbool -> LocalizedStringOneWay, OneTimeПереключение локализованной строки
LocalizeStringEventEntryBinderstring (ключ записи)OneWay, OneTime, OneWayToSourceПривязка ключа к LocalizeStringEvent
LocalizeStringEventEntrySwitcherBinderbool -> stringOneWay, OneTimeПереключение ключа локализации
LocalizeStringEventVariableBinderчисла, bool, string, ObjectOneWay, OneTimeSmart String-переменная в LocalizeStringEvent; создаётся по типу значения