1.8.0: Added AssetsOnly, SceneObjectsOnly, AssignAssetIfNull, AssignComponentIfNull

- Attributes: Added AssetsOnly, SceneObjectsOnly, AssignAssetIfNull, AssignComponentIfNull
- Attributes: Replaced AssignIfNull with AssignComponentIfNull
This commit is contained in:
Anders Ejlersen 2022-08-27 14:04:17 +02:00
parent 070b82767f
commit eb19150d98
23 changed files with 302 additions and 73 deletions

View file

@ -127,14 +127,20 @@ List of all value attributes:
* `ArrayIndex`
* Clamps value between other fields array size `[0;size[`
* `AssignIfNull`
* `AssetsOnly`
* If value is not an asset it will be set to null
* `AssignAssetIfNull`
* If value is null will assign first asset found using AssetDatabase.FindAssets
* `AssignComponentIfNull`
* If value is null will either use field or custom type to get from self or children
* `LargerThanField`
* If value is greater than other fields value, then set value to other fields value
* `MaxValue`
* If value is greater than max value, then set value to max value
* `MinValue`
* If value is less than min value, then set value to min value
* If value is less than min value, then set value to min value
* `SceneObjectsOnly`
* If value is an asset it will be set to null
* `SmallerThanField`
* If value is less than other fields value, then set value to other fields value