Skip to content

Releases: TylerTemp/SaintsField

3.18.0 Auto Runner Improvement & Bug Fix

14 Jan 14:20
Compare
Choose a tag to compare
  1. Auto Runner now can check the OnValidate method, and will notice you if the method throw an error and/or make a Debug.LogError
  2. Fix auto getters throw an error if the target asset doesn't match some required condition
  3. Auto Runner no longer serialize the result into the file
  4. Fix Auto Runner can not properly display the field because the scene gets close during the process
  5. Auto Runner now will allow you restore your opened scenes after finished
  6. Add an Auto Runner example code so you can easily make a target assets group for validation

Full Changelog: 3.17.1...3.18.0

3.17.1 Auto Getters & AddressableResource

13 Jan 13:03
Compare
Choose a tag to compare
  1. Fix auto getters won't work if multiple targets use the same field name for array/list
  2. IMGUI: AddressableResource is not supported in IMGUI too

Full Changelog: 3.17.0...3.17.1

3.17.0 Improvement

11 Jan 12:46
Compare
Choose a tag to compare
  1. ValidateInput is now supported by Auto Runner.

  2. AboveImage, BelowImage, and AssetPreview now works on Addressable AssetReference type.

  3. UI Toolkit: ValidateInput now only runs when:

    1. the inspecting target is changed
    2. the project is changed
    3. some assets are changed

    Instead of every 100 ms. You can still enable the loop checking in SaintsConfig

  4. Change Auto Runner so you can have multiple config for different purposes.

Full Changelog: 3.16.0...3.17.0

3.16.0 Auto runner for auto getters

10 Jan 16:01
Compare
Choose a tag to compare
  1. Auto runner now supports auto getters!
  2. UI Toolkit: fix auto getters update loop won't get triggered
  3. Fix auto getters can not process SaintsInterface correctly
  4. Improve the performance of auto runner, also give a dialog message if the opening scene is dirty

Full Changelog: 3.15.1...3.16.0

3.15.1 Auto Runner & IMGUI Improvement

09 Jan 09:38
Compare
Choose a tag to compare
  1. Better Auto Runner serialization and drawer
  2. IMGUI: Fix auto getters might fail when refreshing the resources
  3. IMGUI: All kind of buttons now support IEnumerator return type (same as UI Toolkit)
  4. IMGUI: Auto Runner is now supported in IMGUI
  5. IMGUI: Layout with border or foldout, can now indent a bit for array and generic type, to increase the readability
  6. IMGUI: Layout foldout icon is now in gray color instead of white

(This is IMGUI; UI Toolkit already has this feature long ago)

{D034B605-7DE5-4FDA-B9FB-0C059F992533}

Full Changelog: 3.15.0...3.15.1

3.15.0 AddressableResource & Auto Runner

08 Jan 16:07
Compare
Choose a tag to compare
  1. UI Toolkit: Add AddressableResource for AssetReference inline editing
  2. Using Required on addressable's AssetReference will check if the target asset is valid
  3. UI Toolkit: AutoRunner now can specify if you want to skip the hidden fields (hidden by ShowIf, HideIf. Not work for LayoutShowIf, LayoutHideIf)
Unity_SDmMsTNW2a.mp4

Full Changelog: 3.14.1...3.15.0

Note: I know recent updates did not give an implementation for IMGUI. This is because I added features I needed for my project first. I'll add IMGUI support for these features as soon as possible.

3.14.1 Validation Tool

05 Jan 14:30
Compare
Choose a tag to compare
  1. Overhaul the auto getters. This might be related to #102.

    The issue is because, usually you can just SerializedProperty.SerializedObject.ApplyModifiedProperties(). However, if the serialized target is newly created, this behavior will fail, for no good reason. This behavior is not documented in Unity's API.

    To resolve this, UI Toolkit will delay the action a bit later. IMGUI will attempt multiple times.

    This version also makes the auto getters for list not depending on the first element drawer. This means three things:

    1. When working with ListDrawerSettings, search function will not trigger the auto getters re-running.
    2. Draging element in list will not cause any troubles now. But the value will swap back once auto getters auto updated. (auto updating is depended on your configuration)
    3. Better performance, especially for IMGUI.
  2. UI Toolkit: A simple validation tool under Window - Saints - Auto Runner, related to #115

    This tool allows you to check if some target has Required but not filled. You can specify the targets as you want. Currently, it supports scenes, and folder searching.

    This tool is very simple, and will get more update in the future.

    This tool is only available for UI Toolkit at the moment.

  3. Breaking Changes: If you use IWrapProp, you need to change

    // an auto getter
    private string EditorPropertyName => nameof(myField);

    to

    // a static field (private or public, with or without readonly)
    private static readonly string EditorPropertyName = nameof(myField);
Unity_mwFkGmDavX.mp4

Full Changelog: 3.13.1...3.14.1

3.13.1 Bug Fix

02 Jan 14:28
Compare
Choose a tag to compare
  1. UI Toolkit: Fix SaintsEditor created many unused empty VisualElement
  2. UI Toolkit: Fix rich label style might be null when falling back to IMGUI drawer
  3. UI Toolkit: Fix SaintsEditorWindow can not vertically scroll when the window is very high

Full Changelog: 3.13.0...3.13.1

3.13.0 Folder Picker

31 Dec 12:58
Compare
Choose a tag to compare
  1. Add AssetFolder to pick a folder under Assets folder.
  2. Add ResourceFolder to pick a folder under Unity's Resources folders
using SaintsField;

[ResourceFolder] public string resourcesFolder;
[ResourceFolder] public string[] resourcesFolders;
Unity_Lcv3BKJy4w.mp4

Full Changelog: 3.12.1...3.13.0

3.12.1 Bug Fix

30 Dec 12:49
Compare
Choose a tag to compare
  1. Fix RequireType didn't give a correct component when using with interface, #114
  2. Fix ShowInInspector sometimes can not draw a correct value when a nested field is null

Full Changelog: 3.12.0...3.12.1