mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-12-01 10:12:38 +08:00
Compare commits
211 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ec57c2a994 | |||
| 804b48c73e | |||
| 01be18bb28 | |||
| 8addbad494 | |||
| dc5b3805d7 | |||
| bbb5ae0f3e | |||
| ffdeaa7e2f | |||
| f879424b3f | |||
| effdd6d06e | |||
| b39ba58a85 | |||
| 742a5cd8dc | |||
| 1a923dd72c | |||
| c0fec32d50 | |||
| 4f2c9f12b5 | |||
| 264c453bb6 | |||
| 4c6cd11d86 | |||
| 50f6b3c5d2 | |||
| f98929d7e9 | |||
| 179ec89a02 | |||
| ed4716d7ad | |||
| 6af520ed40 | |||
| 9b1af29cd4 | |||
| 65a00b480f | |||
| f508eb32ca | |||
| ecd265e482 | |||
| 58b197e551 | |||
| 8a0e7d6b26 | |||
| 3b52c3a8fc | |||
| 88261e2af0 | |||
| 791d867076 | |||
| 68ebae28e0 | |||
| 5cd48a4633 | |||
| 3ff52e4735 | |||
| a3773e3302 | |||
| 5a9f335bf8 | |||
| 3807e4c69a | |||
| 184967c120 | |||
| 2cca822413 | |||
| 90ab16c3fd | |||
| e1f3abf7a6 | |||
| 770e61bb12 | |||
| a0820bf847 | |||
| 1a21464c0e | |||
| 1143fbb84a | |||
| eff923493a | |||
| 0898d730ad | |||
| 1106f4bf46 | |||
| 2861b1ce61 | |||
| 6eabdc694e | |||
| ae177a800c | |||
| 88bb76d735 | |||
| 37daad01c4 | |||
| 1ce32f7829 | |||
| 726bb100a0 | |||
| f8682f3c98 | |||
| 99669728cc | |||
| 30bf783320 | |||
| d6ee505e7c | |||
| 3917df60af | |||
| 6845678f8f | |||
| 9fbaae7d07 | |||
| 3d1abb979a | |||
| 6af34e2994 | |||
| a6781b9289 | |||
| 7f60a56a9a | |||
| 2dd2e26166 | |||
| 21172f37c2 | |||
| 01bbeedde7 | |||
| c6fa44a0b6 | |||
| 26da24dbc4 | |||
| 6014ab54d0 | |||
| dbdb99b52a | |||
| 3b095bcebd | |||
| 2a900987f5 | |||
| 974e3e8769 | |||
| 909281c66b | |||
| 75ed355e27 | |||
| a0dd316df6 | |||
| 4f66bbfb4d | |||
| 91d5519356 | |||
| 76be0fc860 | |||
| a7e826c4f9 | |||
| 78fbc9a330 | |||
| abc9a4184c | |||
| 3e2c5c1613 | |||
| cb0e8d283b | |||
| def49c34f5 | |||
| a0ac27291b | |||
| 8388d59045 | |||
| 53db1e6254 | |||
| aa4ec8d9c4 | |||
| e965b9e9ab | |||
| 202601c96d | |||
| 396d06f774 | |||
| 8ad57c828e | |||
| 952a94f50b | |||
| 2540b75349 | |||
| 6b8dc5ec33 | |||
| de918718d0 | |||
| 045db9c3b7 | |||
| 6542543422 | |||
| 3db94e00f8 | |||
| 946217069f | |||
| 51cd6d8525 | |||
| 65457e2636 | |||
| 3eb775dcf5 | |||
| 1af89af2c5 | |||
| f0a76424e6 | |||
| f2753e9a3d | |||
| 91e5be706d | |||
| 8513970e6f | |||
| 3f5a7dcd2d | |||
| a748adf1bd | |||
| 40ff828ff0 | |||
| bdbf293c14 | |||
| 8155f94943 | |||
| 0a99bb7765 | |||
| 6b6ff3e1d8 | |||
| 8cbcd765ed | |||
| 6f6a8c95f8 | |||
| fbc697ce85 | |||
| 9f8f9f3e7a | |||
| 8930b563cb | |||
| b72a1c05c6 | |||
| fc09152b93 | |||
| fa9c53a0d0 | |||
| a959fddd34 | |||
| 32558d4481 | |||
| bbb1f965fd | |||
| b778d02131 | |||
| 365c43e21d | |||
| 31b16329bc | |||
| 7529a7c4cd | |||
| c51b5f34bb | |||
| 63de3742ec | |||
| e9b32e14fd | |||
| f4ea151244 | |||
| fd39abf5a7 | |||
| 27a04ca294 | |||
| 8edf1f1128 | |||
| c5dfc3bd35 | |||
| 372519d01f | |||
| 6be2ab7a4f | |||
| e326bb7753 | |||
| 7a765c32d8 | |||
| b57e98b64c | |||
| eadb477bcd | |||
| 33b1177815 | |||
| 792db85b79 | |||
| 889c7ff578 | |||
| 5994f8875e | |||
| b2d70af9c3 | |||
| da535854cc | |||
| bc1578b0ca | |||
| d3779f9f57 | |||
| 213daa85e9 | |||
| 6e4d4ab03d | |||
| 4222d72318 | |||
| 8159c091e8 | |||
| 2b44837bb9 | |||
| 1d849e54cb | |||
| 811f5762e6 | |||
| 2f63adfba0 | |||
| 7cb8325e44 | |||
| eafb9ce365 | |||
| 0ef6027371 | |||
| 92f9611a39 | |||
| edf694313f | |||
| 894c5610d0 | |||
| f7175c0373 | |||
| 238a17d57d | |||
| 97237b3aa8 | |||
| 1be0cd45db | |||
| 9799069633 | |||
| 43bc2e29a8 | |||
| 4a6007a467 | |||
| 08e9ba73d7 | |||
| aeb78ed577 | |||
| 7fc8b1599a | |||
| c9fe854b5d | |||
| 20a6ca0815 | |||
| f2df1889d1 | |||
| bbe57df7a0 | |||
| e9522d3f0e | |||
| d0a3ca6090 | |||
| a66baea1e8 | |||
| 5bee8adc83 | |||
| 9a97c50c54 | |||
| bc20f28ac9 | |||
| d9bf0e12fe | |||
| 2b43bc42d4 | |||
| 23ac3985d2 | |||
| e17b4a0bfd | |||
| 155873669d | |||
| 54825eedc8 | |||
| bdd8e08572 | |||
| 88609f5e36 | |||
| 476a0ba23d | |||
| 9d98c5d3e1 | |||
| bc11095020 | |||
| f74279fb83 | |||
| 3d23cbfcdb | |||
| 5889486f18 | |||
| f39097a73f | |||
| c893cb0ce2 | |||
| 73747478a4 | |||
| 36bd7892fa | |||
| 5d0b03a39c | |||
| 40df577dbc | |||
| f0823aa985 | |||
| 952adb3c26 |
@@ -0,0 +1,6 @@
|
|||||||
|
# This is a comment.
|
||||||
|
# Each line is a file pattern followed by one or more owners.
|
||||||
|
# https://docs.github.com/ja/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
|
||||||
|
|
||||||
|
# Default owners
|
||||||
|
* @mob-sakai
|
||||||
@@ -1,9 +1,37 @@
|
|||||||
---
|
|
||||||
name: Pull Request
|
|
||||||
about: Create a pull request
|
|
||||||
title: ''
|
|
||||||
assignees: mob-sakai
|
|
||||||
|
|
||||||
---
|
# Pull Request Template
|
||||||
|
|
||||||
**NOTE: Create a pull request to merge into `develop` branch**
|
## Description
|
||||||
|
|
||||||
|
- Please include a summary of the change and which issue is fixed.
|
||||||
|
- Please also include relevant motivation and context.
|
||||||
|
- List any dependencies that are required for this change.
|
||||||
|
|
||||||
|
Fixes #{issue_number}
|
||||||
|
|
||||||
|
## Type of change
|
||||||
|
|
||||||
|
Please write the commit message in the format corresponding to the change type.
|
||||||
|
Please see [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) for more information.
|
||||||
|
|
||||||
|
- [ ] Bug fix (non-breaking change which fixes an issue)
|
||||||
|
- [ ] New feature (non-breaking change which adds functionality)
|
||||||
|
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
||||||
|
- [ ] Update documentations
|
||||||
|
- [ ] Others (refactoring, style changes, etc.)
|
||||||
|
|
||||||
|
## Test environment
|
||||||
|
|
||||||
|
- Platform: [e.g. Editor(Windows/Mac), Standalone(Windows/Mac), iOS, Android, WebGL]
|
||||||
|
- Unity version: [e.g. 2022.2.0f1]
|
||||||
|
- Build options: [e.g. IL2CPP, .Net 4.x, URP/HDRP]
|
||||||
|
|
||||||
|
## Checklist
|
||||||
|
|
||||||
|
- [ ] This pull request is for merging into the `develop` branch
|
||||||
|
- [ ] My code follows the style guidelines of this project
|
||||||
|
- [ ] I have performed a self-review of my own code
|
||||||
|
- [ ] I have commented my code, particularly in hard-to-understand areas
|
||||||
|
- [ ] I have made corresponding changes to the documentation
|
||||||
|
- [ ] My changes generate no new warnings
|
||||||
|
- [ ] I have checked my code and corrected any misspellings
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
zip:
|
zip:
|
||||||
description: 'The url to the zip file'
|
description: "The url to the zip file"
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -19,10 +19,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl -L ${{ github.event.inputs.zip }} -o _site.zip
|
curl -L ${{ github.event.inputs.zip }} -o _site.zip
|
||||||
unzip _site.zip -d _site
|
unzip _site.zip -d _site
|
||||||
find _site -name __MACOSX -exec rm -rf {} \;
|
find _site -name __MACOSX | xargs rm -rf
|
||||||
|
|
||||||
- name: 📦 Upload '_site'
|
- name: 📦 Upload '_site'
|
||||||
uses: actions/upload-pages-artifact@v2
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
|
||||||
- name: 🚀 Deploy To GitHub Pages
|
- name: 🚀 Deploy To GitHub Pages
|
||||||
uses: actions/deploy-pages@v2
|
uses: actions/deploy-pages@v4
|
||||||
|
|||||||
@@ -0,0 +1,126 @@
|
|||||||
|
# Required secrets
|
||||||
|
# UNITY_LICENSE: The contents of Unity license file
|
||||||
|
# UNITY_EMAIL: Unity user email to login
|
||||||
|
# UNITY_PASSWORD: Unity user password to login
|
||||||
|
name: 🧪 Test URP
|
||||||
|
run-name: 🧪 Test URP (${{ github.event.pull_request.title || github.ref_name }})
|
||||||
|
|
||||||
|
env:
|
||||||
|
# MINIMUM_VERSION: The minimum version of Unity.
|
||||||
|
MINIMUM_VERSION: 6000.0
|
||||||
|
# EXCLUDE_FILTER: The excluded versions of Unity.
|
||||||
|
EXCLUDE_FILTER: "(2020.2.0|2021.1|2023.2|2023.3)"
|
||||||
|
PROJECT_PATH: UIEffectURP
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
usePeriodVersions:
|
||||||
|
description: "Use the period versions (.0f1, .10f1, 20f1, ...)."
|
||||||
|
required: false
|
||||||
|
default: "true"
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
- "develop-*"
|
||||||
|
tags:
|
||||||
|
- "!*"
|
||||||
|
paths-ignore:
|
||||||
|
- "**.md"
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
paths-ignore:
|
||||||
|
- "**.md"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
setup:
|
||||||
|
name: ⚙️ Setup
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
unityVersions: ${{ steps.setup.outputs.unityVersions }}
|
||||||
|
steps:
|
||||||
|
- name: ⚙️ Find target Unity versions
|
||||||
|
id: setup
|
||||||
|
run: |
|
||||||
|
echo "==== Target Unity Versions ===="
|
||||||
|
LATEST_VERSIONS=`npx unity-changeset list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all`
|
||||||
|
if [ "${{ inputs.usePeriodVersions }}" = "true" ]; then
|
||||||
|
ADDITIONAL_VERSIONS=`npx unity-changeset list --versions --grep '0f' --min ${MINIMUM_VERSION} --json`
|
||||||
|
else
|
||||||
|
ADDITIONAL_VERSIONS=[]
|
||||||
|
fi
|
||||||
|
|
||||||
|
VERSIONS=`echo "[${LATEST_VERSIONS}, ${ADDITIONAL_VERSIONS}]" \
|
||||||
|
| jq -c '[ flatten | sort | unique | .[] | select( test("${{ env.EXCLUDE_FILTER }}") | not ) ]'`
|
||||||
|
echo "unityVersions=${VERSIONS}" | tee $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
test:
|
||||||
|
name: 🧪 Run tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
checks: write
|
||||||
|
contents: read
|
||||||
|
needs: setup
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
max-parallel: 6
|
||||||
|
matrix:
|
||||||
|
unityVersion: ${{ fromJson(needs.setup.outputs.unityVersions) }}
|
||||||
|
steps:
|
||||||
|
- name: 🚚 Checkout ($${{ github.ref }})
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 🚚 Checkout pull request (pull_request_target)
|
||||||
|
if: github.event_name == 'pull_request_target'
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: 🚚 Marge pull request (pull_request_target)
|
||||||
|
if: github.event_name == 'pull_request_target'
|
||||||
|
run: |
|
||||||
|
git config user.name "GitHub Actions"
|
||||||
|
git config user.email "actions@github.com"
|
||||||
|
git merge origin/${{ github.event.pull_request.base.ref }} --no-edit
|
||||||
|
|
||||||
|
- name: 📥 Cache library
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: Library
|
||||||
|
key: Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
Library-${{ matrix.unityVersion }}-
|
||||||
|
Library-
|
||||||
|
|
||||||
|
- name: 🛠️ Build Unity Project (Test)
|
||||||
|
uses: game-ci/unity-builder@v4
|
||||||
|
timeout-minutes: 45
|
||||||
|
with:
|
||||||
|
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
||||||
|
targetPlatform: StandaloneLinux64
|
||||||
|
allowDirtyBuild: true
|
||||||
|
customParameters: -nographics
|
||||||
|
projectPath: ${{ env.PROJECT_PATH }}
|
||||||
|
env:
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
|
||||||
|
# - name: 🧪 Run tests
|
||||||
|
# uses: game-ci/unity-test-runner@v4
|
||||||
|
# timeout-minutes: 45
|
||||||
|
# with:
|
||||||
|
# customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
||||||
|
# # unityVersion: ${{ matrix.unityVersion }}
|
||||||
|
# customParameters: -nographics
|
||||||
|
# checkName: ${{ matrix.unityVersion }} Test Results
|
||||||
|
# githubToken: ${{ github.token }}
|
||||||
|
# env:
|
||||||
|
# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
+48
-23
@@ -3,33 +3,37 @@
|
|||||||
# UNITY_EMAIL: Unity user email to login
|
# UNITY_EMAIL: Unity user email to login
|
||||||
# UNITY_PASSWORD: Unity user password to login
|
# UNITY_PASSWORD: Unity user password to login
|
||||||
name: 🧪 Test
|
name: 🧪 Test
|
||||||
run-name: 🧪 Test (${{ github.ref_name }})
|
run-name: 🧪 Test (${{ github.event.pull_request.title || github.ref_name }})
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# MINIMUM_VERSION: The minimum version of Unity.
|
# MINIMUM_VERSION: The minimum version of Unity.
|
||||||
MINIMUM_VERSION: 2020.3
|
MINIMUM_VERSION: 2020.3
|
||||||
# EXCLUDE_FILTER: The excluded versions of Unity.
|
# EXCLUDE_FILTER: The excluded versions of Unity.
|
||||||
EXCLUDE_FILTER: '(2020.2.0|2023.3)'
|
EXCLUDE_FILTER: "(2020.2.0|2021.1|2023.2|2023.3)"
|
||||||
|
PROJECT_PATH: .
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
usePeriodVersions:
|
usePeriodVersions:
|
||||||
description: 'Use the period versions (.0f1, .10f1, 20f1, ...).'
|
description: "Use the period versions (.0f1, .10f1, 20f1, ...)."
|
||||||
required: false
|
required: false
|
||||||
default: 'true'
|
default: "true"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
- develop-preview
|
- "develop-*"
|
||||||
tags:
|
tags:
|
||||||
- "!*"
|
- "!*"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "*.md"
|
- "**.md"
|
||||||
pull_request:
|
pull_request_target:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
|
- reopened
|
||||||
- synchronize
|
- synchronize
|
||||||
|
paths-ignore:
|
||||||
|
- "**.md"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
@@ -56,10 +60,6 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: 🧪 Run tests
|
name: 🧪 Run tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
||||||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
||||||
permissions:
|
permissions:
|
||||||
checks: write
|
checks: write
|
||||||
contents: read
|
contents: read
|
||||||
@@ -70,14 +70,30 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
unityVersion: ${{ fromJson(needs.setup.outputs.unityVersions) }}
|
unityVersion: ${{ fromJson(needs.setup.outputs.unityVersions) }}
|
||||||
steps:
|
steps:
|
||||||
- name: 🚚 Checkout
|
- name: 🚚 Checkout ($${{ github.ref }})
|
||||||
|
if: github.event_name == 'push'
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 🚚 Checkout pull request (pull_request_target)
|
||||||
|
if: github.event_name == 'pull_request_target'
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: 🚚 Marge pull request (pull_request_target)
|
||||||
|
if: github.event_name == 'pull_request_target'
|
||||||
|
run: |
|
||||||
|
git config user.name "GitHub Actions"
|
||||||
|
git config user.email "actions@github.com"
|
||||||
|
git rebase ${{ github.event.pull_request.base.sha }}
|
||||||
|
git log --oneline -n 10
|
||||||
|
|
||||||
- name: 📥 Cache library
|
- name: 📥 Cache library
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: Library
|
path: Library
|
||||||
key: Library-${{ matrix.unityVersion }}-${{ github.sha }}
|
key: Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
Library-${{ matrix.unityVersion }}-
|
Library-${{ matrix.unityVersion }}-
|
||||||
Library-
|
Library-
|
||||||
@@ -90,14 +106,23 @@ jobs:
|
|||||||
targetPlatform: StandaloneLinux64
|
targetPlatform: StandaloneLinux64
|
||||||
allowDirtyBuild: true
|
allowDirtyBuild: true
|
||||||
customParameters: -nographics
|
customParameters: -nographics
|
||||||
|
projectPath: ${{ env.PROJECT_PATH }}
|
||||||
|
env:
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
|
||||||
# - name: 🧪 Run tests
|
- name: 🧪 Run tests
|
||||||
# uses: game-ci/unity-test-runner@v4
|
uses: game-ci/unity-test-runner@v4
|
||||||
# timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
# with:
|
with:
|
||||||
# customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
||||||
# # unityVersion: ${{ matrix.unityVersion }}
|
# unityVersion: ${{ matrix.unityVersion }}
|
||||||
# customParameters: -nographics
|
customParameters: -nographics
|
||||||
# checkName: ${{ matrix.unityVersion }} Test Results
|
checkName: ${{ matrix.unityVersion }} Test Results
|
||||||
# githubToken: ${{ github.token }}
|
githubToken: ${{ github.token }}
|
||||||
# coverageOptions: "dontClear;generateHtmlReport;generateBadgeReport;pathFilters:+**/Packages/src/**;assemblyFilters:+<packages>,-*.Editor,-*.Test"
|
projectPath: ${{ env.PROJECT_PATH }}
|
||||||
|
env:
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 7778bda1348584d92b6e1c762c341ea6
|
guid: 97c7740b360fd49ea9da163b5b877c8e
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
+219
-171
@@ -38,7 +38,7 @@ RenderSettings:
|
|||||||
m_ReflectionIntensity: 1
|
m_ReflectionIntensity: 1
|
||||||
m_CustomReflection: {fileID: 0}
|
m_CustomReflection: {fileID: 0}
|
||||||
m_Sun: {fileID: 0}
|
m_Sun: {fileID: 0}
|
||||||
m_IndirectSpecularColor: {r: 0.37311918, g: 0.3807396, b: 0.35872662, a: 1}
|
m_IndirectSpecularColor: {r: 0.37311924, g: 0.38073963, b: 0.3587269, a: 1}
|
||||||
m_UseRadianceAmbientProbe: 0
|
m_UseRadianceAmbientProbe: 0
|
||||||
--- !u!157 &3
|
--- !u!157 &3
|
||||||
LightmapSettings:
|
LightmapSettings:
|
||||||
@@ -193,131 +193,11 @@ Transform:
|
|||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &347411368
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 347411369}
|
|
||||||
- component: {fileID: 347411372}
|
|
||||||
- component: {fileID: 347411371}
|
|
||||||
- component: {fileID: 347411373}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: Unity-Chan (Line)
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!224 &347411369
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 347411368}
|
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 1567169362}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
|
||||||
--- !u!114 &347411371
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 347411368}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
m_RaycastTarget: 1
|
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
m_Maskable: 1
|
|
||||||
m_OnCullStateChanged:
|
|
||||||
m_PersistentCalls:
|
|
||||||
m_Calls: []
|
|
||||||
m_Sprite: {fileID: 21300000, guid: 2ee815c0807434e9091770d1c6cdc70b, type: 3}
|
|
||||||
m_Type: 0
|
|
||||||
m_PreserveAspect: 1
|
|
||||||
m_FillCenter: 1
|
|
||||||
m_FillMethod: 4
|
|
||||||
m_FillAmount: 1
|
|
||||||
m_FillClockwise: 1
|
|
||||||
m_FillOrigin: 0
|
|
||||||
m_UseSpriteMesh: 0
|
|
||||||
m_PixelsPerUnitMultiplier: 1
|
|
||||||
--- !u!222 &347411372
|
|
||||||
CanvasRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 347411368}
|
|
||||||
m_CullTransparentMesh: 1
|
|
||||||
--- !u!114 &347411373
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 347411368}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 938fce054c42f40a3969e27a88d9bdd8, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_ToneFilter: 0
|
|
||||||
m_ToneIntensity: 1
|
|
||||||
m_ToneParams: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
m_ColorFilter: 0
|
|
||||||
m_ColorIntensity: 0.344
|
|
||||||
m_Color: {r: 0, g: 1.7098039, b: 4, a: 1}
|
|
||||||
m_SamplingFilter: 6
|
|
||||||
m_SamplingIntensity: 1
|
|
||||||
m_TransitionFilter: 5
|
|
||||||
m_TransitionRate: 0.538
|
|
||||||
m_TransitionReverse: 0
|
|
||||||
m_TransitionTex: {fileID: 2800000, guid: 944c3fa29663042a1bdc35546c2eda58, type: 3}
|
|
||||||
m_TransitionTexScale: {x: 1, y: 1}
|
|
||||||
m_TransitionTexOffset: {x: 0, y: 0}
|
|
||||||
m_TransitionRotation: 135
|
|
||||||
m_TransitionKeepAspectRatio: 1
|
|
||||||
m_TransitionWidth: 0.25
|
|
||||||
m_TransitionSoftness: 0.5
|
|
||||||
m_TransitionColorFilter: 6
|
|
||||||
m_TransitionColor: {r: 1.4980392, g: 0.13333334, b: 0, a: 1}
|
|
||||||
m_TargetMode: 0
|
|
||||||
m_TargetColor: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
m_TargetRange: 1
|
|
||||||
m_TargetSoftness: 0.5
|
|
||||||
m_BlendType: 1
|
|
||||||
m_SrcBlendMode: 1
|
|
||||||
m_DstBlendMode: 10
|
|
||||||
m_ShadowMode: 0
|
|
||||||
m_ShadowDistance: {x: 0, y: 0}
|
|
||||||
m_ShadowIteration: 1
|
|
||||||
m_ShadowFade: 1
|
|
||||||
m_ShadowEffectOnOrigin: 0
|
|
||||||
m_ShadowMirrorScale: 0.5
|
|
||||||
--- !u!1 &973375176
|
--- !u!1 &973375176
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -348,6 +228,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
|
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
m_SendPointerHoverToParent: 1
|
||||||
m_HorizontalAxis: Horizontal
|
m_HorizontalAxis: Horizontal
|
||||||
m_VerticalAxis: Vertical
|
m_VerticalAxis: Vertical
|
||||||
m_SubmitButton: Submit
|
m_SubmitButton: Submit
|
||||||
@@ -380,6 +261,7 @@ Transform:
|
|||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 1
|
m_RootOrder: 1
|
||||||
@@ -474,8 +356,10 @@ RectTransform:
|
|||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 1567169362}
|
- {fileID: 1567169362}
|
||||||
|
- {fileID: 1421004027}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
@@ -513,13 +397,14 @@ RectTransform:
|
|||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1567169362}
|
m_Father: {fileID: 986199155}
|
||||||
m_RootOrder: 1
|
m_RootOrder: 1
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 189, y: -165}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 415.4, y: 111.41}
|
m_SizeDelta: {x: 415.4, y: 111.41}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &1421004028
|
--- !u!114 &1421004028
|
||||||
@@ -535,25 +420,34 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_ToneFilter: 0
|
m_ToneFilter: 0
|
||||||
m_ToneIntensity: 1
|
m_ToneIntensity: 0.875
|
||||||
m_ToneParams: {x: 0, y: 0, z: 0, w: 0}
|
m_ToneParams: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_ColorFilter: 0
|
m_ColorFilter: 0
|
||||||
m_ColorIntensity: 1
|
m_ColorIntensity: 0.213
|
||||||
m_Color: {r: 0.7454045, g: 0.18447503, b: 0.000303527, a: 1}
|
m_Color: {r: 0.16862746, g: 0, b: 0.12038653, a: 1}
|
||||||
|
m_ColorGlow: 0
|
||||||
m_SamplingFilter: 0
|
m_SamplingFilter: 0
|
||||||
m_SamplingIntensity: 0.5
|
m_SamplingIntensity: 0.622
|
||||||
m_TransitionFilter: 7
|
m_SamplingWidth: 1
|
||||||
m_TransitionRate: 0.4
|
m_SamplingScale: 1
|
||||||
|
m_TransitionFilter: 8
|
||||||
|
m_TransitionRate: 0
|
||||||
m_TransitionReverse: 0
|
m_TransitionReverse: 0
|
||||||
m_TransitionTex: {fileID: 2800000, guid: 3a87e98e830a24617ab95c19122cb1e0, type: 3}
|
m_TransitionTex: {fileID: 2800000, guid: 40d1a96251dfd4353a7d28680e56c2e7, type: 3}
|
||||||
m_TransitionTexScale: {x: 1, y: 1}
|
m_TransitionTexScale: {x: 1, y: 1}
|
||||||
m_TransitionTexOffset: {x: 0, y: 0}
|
m_TransitionTexOffset: {x: 0, y: 0}
|
||||||
m_TransitionRotation: 0
|
m_TransitionRotation: 45
|
||||||
m_TransitionKeepAspectRatio: 1
|
m_TransitionKeepAspectRatio: 1
|
||||||
m_TransitionWidth: 1
|
m_TransitionWidth: 0.85
|
||||||
m_TransitionSoftness: 0.595
|
m_TransitionSoftness: 0.475
|
||||||
m_TransitionColorFilter: 6
|
m_TransitionRange:
|
||||||
m_TransitionColor: {r: 6.6415095, g: 1.6342982, b: 0, a: 1}
|
m_Min: 0
|
||||||
|
m_Max: 1
|
||||||
|
m_TransitionColorFilter: 1
|
||||||
|
m_TransitionColor: {r: 0, g: 0, b: 0, a: 0.5019608}
|
||||||
|
m_TransitionColorGlow: 0
|
||||||
|
m_TransitionPatternReverse: 0
|
||||||
|
m_TransitionAutoPlaySpeed: 0.5
|
||||||
m_TargetMode: 0
|
m_TargetMode: 0
|
||||||
m_TargetColor: {r: 1, g: 1, b: 1, a: 1}
|
m_TargetColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_TargetRange: 1
|
m_TargetRange: 1
|
||||||
@@ -561,12 +455,61 @@ MonoBehaviour:
|
|||||||
m_BlendType: 1
|
m_BlendType: 1
|
||||||
m_SrcBlendMode: 1
|
m_SrcBlendMode: 1
|
||||||
m_DstBlendMode: 10
|
m_DstBlendMode: 10
|
||||||
m_ShadowMode: 5
|
m_ShadowMode: 0
|
||||||
m_ShadowDistance: {x: 1, y: 46.28}
|
m_ShadowDistance: {x: 1, y: -1}
|
||||||
m_ShadowIteration: 1
|
m_ShadowIteration: 1
|
||||||
m_ShadowFade: 1
|
m_ShadowFade: 0.9
|
||||||
m_ShadowEffectOnOrigin: 1
|
|
||||||
m_ShadowMirrorScale: 0.5
|
m_ShadowMirrorScale: 0.5
|
||||||
|
m_ShadowBlurIntensity: 1
|
||||||
|
m_ShadowColorFilter: 4
|
||||||
|
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_ShadowColorGlow: 0
|
||||||
|
m_GradationMode: 0
|
||||||
|
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationGradient:
|
||||||
|
serializedVersion: 2
|
||||||
|
key0: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
key1: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
key2: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
ctime0: 0
|
||||||
|
ctime1: 65535
|
||||||
|
ctime2: 0
|
||||||
|
ctime3: 0
|
||||||
|
ctime4: 0
|
||||||
|
ctime5: 0
|
||||||
|
ctime6: 0
|
||||||
|
ctime7: 0
|
||||||
|
atime0: 0
|
||||||
|
atime1: 65535
|
||||||
|
atime2: 0
|
||||||
|
atime3: 0
|
||||||
|
atime4: 0
|
||||||
|
atime5: 0
|
||||||
|
atime6: 0
|
||||||
|
atime7: 0
|
||||||
|
m_Mode: 0
|
||||||
|
m_NumColorKeys: 2
|
||||||
|
m_NumAlphaKeys: 2
|
||||||
|
m_GradationOffset: 0
|
||||||
|
m_GradationScale: 1
|
||||||
|
m_GradationRotation: 0
|
||||||
|
m_AllowToModifyMeshShape: 1
|
||||||
|
m_EdgeMode: 0
|
||||||
|
m_EdgeWidth: 0.5
|
||||||
|
m_EdgeColorFilter: 4
|
||||||
|
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_EdgeShinyRate: 0.5
|
||||||
|
m_EdgeShinyWidth: 0.5
|
||||||
|
m_EdgeShinyAutoPlaySpeed: 1
|
||||||
|
m_PatternArea: 1
|
||||||
--- !u!114 &1421004029
|
--- !u!114 &1421004029
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -587,11 +530,10 @@ MonoBehaviour:
|
|||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_text: UIEffect v5
|
m_text: 4 Color Gradation
|
||||||
m_isRightToLeft: 0
|
m_isRightToLeft: 0
|
||||||
m_fontAsset: {fileID: 11400000, guid: bc6ef582a0efa420683ff976adff235a, type: 2}
|
m_fontAsset: {fileID: 11400000, guid: bc6ef582a0efa420683ff976adff235a, type: 2}
|
||||||
m_sharedMaterial: {fileID: 4843226154402761971, guid: bc6ef582a0efa420683ff976adff235a,
|
m_sharedMaterial: {fileID: 2100000, guid: cab5405a1d5e24ca7858d78bc295cc25, type: 2}
|
||||||
type: 2}
|
|
||||||
m_fontSharedMaterials: []
|
m_fontSharedMaterials: []
|
||||||
m_fontMaterial: {fileID: 0}
|
m_fontMaterial: {fileID: 0}
|
||||||
m_fontMaterials: []
|
m_fontMaterials: []
|
||||||
@@ -615,8 +557,8 @@ MonoBehaviour:
|
|||||||
m_faceColor:
|
m_faceColor:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 4294967295
|
rgba: 4294967295
|
||||||
m_fontSize: 72
|
m_fontSize: 81.94
|
||||||
m_fontSizeBase: 72
|
m_fontSizeBase: 81.94
|
||||||
m_fontWeight: 400
|
m_fontWeight: 400
|
||||||
m_enableAutoSizing: 0
|
m_enableAutoSizing: 0
|
||||||
m_fontSizeMin: 18
|
m_fontSizeMin: 18
|
||||||
@@ -677,8 +619,9 @@ GameObject:
|
|||||||
- component: {fileID: 1567169365}
|
- component: {fileID: 1567169365}
|
||||||
- component: {fileID: 1567169364}
|
- component: {fileID: 1567169364}
|
||||||
- component: {fileID: 1567169363}
|
- component: {fileID: 1567169363}
|
||||||
|
- component: {fileID: 1567169366}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Unity-Chan
|
m_Name: Gradation
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@@ -694,16 +637,15 @@ RectTransform:
|
|||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_ConstrainProportionsScale: 0
|
||||||
- {fileID: 347411369}
|
m_Children: []
|
||||||
- {fileID: 1421004027}
|
|
||||||
m_Father: {fileID: 986199155}
|
m_Father: {fileID: 986199155}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 516, y: 798}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &1567169363
|
--- !u!114 &1567169363
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@@ -717,29 +659,38 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 938fce054c42f40a3969e27a88d9bdd8, type: 3}
|
m_Script: {fileID: 11500000, guid: 938fce054c42f40a3969e27a88d9bdd8, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_ToneFilter: 1
|
m_ToneFilter: 0
|
||||||
m_ToneIntensity: 0.875
|
m_ToneIntensity: 1
|
||||||
m_ToneParams: {x: 0, y: 0, z: 0, w: 0}
|
m_ToneParams: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_ColorFilter: 6
|
m_ColorFilter: 0
|
||||||
m_ColorIntensity: 0.7
|
m_ColorIntensity: 1
|
||||||
m_Color: {r: 0.16862746, g: 0, b: 0.12038653, a: 1}
|
m_Color: {r: 1.4142135, g: 1.4142135, b: 1.4142135, a: 1}
|
||||||
m_SamplingFilter: 1
|
m_ColorGlow: 0
|
||||||
m_SamplingIntensity: 0.622
|
m_SamplingFilter: 0
|
||||||
m_TransitionFilter: 3
|
m_SamplingIntensity: 0.5
|
||||||
m_TransitionRate: 0.408
|
m_SamplingWidth: 1
|
||||||
m_TransitionReverse: 1
|
m_SamplingScale: 1
|
||||||
m_TransitionTex: {fileID: 2800000, guid: 5a9e7b253d8344331a9ef15185eaa629, type: 3}
|
m_TransitionFilter: 0
|
||||||
|
m_TransitionRate: 0.5
|
||||||
|
m_TransitionReverse: 0
|
||||||
|
m_TransitionTex: {fileID: 0}
|
||||||
m_TransitionTexScale: {x: 1, y: 1}
|
m_TransitionTexScale: {x: 1, y: 1}
|
||||||
m_TransitionTexOffset: {x: 0, y: 0}
|
m_TransitionTexOffset: {x: 0, y: 0}
|
||||||
m_TransitionRotation: 0
|
m_TransitionRotation: 0
|
||||||
m_TransitionKeepAspectRatio: 0
|
m_TransitionKeepAspectRatio: 1
|
||||||
m_TransitionWidth: 0.127
|
m_TransitionWidth: 0.2
|
||||||
m_TransitionSoftness: 0.75
|
m_TransitionSoftness: 0.2
|
||||||
|
m_TransitionRange:
|
||||||
|
m_Min: 0
|
||||||
|
m_Max: 1
|
||||||
m_TransitionColorFilter: 6
|
m_TransitionColorFilter: 6
|
||||||
m_TransitionColor: {r: 0, g: 0.5019608, b: 1.0039216, a: 1}
|
m_TransitionColor: {r: 0, g: 0.5, b: 1, a: 1}
|
||||||
|
m_TransitionColorGlow: 0
|
||||||
|
m_TransitionPatternReverse: 0
|
||||||
|
m_TransitionAutoPlaySpeed: 0
|
||||||
m_TargetMode: 0
|
m_TargetMode: 0
|
||||||
m_TargetColor: {r: 1, g: 1, b: 1, a: 1}
|
m_TargetColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_TargetRange: 1
|
m_TargetRange: 0.1
|
||||||
m_TargetSoftness: 0.5
|
m_TargetSoftness: 0.5
|
||||||
m_BlendType: 1
|
m_BlendType: 1
|
||||||
m_SrcBlendMode: 1
|
m_SrcBlendMode: 1
|
||||||
@@ -748,8 +699,57 @@ MonoBehaviour:
|
|||||||
m_ShadowDistance: {x: 1, y: -1}
|
m_ShadowDistance: {x: 1, y: -1}
|
||||||
m_ShadowIteration: 1
|
m_ShadowIteration: 1
|
||||||
m_ShadowFade: 0.9
|
m_ShadowFade: 0.9
|
||||||
m_ShadowEffectOnOrigin: 0
|
|
||||||
m_ShadowMirrorScale: 0.5
|
m_ShadowMirrorScale: 0.5
|
||||||
|
m_ShadowBlurIntensity: 1
|
||||||
|
m_ShadowColorFilter: 4
|
||||||
|
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_ShadowColorGlow: 0
|
||||||
|
m_GradationMode: 11
|
||||||
|
m_GradationColor1: {r: 0.514151, g: 1, b: 0.9449037, a: 1}
|
||||||
|
m_GradationColor2: {r: 0.8476167, g: 1, b: 0.5330188, a: 1}
|
||||||
|
m_GradationColor3: {r: 0.6840595, g: 0.5801887, b: 1, a: 1}
|
||||||
|
m_GradationColor4: {r: 1, g: 0.63528705, b: 0.6273585, a: 1}
|
||||||
|
m_GradationGradient:
|
||||||
|
serializedVersion: 2
|
||||||
|
key0: {r: 1, g: 0, b: 0, a: 1}
|
||||||
|
key1: {r: 1, g: 0.8571428, b: 0, a: 1}
|
||||||
|
key2: {r: 0.2857144, g: 1, b: 0, a: 0}
|
||||||
|
key3: {r: 0, g: 1, b: 0.57142854, a: 0}
|
||||||
|
key4: {r: 0, g: 0.5714288, b: 1, a: 0}
|
||||||
|
key5: {r: 0.28571415, g: 0, b: 1, a: 0}
|
||||||
|
key6: {r: 1, g: 0, b: 0.8571429, a: 0}
|
||||||
|
key7: {r: 1, g: 0, b: 0, a: 0}
|
||||||
|
ctime0: 0
|
||||||
|
ctime1: 9830
|
||||||
|
ctime2: 18724
|
||||||
|
ctime3: 28720
|
||||||
|
ctime4: 38165
|
||||||
|
ctime5: 46838
|
||||||
|
ctime6: 56173
|
||||||
|
ctime7: 65535
|
||||||
|
atime0: 0
|
||||||
|
atime1: 65535
|
||||||
|
atime2: 0
|
||||||
|
atime3: 0
|
||||||
|
atime4: 0
|
||||||
|
atime5: 0
|
||||||
|
atime6: 0
|
||||||
|
atime7: 0
|
||||||
|
m_Mode: 0
|
||||||
|
m_NumColorKeys: 8
|
||||||
|
m_NumAlphaKeys: 2
|
||||||
|
m_GradationOffset: 0
|
||||||
|
m_GradationScale: 1
|
||||||
|
m_GradationRotation: 0
|
||||||
|
m_AllowToModifyMeshShape: 1
|
||||||
|
m_EdgeMode: 0
|
||||||
|
m_EdgeWidth: 0.5
|
||||||
|
m_EdgeColorFilter: 4
|
||||||
|
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_EdgeShinyRate: 0.5
|
||||||
|
m_EdgeShinyWidth: 0.5
|
||||||
|
m_EdgeShinyAutoPlaySpeed: 1
|
||||||
|
m_PatternArea: 1
|
||||||
--- !u!114 &1567169364
|
--- !u!114 &1567169364
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -770,7 +770,7 @@ MonoBehaviour:
|
|||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_Sprite: {fileID: 21300000, guid: e822d767ed19641dcaf9831e1c8a742a, type: 3}
|
m_Sprite: {fileID: 0}
|
||||||
m_Type: 0
|
m_Type: 0
|
||||||
m_PreserveAspect: 1
|
m_PreserveAspect: 1
|
||||||
m_FillCenter: 1
|
m_FillCenter: 1
|
||||||
@@ -779,7 +779,7 @@ MonoBehaviour:
|
|||||||
m_FillClockwise: 1
|
m_FillClockwise: 1
|
||||||
m_FillOrigin: 0
|
m_FillOrigin: 0
|
||||||
m_UseSpriteMesh: 0
|
m_UseSpriteMesh: 0
|
||||||
m_PixelsPerUnitMultiplier: 0.04
|
m_PixelsPerUnitMultiplier: 1
|
||||||
--- !u!222 &1567169365
|
--- !u!222 &1567169365
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -788,3 +788,51 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1567169361}
|
m_GameObject: {fileID: 1567169361}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &1567169366
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1567169361}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 90ac5d06c7b714c29a6b7b3b80e443a7, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_CullingMask: 32
|
||||||
|
m_Direction: 0
|
||||||
|
m_Curve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0
|
||||||
|
value: 0.44500732
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0.21999359
|
||||||
|
tangentMode: 69
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 1
|
||||||
|
value: 0.6650009
|
||||||
|
inSlope: 0.21999359
|
||||||
|
outSlope: 1
|
||||||
|
tangentMode: 69
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
m_Delay: 0
|
||||||
|
m_Duration: 3
|
||||||
|
m_Interval: 0
|
||||||
|
m_PlayOnEnable: 1
|
||||||
|
m_ResetTimeOnEnable: 1
|
||||||
|
m_WrapMode: 3
|
||||||
|
m_UpdateMode: 0
|
||||||
|
m_OnComplete:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 4f70ff0f1e25b4388b9bcb38d619f7bf
|
guid: d9fda278a556f4bd6bf27213319aaf06
|
||||||
PrefabImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
using Coffee.UIEffects;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
[ExecuteAlways]
|
||||||
|
public class GradationTest : MonoBehaviour
|
||||||
|
{
|
||||||
|
[Range(-1, 1)]
|
||||||
|
[SerializeField]
|
||||||
|
protected float m_GradationOffset = 0;
|
||||||
|
|
||||||
|
[Range(0.01f, 10)]
|
||||||
|
[SerializeField]
|
||||||
|
protected float m_GradationScale = 1;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
[Range(0, 360)]
|
||||||
|
private float m_GradationRotation = 0;
|
||||||
|
|
||||||
|
private UIEffect[] _uiEffects;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
_uiEffects = GetComponentsInChildren<UIEffect>(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnValidate()
|
||||||
|
{
|
||||||
|
foreach (var uiEffect in _uiEffects)
|
||||||
|
{
|
||||||
|
uiEffect.gradationOffset = m_GradationOffset;
|
||||||
|
uiEffect.gradationScale = m_GradationScale;
|
||||||
|
uiEffect.gradationRotation = m_GradationRotation;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: f901d0537c0db429e808496022199910
|
guid: 7c663eb03b2fb4828bc3ade4aff915c5
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 3b09ad143990c4c8795c6e93760e132a
|
guid: 54b78b8690dfe482aaaad53253d23214
|
||||||
PrefabImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
@@ -0,0 +1,932 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!29 &1
|
||||||
|
OcclusionCullingSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_OcclusionBakeSettings:
|
||||||
|
smallestOccluder: 5
|
||||||
|
smallestHole: 0.25
|
||||||
|
backfaceThreshold: 100
|
||||||
|
m_SceneGUID: 00000000000000000000000000000000
|
||||||
|
m_OcclusionCullingData: {fileID: 0}
|
||||||
|
--- !u!104 &2
|
||||||
|
RenderSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 9
|
||||||
|
m_Fog: 0
|
||||||
|
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||||
|
m_FogMode: 3
|
||||||
|
m_FogDensity: 0.01
|
||||||
|
m_LinearFogStart: 0
|
||||||
|
m_LinearFogEnd: 300
|
||||||
|
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||||
|
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||||
|
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||||
|
m_AmbientIntensity: 1
|
||||||
|
m_AmbientMode: 0
|
||||||
|
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||||
|
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_HaloStrength: 0.5
|
||||||
|
m_FlareStrength: 1
|
||||||
|
m_FlareFadeSpeed: 3
|
||||||
|
m_HaloTexture: {fileID: 0}
|
||||||
|
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_DefaultReflectionMode: 0
|
||||||
|
m_DefaultReflectionResolution: 128
|
||||||
|
m_ReflectionBounces: 1
|
||||||
|
m_ReflectionIntensity: 1
|
||||||
|
m_CustomReflection: {fileID: 0}
|
||||||
|
m_Sun: {fileID: 0}
|
||||||
|
m_UseRadianceAmbientProbe: 0
|
||||||
|
--- !u!157 &3
|
||||||
|
LightmapSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 12
|
||||||
|
m_GIWorkflowMode: 1
|
||||||
|
m_GISettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_EnvironmentLightingMode: 0
|
||||||
|
m_EnableBakedLightmaps: 1
|
||||||
|
m_EnableRealtimeLightmaps: 0
|
||||||
|
m_LightmapEditorSettings:
|
||||||
|
serializedVersion: 12
|
||||||
|
m_Resolution: 2
|
||||||
|
m_BakeResolution: 40
|
||||||
|
m_AtlasSize: 1024
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 1
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_ExtractAmbientOcclusion: 0
|
||||||
|
m_Padding: 2
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_LightmapsBakeMode: 1
|
||||||
|
m_TextureCompression: 1
|
||||||
|
m_FinalGather: 0
|
||||||
|
m_FinalGatherFiltering: 1
|
||||||
|
m_FinalGatherRayCount: 256
|
||||||
|
m_ReflectionCompression: 2
|
||||||
|
m_MixedBakeMode: 2
|
||||||
|
m_BakeBackend: 1
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 512
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVREnvironmentSampleCount: 256
|
||||||
|
m_PVREnvironmentReferencePointCount: 2048
|
||||||
|
m_PVRFilteringMode: 1
|
||||||
|
m_PVRDenoiserTypeDirect: 1
|
||||||
|
m_PVRDenoiserTypeIndirect: 1
|
||||||
|
m_PVRDenoiserTypeAO: 1
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVREnvironmentMIS: 1
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
|
m_LightingDataAsset: {fileID: 0}
|
||||||
|
m_LightingSettings: {fileID: 0}
|
||||||
|
--- !u!196 &4
|
||||||
|
NavMeshSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_BuildSettings:
|
||||||
|
serializedVersion: 3
|
||||||
|
agentTypeID: 0
|
||||||
|
agentRadius: 0.5
|
||||||
|
agentHeight: 2
|
||||||
|
agentSlope: 45
|
||||||
|
agentClimb: 0.4
|
||||||
|
ledgeDropHeight: 0
|
||||||
|
maxJumpAcrossDistance: 0
|
||||||
|
minRegionArea: 2
|
||||||
|
manualCellSize: 0
|
||||||
|
cellSize: 0.16666667
|
||||||
|
manualTileSize: 0
|
||||||
|
tileSize: 256
|
||||||
|
buildHeightMesh: 0
|
||||||
|
maxJobWorkers: 0
|
||||||
|
preserveTilesOutsideBounds: 0
|
||||||
|
debug:
|
||||||
|
m_Flags: 0
|
||||||
|
m_NavMeshData: {fileID: 0}
|
||||||
|
--- !u!1 &1256184
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1256185}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Root
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1256185
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1256184}
|
||||||
|
m_LocalRotation: {x: 0.1981076, y: 0.13871644, z: 0.13871644, w: 0.9603483}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 1022391538}
|
||||||
|
m_Father: {fileID: 320007022}
|
||||||
|
m_LocalEulerAnglesHint: {x: 20, y: 20, z: 20}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 200, y: 200}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!1 &320007018
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 320007022}
|
||||||
|
- component: {fileID: 320007021}
|
||||||
|
- component: {fileID: 320007020}
|
||||||
|
- component: {fileID: 320007019}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Canvas
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &320007019
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 320007018}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_IgnoreReversedGraphics: 1
|
||||||
|
m_BlockingObjects: 0
|
||||||
|
m_BlockingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
--- !u!114 &320007020
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 320007018}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_UiScaleMode: 1
|
||||||
|
m_ReferencePixelsPerUnit: 100
|
||||||
|
m_ScaleFactor: 1
|
||||||
|
m_ReferenceResolution: {x: 800, y: 600}
|
||||||
|
m_ScreenMatchMode: 0
|
||||||
|
m_MatchWidthOrHeight: 0
|
||||||
|
m_PhysicalUnit: 3
|
||||||
|
m_FallbackScreenDPI: 96
|
||||||
|
m_DefaultSpriteDPI: 96
|
||||||
|
m_DynamicPixelsPerUnit: 1
|
||||||
|
m_PresetInfoIsWorld: 0
|
||||||
|
--- !u!223 &320007021
|
||||||
|
Canvas:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 320007018}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_RenderMode: 0
|
||||||
|
m_Camera: {fileID: 1076137588}
|
||||||
|
m_PlaneDistance: 100
|
||||||
|
m_PixelPerfect: 0
|
||||||
|
m_ReceivesEvents: 1
|
||||||
|
m_OverrideSorting: 0
|
||||||
|
m_OverridePixelPerfect: 0
|
||||||
|
m_SortingBucketNormalizedSize: 0
|
||||||
|
m_VertexColorAlwaysGammaSpace: 0
|
||||||
|
m_AdditionalShaderChannelsFlag: 1
|
||||||
|
m_UpdateRectTransformForStandalone: 0
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_TargetDisplay: 0
|
||||||
|
--- !u!224 &320007022
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 320007018}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 1256185}
|
||||||
|
- {fileID: 2068343013}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
|
m_Pivot: {x: 0, y: 0}
|
||||||
|
--- !u!1 &1022391537
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1022391538}
|
||||||
|
- component: {fileID: 1022391541}
|
||||||
|
- component: {fileID: 1022391540}
|
||||||
|
- component: {fileID: 1022391539}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: UIEffect
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1022391538
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1022391537}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 1256185}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 50, y: 50}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &1022391539
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1022391537}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 938fce054c42f40a3969e27a88d9bdd8, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_ToneFilter: 0
|
||||||
|
m_ToneIntensity: 1
|
||||||
|
m_ToneParams: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_ColorFilter: 0
|
||||||
|
m_ColorIntensity: 1
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_ColorGlow: 0
|
||||||
|
m_SamplingFilter: 0
|
||||||
|
m_SamplingIntensity: 0.5
|
||||||
|
m_SamplingWidth: 1
|
||||||
|
m_SamplingScale: 1
|
||||||
|
m_TransitionFilter: 0
|
||||||
|
m_TransitionRate: 0.5
|
||||||
|
m_TransitionReverse: 0
|
||||||
|
m_TransitionTex: {fileID: 0}
|
||||||
|
m_TransitionTexScale: {x: 1, y: 1}
|
||||||
|
m_TransitionTexOffset: {x: 0, y: 0}
|
||||||
|
m_TransitionTexSpeed: {x: 0, y: 0}
|
||||||
|
m_TransitionRotation: 0
|
||||||
|
m_TransitionKeepAspectRatio: 1
|
||||||
|
m_TransitionWidth: 0.2
|
||||||
|
m_TransitionSoftness: 0.2
|
||||||
|
m_TransitionRange:
|
||||||
|
m_Min: 0
|
||||||
|
m_Max: 1
|
||||||
|
m_TransitionColorFilter: 6
|
||||||
|
m_TransitionColor: {r: 0, g: 0.5, b: 1, a: 1}
|
||||||
|
m_TransitionColorGlow: 0
|
||||||
|
m_TransitionPatternReverse: 0
|
||||||
|
m_TransitionAutoPlaySpeed: 0
|
||||||
|
m_TargetMode: 0
|
||||||
|
m_TargetColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_TargetRange: 0.1
|
||||||
|
m_TargetSoftness: 0.5
|
||||||
|
m_BlendType: 1
|
||||||
|
m_SrcBlendMode: 1
|
||||||
|
m_DstBlendMode: 10
|
||||||
|
m_ShadowMode: 0
|
||||||
|
m_ShadowDistance: {x: 1, y: -1}
|
||||||
|
m_ShadowIteration: 1
|
||||||
|
m_ShadowFade: 0.9
|
||||||
|
m_ShadowMirrorScale: 0.5
|
||||||
|
m_ShadowBlurIntensity: 1
|
||||||
|
m_ShadowColorFilter: 4
|
||||||
|
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_ShadowColorGlow: 0
|
||||||
|
m_GradationMode: 0
|
||||||
|
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationGradient:
|
||||||
|
serializedVersion: 2
|
||||||
|
key0: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
key1: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
key2: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
ctime0: 0
|
||||||
|
ctime1: 65535
|
||||||
|
ctime2: 0
|
||||||
|
ctime3: 0
|
||||||
|
ctime4: 0
|
||||||
|
ctime5: 0
|
||||||
|
ctime6: 0
|
||||||
|
ctime7: 0
|
||||||
|
atime0: 0
|
||||||
|
atime1: 65535
|
||||||
|
atime2: 0
|
||||||
|
atime3: 0
|
||||||
|
atime4: 0
|
||||||
|
atime5: 0
|
||||||
|
atime6: 0
|
||||||
|
atime7: 0
|
||||||
|
m_Mode: 0
|
||||||
|
m_ColorSpace: -1
|
||||||
|
m_NumColorKeys: 2
|
||||||
|
m_NumAlphaKeys: 2
|
||||||
|
m_GradationOffset: 0
|
||||||
|
m_GradationScale: 1
|
||||||
|
m_GradationRotation: 0
|
||||||
|
m_AllowToModifyMeshShape: 1
|
||||||
|
m_EdgeMode: 0
|
||||||
|
m_EdgeWidth: 0.5
|
||||||
|
m_EdgeColorFilter: 4
|
||||||
|
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_EdgeColorGlow: 0
|
||||||
|
m_EdgeShinyRate: 0.5
|
||||||
|
m_EdgeShinyWidth: 0.5
|
||||||
|
m_EdgeShinyAutoPlaySpeed: 1
|
||||||
|
m_PatternArea: 1
|
||||||
|
m_DetailFilter: 4
|
||||||
|
m_DetailIntensity: 1
|
||||||
|
m_DetailThreshold:
|
||||||
|
m_Min: 0
|
||||||
|
m_Max: 1
|
||||||
|
m_DetailTex: {fileID: 2800000, guid: e3e220b3071ad46a58b9051928389c6b, type: 3}
|
||||||
|
m_DetailTexScale: {x: 1, y: 1}
|
||||||
|
m_DetailTexOffset: {x: 0, y: 0}
|
||||||
|
m_DetailTexSpeed: {x: 0, y: 0}
|
||||||
|
m_CustomRoot: {fileID: 1256185}
|
||||||
|
m_Flip: 0
|
||||||
|
--- !u!114 &1022391540
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1022391537}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 0}
|
||||||
|
m_Type: 0
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!222 &1022391541
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1022391537}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1 &1076137586
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1076137589}
|
||||||
|
- component: {fileID: 1076137588}
|
||||||
|
- component: {fileID: 1076137587}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Main Camera
|
||||||
|
m_TagString: MainCamera
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!81 &1076137587
|
||||||
|
AudioListener:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1076137586}
|
||||||
|
m_Enabled: 1
|
||||||
|
--- !u!20 &1076137588
|
||||||
|
Camera:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1076137586}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ClearFlags: 1
|
||||||
|
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||||
|
m_projectionMatrixMode: 1
|
||||||
|
m_GateFitMode: 2
|
||||||
|
m_FOVAxisMode: 0
|
||||||
|
m_Iso: 200
|
||||||
|
m_ShutterSpeed: 0.005
|
||||||
|
m_Aperture: 16
|
||||||
|
m_FocusDistance: 10
|
||||||
|
m_FocalLength: 50
|
||||||
|
m_BladeCount: 5
|
||||||
|
m_Curvature: {x: 2, y: 11}
|
||||||
|
m_BarrelClipping: 0.25
|
||||||
|
m_Anamorphism: 0
|
||||||
|
m_SensorSize: {x: 36, y: 24}
|
||||||
|
m_LensShift: {x: 0, y: 0}
|
||||||
|
m_NormalizedViewPortRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1
|
||||||
|
height: 1
|
||||||
|
near clip plane: 0.01
|
||||||
|
far clip plane: 3000
|
||||||
|
field of view: 60
|
||||||
|
orthographic: 0
|
||||||
|
orthographic size: 5
|
||||||
|
m_Depth: -1
|
||||||
|
m_CullingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
m_RenderingPath: -1
|
||||||
|
m_TargetTexture: {fileID: 0}
|
||||||
|
m_TargetDisplay: 0
|
||||||
|
m_TargetEye: 3
|
||||||
|
m_HDR: 1
|
||||||
|
m_AllowMSAA: 1
|
||||||
|
m_AllowDynamicResolution: 0
|
||||||
|
m_ForceIntoRT: 0
|
||||||
|
m_OcclusionCulling: 1
|
||||||
|
m_StereoConvergence: 10
|
||||||
|
m_StereoSeparation: 0.022
|
||||||
|
--- !u!4 &1076137589
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1076137586}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 1000, y: 1000, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &1303535690
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1303535693}
|
||||||
|
- component: {fileID: 1303535692}
|
||||||
|
- component: {fileID: 1303535691}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EventSystem
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &1303535691
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1303535690}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_SendPointerHoverToParent: 1
|
||||||
|
m_HorizontalAxis: Horizontal
|
||||||
|
m_VerticalAxis: Vertical
|
||||||
|
m_SubmitButton: Submit
|
||||||
|
m_CancelButton: Cancel
|
||||||
|
m_InputActionsPerSecond: 10
|
||||||
|
m_RepeatDelay: 0.5
|
||||||
|
m_ForceModuleActive: 0
|
||||||
|
--- !u!114 &1303535692
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1303535690}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_FirstSelected: {fileID: 0}
|
||||||
|
m_sendNavigationEvents: 1
|
||||||
|
m_DragThreshold: 10
|
||||||
|
--- !u!4 &1303535693
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1303535690}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &1740148341
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1740148343}
|
||||||
|
- component: {fileID: 1740148342}
|
||||||
|
- component: {fileID: 1740148344}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Directional Light
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!108 &1740148342
|
||||||
|
Light:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1740148341}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 10
|
||||||
|
m_Type: 1
|
||||||
|
m_Shape: 0
|
||||||
|
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
|
||||||
|
m_Intensity: 1
|
||||||
|
m_Range: 10
|
||||||
|
m_SpotAngle: 30
|
||||||
|
m_InnerSpotAngle: 21.80208
|
||||||
|
m_CookieSize: 10
|
||||||
|
m_Shadows:
|
||||||
|
m_Type: 2
|
||||||
|
m_Resolution: -1
|
||||||
|
m_CustomResolution: -1
|
||||||
|
m_Strength: 1
|
||||||
|
m_Bias: 0.05
|
||||||
|
m_NormalBias: 0.4
|
||||||
|
m_NearPlane: 0.2
|
||||||
|
m_CullingMatrixOverride:
|
||||||
|
e00: 1
|
||||||
|
e01: 0
|
||||||
|
e02: 0
|
||||||
|
e03: 0
|
||||||
|
e10: 0
|
||||||
|
e11: 1
|
||||||
|
e12: 0
|
||||||
|
e13: 0
|
||||||
|
e20: 0
|
||||||
|
e21: 0
|
||||||
|
e22: 1
|
||||||
|
e23: 0
|
||||||
|
e30: 0
|
||||||
|
e31: 0
|
||||||
|
e32: 0
|
||||||
|
e33: 1
|
||||||
|
m_UseCullingMatrixOverride: 0
|
||||||
|
m_Cookie: {fileID: 0}
|
||||||
|
m_DrawHalo: 0
|
||||||
|
m_Flare: {fileID: 0}
|
||||||
|
m_RenderMode: 0
|
||||||
|
m_CullingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_Lightmapping: 4
|
||||||
|
m_LightShadowCasterMode: 0
|
||||||
|
m_AreaSize: {x: 1, y: 1}
|
||||||
|
m_BounceIntensity: 1
|
||||||
|
m_ColorTemperature: 6570
|
||||||
|
m_UseColorTemperature: 0
|
||||||
|
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_UseBoundingSphereOverride: 0
|
||||||
|
m_UseViewFrustumForShadowCasterCull: 1
|
||||||
|
m_ShadowRadius: 0
|
||||||
|
m_ShadowAngle: 0
|
||||||
|
--- !u!4 &1740148343
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1740148341}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||||
|
--- !u!114 &1740148344
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1740148341}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Version: 1
|
||||||
|
m_UsePipelineSettings: 1
|
||||||
|
m_AdditionalLightsShadowResolutionTier: 2
|
||||||
|
m_LightLayerMask: 1
|
||||||
|
m_CustomShadowLayers: 0
|
||||||
|
m_ShadowLayerMask: 1
|
||||||
|
m_LightCookieSize: {x: 1, y: 1}
|
||||||
|
m_LightCookieOffset: {x: 0, y: 0}
|
||||||
|
--- !u!1 &2068343012
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2068343013}
|
||||||
|
- component: {fileID: 2068343016}
|
||||||
|
- component: {fileID: 2068343015}
|
||||||
|
- component: {fileID: 2068343014}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: UIEffect
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &2068343013
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2068343012}
|
||||||
|
m_LocalRotation: {x: 0.1981076, y: 0.13871644, z: 0.13871644, w: 0.9603483}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 320007022}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &2068343014
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2068343012}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 938fce054c42f40a3969e27a88d9bdd8, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_ToneFilter: 0
|
||||||
|
m_ToneIntensity: 1
|
||||||
|
m_ToneParams: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_ColorFilter: 0
|
||||||
|
m_ColorIntensity: 1
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_ColorGlow: 0
|
||||||
|
m_SamplingFilter: 0
|
||||||
|
m_SamplingIntensity: 0.5
|
||||||
|
m_SamplingWidth: 1
|
||||||
|
m_SamplingScale: 1
|
||||||
|
m_TransitionFilter: 0
|
||||||
|
m_TransitionRate: 0.5
|
||||||
|
m_TransitionReverse: 0
|
||||||
|
m_TransitionTex: {fileID: 0}
|
||||||
|
m_TransitionTexScale: {x: 1, y: 1}
|
||||||
|
m_TransitionTexOffset: {x: 0, y: 0}
|
||||||
|
m_TransitionTexSpeed: {x: 0, y: 0}
|
||||||
|
m_TransitionRotation: 0
|
||||||
|
m_TransitionKeepAspectRatio: 1
|
||||||
|
m_TransitionWidth: 0.2
|
||||||
|
m_TransitionSoftness: 0.2
|
||||||
|
m_TransitionRange:
|
||||||
|
m_Min: 0
|
||||||
|
m_Max: 1
|
||||||
|
m_TransitionColorFilter: 6
|
||||||
|
m_TransitionColor: {r: 0, g: 0.5, b: 1, a: 1}
|
||||||
|
m_TransitionColorGlow: 0
|
||||||
|
m_TransitionPatternReverse: 0
|
||||||
|
m_TransitionAutoPlaySpeed: 0
|
||||||
|
m_TargetMode: 0
|
||||||
|
m_TargetColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_TargetRange: 0.1
|
||||||
|
m_TargetSoftness: 0.5
|
||||||
|
m_BlendType: 1
|
||||||
|
m_SrcBlendMode: 1
|
||||||
|
m_DstBlendMode: 10
|
||||||
|
m_ShadowMode: 0
|
||||||
|
m_ShadowDistance: {x: 1, y: -1}
|
||||||
|
m_ShadowIteration: 1
|
||||||
|
m_ShadowFade: 0.9
|
||||||
|
m_ShadowMirrorScale: 0.5
|
||||||
|
m_ShadowBlurIntensity: 1
|
||||||
|
m_ShadowColorFilter: 4
|
||||||
|
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_ShadowColorGlow: 0
|
||||||
|
m_GradationMode: 0
|
||||||
|
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationColor2: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationColor4: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_GradationGradient:
|
||||||
|
serializedVersion: 2
|
||||||
|
key0: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
key1: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
key2: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
ctime0: 0
|
||||||
|
ctime1: 65535
|
||||||
|
ctime2: 0
|
||||||
|
ctime3: 0
|
||||||
|
ctime4: 0
|
||||||
|
ctime5: 0
|
||||||
|
ctime6: 0
|
||||||
|
ctime7: 0
|
||||||
|
atime0: 0
|
||||||
|
atime1: 65535
|
||||||
|
atime2: 0
|
||||||
|
atime3: 0
|
||||||
|
atime4: 0
|
||||||
|
atime5: 0
|
||||||
|
atime6: 0
|
||||||
|
atime7: 0
|
||||||
|
m_Mode: 0
|
||||||
|
m_ColorSpace: -1
|
||||||
|
m_NumColorKeys: 2
|
||||||
|
m_NumAlphaKeys: 2
|
||||||
|
m_GradationOffset: 0
|
||||||
|
m_GradationScale: 1
|
||||||
|
m_GradationRotation: 0
|
||||||
|
m_AllowToModifyMeshShape: 1
|
||||||
|
m_EdgeMode: 0
|
||||||
|
m_EdgeWidth: 0.5
|
||||||
|
m_EdgeColorFilter: 4
|
||||||
|
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_EdgeColorGlow: 0
|
||||||
|
m_EdgeShinyRate: 0.5
|
||||||
|
m_EdgeShinyWidth: 0.5
|
||||||
|
m_EdgeShinyAutoPlaySpeed: 1
|
||||||
|
m_PatternArea: 1
|
||||||
|
m_DetailFilter: 4
|
||||||
|
m_DetailIntensity: 1
|
||||||
|
m_DetailThreshold:
|
||||||
|
m_Min: 0
|
||||||
|
m_Max: 1
|
||||||
|
m_DetailTex: {fileID: 2800000, guid: e3e220b3071ad46a58b9051928389c6b, type: 3}
|
||||||
|
m_DetailTexScale: {x: 1, y: 1}
|
||||||
|
m_DetailTexOffset: {x: 0, y: 0}
|
||||||
|
m_DetailTexSpeed: {x: 0, y: 0}
|
||||||
|
m_CustomRoot: {fileID: 0}
|
||||||
|
m_Flip: 0
|
||||||
|
--- !u!114 &2068343015
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2068343012}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 0}
|
||||||
|
m_Type: 0
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!222 &2068343016
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2068343012}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1660057539 &9223372036854775807
|
||||||
|
SceneRoots:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_Roots:
|
||||||
|
- {fileID: 320007022}
|
||||||
|
- {fileID: 1740148343}
|
||||||
|
- {fileID: 1303535693}
|
||||||
|
- {fileID: 1076137589}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 36defbd49737346888941c302d8fd96e
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
@@ -0,0 +1,123 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e3e220b3071ad46a58b9051928389c6b
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMasterTextureLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: WebGL
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
spritePackingTag:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
pSDShowRemoveMatteOption: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: b679dead51ca64e93a87fbd98e1dbaf5
|
guid: 7b8df35684c964c1da889d4128ed94ed
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &-7987516966893236458
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 3
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 0b2db86121404754db890f4c8dfe81b2, type: 3}
|
||||||
|
m_Name: Bloom
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
active: 1
|
||||||
|
skipIterations:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 1
|
||||||
|
threshold:
|
||||||
|
m_OverrideState: 1
|
||||||
|
m_Value: 0.99
|
||||||
|
intensity:
|
||||||
|
m_OverrideState: 1
|
||||||
|
m_Value: 2
|
||||||
|
scatter:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 0.7
|
||||||
|
clamp:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 65472
|
||||||
|
tint:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
highQualityFiltering:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 0
|
||||||
|
downscale:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 0
|
||||||
|
maxIterations:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 6
|
||||||
|
dirtTexture:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: {fileID: 0}
|
||||||
|
dimension: 1
|
||||||
|
dirtIntensity:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 0
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3}
|
||||||
|
m_Name: MultiColorDissolve
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
components:
|
||||||
|
- {fileID: -7987516966893236458}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 57ac8962e3fd34b1ab7016e803973b51
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
using Coffee.UIEffects;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
[ExecuteAlways]
|
||||||
|
public class MultiColorDissolve : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private UIEffect m_Base;
|
||||||
|
|
||||||
|
[Header("Dissolve 1")]
|
||||||
|
[SerializeField] private UIEffect m_Dissolve1;
|
||||||
|
|
||||||
|
[ColorUsage(true, true)]
|
||||||
|
[SerializeField]
|
||||||
|
private Color m_DissolveColor1 = Color.red;
|
||||||
|
|
||||||
|
[Range(0, 0.1f)]
|
||||||
|
[SerializeField]
|
||||||
|
private float m_Delay1 = 0.05f;
|
||||||
|
|
||||||
|
[Range(0, 0.2f)]
|
||||||
|
[SerializeField]
|
||||||
|
private float m_Width1 = 0.1f;
|
||||||
|
|
||||||
|
[Range(0, 1f)]
|
||||||
|
[SerializeField]
|
||||||
|
private float m_Softness1 = 0.5f;
|
||||||
|
|
||||||
|
[Header("Dissolve 2")]
|
||||||
|
[SerializeField]
|
||||||
|
private UIEffect m_Dissolve2;
|
||||||
|
|
||||||
|
[ColorUsage(true, true)]
|
||||||
|
[SerializeField]
|
||||||
|
private Color m_DissolveColor2 = Color.magenta;
|
||||||
|
|
||||||
|
[Range(0, 0.1f)]
|
||||||
|
[SerializeField]
|
||||||
|
private float m_Delay2 = 0.1f;
|
||||||
|
|
||||||
|
[Range(0, 0.2f)]
|
||||||
|
[SerializeField]
|
||||||
|
private float m_Width2 = 0.1f;
|
||||||
|
|
||||||
|
[Range(0, 1f)]
|
||||||
|
[SerializeField]
|
||||||
|
private float m_Softness2 = 0.5f;
|
||||||
|
|
||||||
|
[Space]
|
||||||
|
[Range(0, 1)] [SerializeField] private float m_Rate;
|
||||||
|
|
||||||
|
public void SetRate(float rate)
|
||||||
|
{
|
||||||
|
m_Rate = rate;
|
||||||
|
if (m_Base)
|
||||||
|
{
|
||||||
|
m_Base.transitionRate = rate;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (m_Dissolve1)
|
||||||
|
{
|
||||||
|
m_Dissolve1.transitionRate = rate - m_Delay1;
|
||||||
|
m_Dissolve1.transitionColor = m_DissolveColor1;
|
||||||
|
m_Dissolve1.transitionWidth = m_Width1;
|
||||||
|
m_Dissolve1.transitionSoftness = m_Softness1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (m_Dissolve2)
|
||||||
|
{
|
||||||
|
m_Dissolve2.transitionRate = rate - m_Delay2 * 2;
|
||||||
|
m_Dissolve2.transitionColor = m_DissolveColor2;
|
||||||
|
m_Dissolve2.transitionWidth = m_Width2;
|
||||||
|
m_Dissolve2.transitionSoftness = m_Softness2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnValidate()
|
||||||
|
{
|
||||||
|
SetRate(m_Rate);
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 09ae172f2711c4f2cafc2417dac00d34
|
guid: 1cb0fa86a0fba445092aa81b4974b7cd
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ba87f0cfb8c4b4eaea328308391c06e5
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 690 KiB |
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d2a4c1061dec2448abe5ae1b412140af
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2d11887dcfdae4a4faf731ca7777dd28
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,108 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: CarterOne-Regular SDF - Mobile
|
||||||
|
m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3}
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _Cube:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _FaceTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: -5656930091445551790, guid: bc6ef582a0efa420683ff976adff235a,
|
||||||
|
type: 2}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OutlineTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _Ambient: 0.5
|
||||||
|
- _Bevel: 0.5
|
||||||
|
- _BevelClamp: 0
|
||||||
|
- _BevelOffset: 0
|
||||||
|
- _BevelRoundness: 0
|
||||||
|
- _BevelWidth: 0
|
||||||
|
- _BumpFace: 0
|
||||||
|
- _BumpOutline: 0
|
||||||
|
- _ColorMask: 15
|
||||||
|
- _CullMode: 0
|
||||||
|
- _Diffuse: 0.5
|
||||||
|
- _FaceDilate: 0
|
||||||
|
- _FaceUVSpeedX: 0
|
||||||
|
- _FaceUVSpeedY: 0
|
||||||
|
- _GlowInner: 0.05
|
||||||
|
- _GlowOffset: 0
|
||||||
|
- _GlowOuter: 0.05
|
||||||
|
- _GlowPower: 0.75
|
||||||
|
- _GradientScale: 10
|
||||||
|
- _LightAngle: 3.1416
|
||||||
|
- _MaskSoftnessX: 0
|
||||||
|
- _MaskSoftnessY: 0
|
||||||
|
- _OutlineSoftness: 0
|
||||||
|
- _OutlineUVSpeedX: 0
|
||||||
|
- _OutlineUVSpeedY: 0
|
||||||
|
- _OutlineWidth: 0
|
||||||
|
- _PerspectiveFilter: 0.875
|
||||||
|
- _Reflectivity: 10
|
||||||
|
- _ScaleRatioA: 0.9
|
||||||
|
- _ScaleRatioB: 0.73125
|
||||||
|
- _ScaleRatioC: 0.73125
|
||||||
|
- _ScaleX: 1
|
||||||
|
- _ScaleY: 1
|
||||||
|
- _ShaderFlags: 0
|
||||||
|
- _Sharpness: 0
|
||||||
|
- _SpecularPower: 2
|
||||||
|
- _Stencil: 0
|
||||||
|
- _StencilComp: 8
|
||||||
|
- _StencilOp: 0
|
||||||
|
- _StencilReadMask: 255
|
||||||
|
- _StencilWriteMask: 255
|
||||||
|
- _TextureHeight: 1024
|
||||||
|
- _TextureWidth: 1024
|
||||||
|
- _UnderlayDilate: 0
|
||||||
|
- _UnderlayOffsetX: 0
|
||||||
|
- _UnderlayOffsetY: 0
|
||||||
|
- _UnderlaySoftness: 0
|
||||||
|
- _VertexOffsetX: 0
|
||||||
|
- _VertexOffsetY: 0
|
||||||
|
- _WeightBold: 0.75
|
||||||
|
- _WeightNormal: 0
|
||||||
|
m_Colors:
|
||||||
|
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||||
|
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
|
||||||
|
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
|
||||||
|
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: ba0cc6c34514c480c878314286014b4a
|
guid: 1f0416a8fecb64e86b4d6c301e638f2d
|
||||||
NativeFormatImporter:
|
NativeFormatImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
mainObjectFileID: 4900000
|
mainObjectFileID: 2100000
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: CarterOne-Regular SDF - Outline
|
||||||
|
m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3}
|
||||||
|
m_ValidKeywords:
|
||||||
|
- OUTLINE_ON
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _Cube:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _FaceTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: -5656930091445551790, guid: bc6ef582a0efa420683ff976adff235a,
|
||||||
|
type: 2}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OutlineTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _Ambient: 0.5
|
||||||
|
- _Bevel: 0.5
|
||||||
|
- _BevelClamp: 0
|
||||||
|
- _BevelOffset: 0
|
||||||
|
- _BevelRoundness: 0
|
||||||
|
- _BevelWidth: 0
|
||||||
|
- _BumpFace: 0
|
||||||
|
- _BumpOutline: 0
|
||||||
|
- _ColorMask: 15
|
||||||
|
- _CullMode: 0
|
||||||
|
- _Diffuse: 0.5
|
||||||
|
- _FaceDilate: 0
|
||||||
|
- _FaceUVSpeedX: 0
|
||||||
|
- _FaceUVSpeedY: 0
|
||||||
|
- _GlowInner: 0.05
|
||||||
|
- _GlowOffset: 0
|
||||||
|
- _GlowOuter: 0.05
|
||||||
|
- _GlowPower: 0.75
|
||||||
|
- _GradientScale: 10
|
||||||
|
- _LightAngle: 3.1416
|
||||||
|
- _MaskSoftnessX: 0
|
||||||
|
- _MaskSoftnessY: 0
|
||||||
|
- _OutlineSoftness: 0
|
||||||
|
- _OutlineUVSpeedX: 0
|
||||||
|
- _OutlineUVSpeedY: 0
|
||||||
|
- _OutlineWidth: 0.25
|
||||||
|
- _PerspectiveFilter: 0.875
|
||||||
|
- _Reflectivity: 10
|
||||||
|
- _ScaleRatioA: 0.9
|
||||||
|
- _ScaleRatioB: 0.73125
|
||||||
|
- _ScaleRatioC: 0.365625
|
||||||
|
- _ScaleX: 1
|
||||||
|
- _ScaleY: 1
|
||||||
|
- _ShaderFlags: 0
|
||||||
|
- _Sharpness: 0
|
||||||
|
- _SpecularPower: 2
|
||||||
|
- _Stencil: 0
|
||||||
|
- _StencilComp: 8
|
||||||
|
- _StencilOp: 0
|
||||||
|
- _StencilReadMask: 255
|
||||||
|
- _StencilWriteMask: 255
|
||||||
|
- _TextureHeight: 1024
|
||||||
|
- _TextureWidth: 1024
|
||||||
|
- _UnderlayDilate: 1
|
||||||
|
- _UnderlayOffsetX: 1
|
||||||
|
- _UnderlayOffsetY: -1
|
||||||
|
- _UnderlaySoftness: 0
|
||||||
|
- _VertexOffsetX: 0
|
||||||
|
- _VertexOffsetY: 0
|
||||||
|
- _WeightBold: 0.75
|
||||||
|
- _WeightNormal: 0
|
||||||
|
m_Colors:
|
||||||
|
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||||
|
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
|
||||||
|
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
|
||||||
|
- _OutlineColor: {r: 0, g: 0, b: 0, a: 0.5019608}
|
||||||
|
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cab5405a1d5e24ca7858d78bc295cc25
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: CarterOne-Regular SDF Overlay Mobile
|
||||||
|
m_Shader: {fileID: 4800000, guid: a02a7d8c237544f1962732b55a9aebf1, type: 3}
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _Cube:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _FaceTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: -5656930091445551790, guid: bc6ef582a0efa420683ff976adff235a,
|
||||||
|
type: 2}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MaskTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OutlineTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _Ambient: 0.5
|
||||||
|
- _Bevel: 0.5
|
||||||
|
- _BevelClamp: 0
|
||||||
|
- _BevelOffset: 0
|
||||||
|
- _BevelRoundness: 0
|
||||||
|
- _BevelWidth: 0
|
||||||
|
- _BumpFace: 0
|
||||||
|
- _BumpOutline: 0
|
||||||
|
- _ColorMask: 15
|
||||||
|
- _CullMode: 0
|
||||||
|
- _Diffuse: 0.5
|
||||||
|
- _FaceDilate: 0
|
||||||
|
- _FaceUVSpeedX: 0
|
||||||
|
- _FaceUVSpeedY: 0
|
||||||
|
- _GlowInner: 0.05
|
||||||
|
- _GlowOffset: 0
|
||||||
|
- _GlowOuter: 0.05
|
||||||
|
- _GlowPower: 0.75
|
||||||
|
- _GradientScale: 10
|
||||||
|
- _LightAngle: 3.1416
|
||||||
|
- _MaskEdgeSoftness: 0.01
|
||||||
|
- _MaskInverse: 0
|
||||||
|
- _MaskSoftnessX: 0
|
||||||
|
- _MaskSoftnessY: 0
|
||||||
|
- _MaskWipeControl: 0.5
|
||||||
|
- _OutlineSoftness: 0
|
||||||
|
- _OutlineUVSpeedX: 0
|
||||||
|
- _OutlineUVSpeedY: 0
|
||||||
|
- _OutlineWidth: 0
|
||||||
|
- _PerspectiveFilter: 0.875
|
||||||
|
- _Reflectivity: 10
|
||||||
|
- _ScaleRatioA: 0.9
|
||||||
|
- _ScaleRatioB: 0.73125
|
||||||
|
- _ScaleRatioC: 0.73125
|
||||||
|
- _ScaleX: 1
|
||||||
|
- _ScaleY: 1
|
||||||
|
- _ShaderFlags: 0
|
||||||
|
- _Sharpness: 0
|
||||||
|
- _SpecularPower: 2
|
||||||
|
- _Stencil: 0
|
||||||
|
- _StencilComp: 8
|
||||||
|
- _StencilOp: 0
|
||||||
|
- _StencilReadMask: 255
|
||||||
|
- _StencilWriteMask: 255
|
||||||
|
- _TextureHeight: 1024
|
||||||
|
- _TextureWidth: 1024
|
||||||
|
- _UnderlayDilate: 0
|
||||||
|
- _UnderlayOffsetX: 0
|
||||||
|
- _UnderlayOffsetY: 0
|
||||||
|
- _UnderlaySoftness: 0
|
||||||
|
- _VertexOffsetX: 0
|
||||||
|
- _VertexOffsetY: 0
|
||||||
|
- _WeightBold: 0.75
|
||||||
|
- _WeightNormal: 0
|
||||||
|
m_Colors:
|
||||||
|
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||||
|
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
|
||||||
|
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
|
||||||
|
- _MaskEdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5a5cc54c1f12241ff8d794ef8ca1c16e
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,108 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: CarterOne-Regular SDF Overlay
|
||||||
|
m_Shader: {fileID: 4800000, guid: dd89cf5b9246416f84610a006f916af7, type: 3}
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _Cube:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _FaceTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: -5656930091445551790, guid: bc6ef582a0efa420683ff976adff235a,
|
||||||
|
type: 2}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OutlineTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _Ambient: 0.5
|
||||||
|
- _Bevel: 0.5
|
||||||
|
- _BevelClamp: 0
|
||||||
|
- _BevelOffset: 0
|
||||||
|
- _BevelRoundness: 0
|
||||||
|
- _BevelWidth: 0
|
||||||
|
- _BumpFace: 0
|
||||||
|
- _BumpOutline: 0
|
||||||
|
- _ColorMask: 15
|
||||||
|
- _CullMode: 0
|
||||||
|
- _Diffuse: 0.5
|
||||||
|
- _FaceDilate: 0
|
||||||
|
- _FaceUVSpeedX: 0
|
||||||
|
- _FaceUVSpeedY: 0
|
||||||
|
- _GlowInner: 0.05
|
||||||
|
- _GlowOffset: 0
|
||||||
|
- _GlowOuter: 0.05
|
||||||
|
- _GlowPower: 0.75
|
||||||
|
- _GradientScale: 10
|
||||||
|
- _LightAngle: 3.1416
|
||||||
|
- _MaskSoftnessX: 0
|
||||||
|
- _MaskSoftnessY: 0
|
||||||
|
- _OutlineSoftness: 0
|
||||||
|
- _OutlineUVSpeedX: 0
|
||||||
|
- _OutlineUVSpeedY: 0
|
||||||
|
- _OutlineWidth: 0
|
||||||
|
- _PerspectiveFilter: 0.875
|
||||||
|
- _Reflectivity: 10
|
||||||
|
- _ScaleRatioA: 0.9
|
||||||
|
- _ScaleRatioB: 0.73125
|
||||||
|
- _ScaleRatioC: 0.73125
|
||||||
|
- _ScaleX: 1
|
||||||
|
- _ScaleY: 1
|
||||||
|
- _ShaderFlags: 0
|
||||||
|
- _Sharpness: 0
|
||||||
|
- _SpecularPower: 2
|
||||||
|
- _Stencil: 0
|
||||||
|
- _StencilComp: 8
|
||||||
|
- _StencilOp: 0
|
||||||
|
- _StencilReadMask: 255
|
||||||
|
- _StencilWriteMask: 255
|
||||||
|
- _TextureHeight: 1024
|
||||||
|
- _TextureWidth: 1024
|
||||||
|
- _UnderlayDilate: 0
|
||||||
|
- _UnderlayOffsetX: 0
|
||||||
|
- _UnderlayOffsetY: 0
|
||||||
|
- _UnderlaySoftness: 0
|
||||||
|
- _VertexOffsetX: 0
|
||||||
|
- _VertexOffsetY: 0
|
||||||
|
- _WeightBold: 0.75
|
||||||
|
- _WeightNormal: 0
|
||||||
|
m_Colors:
|
||||||
|
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||||
|
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
|
||||||
|
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
|
||||||
|
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cb2000f2042fb4545b8af94316e74dbc
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e4e892194038942ed9ff756a9f5b0dba
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: CarterOne-Regular SSD Mobile
|
||||||
|
m_Shader: {fileID: 4800000, guid: c8d12adcee749c344b8117cf7c7eb912, type: 3}
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _Cube:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _FaceTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: -5656930091445551790, guid: bc6ef582a0efa420683ff976adff235a,
|
||||||
|
type: 2}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MaskTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OutlineTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _Ambient: 0.5
|
||||||
|
- _Bevel: 0.5
|
||||||
|
- _BevelClamp: 0
|
||||||
|
- _BevelOffset: 0
|
||||||
|
- _BevelRoundness: 0
|
||||||
|
- _BevelWidth: 0
|
||||||
|
- _BumpFace: 0
|
||||||
|
- _BumpOutline: 0
|
||||||
|
- _ColorMask: 15
|
||||||
|
- _CullMode: 0
|
||||||
|
- _Diffuse: 0.5
|
||||||
|
- _FaceDilate: 0
|
||||||
|
- _FaceUVSpeedX: 0
|
||||||
|
- _FaceUVSpeedY: 0
|
||||||
|
- _GlowInner: 0.05
|
||||||
|
- _GlowOffset: 0
|
||||||
|
- _GlowOuter: 0.05
|
||||||
|
- _GlowPower: 0.75
|
||||||
|
- _GradientScale: 10
|
||||||
|
- _LightAngle: 3.1416
|
||||||
|
- _MaskEdgeSoftness: 0.01
|
||||||
|
- _MaskInverse: 0
|
||||||
|
- _MaskSoftnessX: 0
|
||||||
|
- _MaskSoftnessY: 0
|
||||||
|
- _MaskWipeControl: 0.5
|
||||||
|
- _OutlineSoftness: 0
|
||||||
|
- _OutlineUVSpeedX: 0
|
||||||
|
- _OutlineUVSpeedY: 0
|
||||||
|
- _OutlineWidth: 0
|
||||||
|
- _PerspectiveFilter: 0.875
|
||||||
|
- _Reflectivity: 10
|
||||||
|
- _ScaleRatioA: 0.9
|
||||||
|
- _ScaleRatioB: 0.73125
|
||||||
|
- _ScaleRatioC: 0.73125
|
||||||
|
- _ScaleX: 1
|
||||||
|
- _ScaleY: 1
|
||||||
|
- _ShaderFlags: 0
|
||||||
|
- _Sharpness: 0
|
||||||
|
- _SpecularPower: 2
|
||||||
|
- _Stencil: 0
|
||||||
|
- _StencilComp: 8
|
||||||
|
- _StencilOp: 0
|
||||||
|
- _StencilReadMask: 255
|
||||||
|
- _StencilWriteMask: 255
|
||||||
|
- _TextureHeight: 1024
|
||||||
|
- _TextureWidth: 1024
|
||||||
|
- _UnderlayDilate: 0
|
||||||
|
- _UnderlayOffsetX: 0
|
||||||
|
- _UnderlayOffsetY: 0
|
||||||
|
- _UnderlaySoftness: 0
|
||||||
|
- _VertexOffsetX: 0
|
||||||
|
- _VertexOffsetY: 0
|
||||||
|
- _WeightBold: 0.75
|
||||||
|
- _WeightNormal: 0
|
||||||
|
m_Colors:
|
||||||
|
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||||
|
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
|
||||||
|
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
|
||||||
|
- _MaskEdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9426c45abd5c54484b10707936c04ade
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,108 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: CarterOne-Regular SSD
|
||||||
|
m_Shader: {fileID: 4800000, guid: 14eb328de4b8eb245bb7cea29e4ac00b, type: 3}
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _Cube:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _FaceTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: -5656930091445551790, guid: bc6ef582a0efa420683ff976adff235a,
|
||||||
|
type: 2}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OutlineTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _Ambient: 0.5
|
||||||
|
- _Bevel: 0.5
|
||||||
|
- _BevelClamp: 0
|
||||||
|
- _BevelOffset: 0
|
||||||
|
- _BevelRoundness: 0
|
||||||
|
- _BevelWidth: 0
|
||||||
|
- _BumpFace: 0
|
||||||
|
- _BumpOutline: 0
|
||||||
|
- _ColorMask: 15
|
||||||
|
- _CullMode: 0
|
||||||
|
- _Diffuse: 0.5
|
||||||
|
- _FaceDilate: 0
|
||||||
|
- _FaceUVSpeedX: 0
|
||||||
|
- _FaceUVSpeedY: 0
|
||||||
|
- _GlowInner: 0.05
|
||||||
|
- _GlowOffset: 0
|
||||||
|
- _GlowOuter: 0.05
|
||||||
|
- _GlowPower: 0.75
|
||||||
|
- _GradientScale: 10
|
||||||
|
- _LightAngle: 3.1416
|
||||||
|
- _MaskSoftnessX: 0
|
||||||
|
- _MaskSoftnessY: 0
|
||||||
|
- _OutlineSoftness: 0
|
||||||
|
- _OutlineUVSpeedX: 0
|
||||||
|
- _OutlineUVSpeedY: 0
|
||||||
|
- _OutlineWidth: 0
|
||||||
|
- _PerspectiveFilter: 0.875
|
||||||
|
- _Reflectivity: 10
|
||||||
|
- _ScaleRatioA: 0.9
|
||||||
|
- _ScaleRatioB: 0.73125
|
||||||
|
- _ScaleRatioC: 0.73125
|
||||||
|
- _ScaleX: 1
|
||||||
|
- _ScaleY: 1
|
||||||
|
- _ShaderFlags: 0
|
||||||
|
- _Sharpness: 0
|
||||||
|
- _SpecularPower: 2
|
||||||
|
- _Stencil: 0
|
||||||
|
- _StencilComp: 8
|
||||||
|
- _StencilOp: 0
|
||||||
|
- _StencilReadMask: 255
|
||||||
|
- _StencilWriteMask: 255
|
||||||
|
- _TextureHeight: 1024
|
||||||
|
- _TextureWidth: 1024
|
||||||
|
- _UnderlayDilate: 0
|
||||||
|
- _UnderlayOffsetX: 0
|
||||||
|
- _UnderlayOffsetY: 0
|
||||||
|
- _UnderlaySoftness: 0
|
||||||
|
- _VertexOffsetX: 0
|
||||||
|
- _VertexOffsetY: 0
|
||||||
|
- _WeightBold: 0.75
|
||||||
|
- _WeightNormal: 0
|
||||||
|
m_Colors:
|
||||||
|
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||||
|
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
|
||||||
|
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
|
||||||
|
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 06cd8c04a12a94e6084bc44a7e8454f6
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
#if UNITY_EDITOR
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Text;
|
|
||||||
using UnityEditor;
|
|
||||||
using UnityEngine;
|
|
||||||
using Debug = UnityEngine.Debug;
|
|
||||||
|
|
||||||
internal static class ImportSample
|
|
||||||
{
|
|
||||||
[MenuItem("Development/Import TMP Support V1", false, 2001)]
|
|
||||||
private static void ImportTMPSupportV1()
|
|
||||||
{
|
|
||||||
Run("TextMeshPro Support");
|
|
||||||
}
|
|
||||||
|
|
||||||
[MenuItem("Development/Import TMP Support V2", false, 2002)]
|
|
||||||
private static void ImportTMPSupportV2()
|
|
||||||
{
|
|
||||||
Run("TextMeshPro Support (Unity 6)");
|
|
||||||
}
|
|
||||||
|
|
||||||
[InitializeOnLoadMethod]
|
|
||||||
private static void ImportSampleOnLoad()
|
|
||||||
{
|
|
||||||
#if UNITY_2023_2_OR_NEWER
|
|
||||||
ImportTMPSupportV2();
|
|
||||||
#else
|
|
||||||
ImportTMPSupportV1();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void Run(string sample)
|
|
||||||
{
|
|
||||||
var p = new Process()
|
|
||||||
{
|
|
||||||
StartInfo = new ProcessStartInfo()
|
|
||||||
{
|
|
||||||
Arguments = $"import-tmp-support.sh '{sample}'",
|
|
||||||
CreateNoWindow = true,
|
|
||||||
#if UNITY_EDITOR_WIN
|
|
||||||
FileName = @"C:\Program Files (x86)\Git\bin\bash.exe",
|
|
||||||
#else
|
|
||||||
FileName = "/bin/bash",
|
|
||||||
#endif
|
|
||||||
RedirectStandardError = true,
|
|
||||||
RedirectStandardOutput = true,
|
|
||||||
WorkingDirectory = $"{Application.dataPath}/..",
|
|
||||||
UseShellExecute = false
|
|
||||||
},
|
|
||||||
EnableRaisingEvents = true
|
|
||||||
};
|
|
||||||
|
|
||||||
p.Exited += (_, __) =>
|
|
||||||
{
|
|
||||||
var result = new StringBuilder();
|
|
||||||
var stdout = p.StandardOutput.ReadToEnd();
|
|
||||||
result.Append("stdout: ");
|
|
||||||
result.Append(stdout);
|
|
||||||
result.AppendLine();
|
|
||||||
result.Append("stderr: ");
|
|
||||||
result.Append(p.StandardError.ReadToEnd());
|
|
||||||
Debug.Log(result);
|
|
||||||
|
|
||||||
if (p.ExitCode == 0 && stdout.StartsWith("Imported: "))
|
|
||||||
{
|
|
||||||
var path = stdout.Replace("Imported: ", "").Trim();
|
|
||||||
AssetDatabase.ImportAsset(path, ImportAssetOptions.ImportRecursive);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
p.Start();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
#if UNITY_EDITOR
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using UnityEditor;
|
||||||
|
using Debug = UnityEngine.Debug;
|
||||||
|
|
||||||
|
internal static class TextMeshProSupport
|
||||||
|
{
|
||||||
|
private const string k_Version = "userData: v5.8.0";
|
||||||
|
private const string k_VersionUnity6 = k_Version + " (Unity 6)";
|
||||||
|
|
||||||
|
private static readonly Dictionary<string, string> s_FileGuids = new Dictionary<string, string>()
|
||||||
|
{
|
||||||
|
{ "Hidden-TMP_Bitmap-Mobile-UIEffect.shader.meta", "guid: 63a1dba10bff94661a909d63808a9a3b" },
|
||||||
|
{ "Hidden-TMP_Bitmap-UIEffect.shader.meta", "guid: d1cb940e3804b4adcaf9b22083fadfad" },
|
||||||
|
{ "Hidden-TMP_SDF Overlay-UIEffect.shader.meta", "guid: 03ea49e29b5ad4fbe8e340af208fe8e7" },
|
||||||
|
{ "Hidden-TMP_SDF SSD-UIEffect.shader.meta", "guid: 26b66f9b09b8d4ac6a2790c3fa8b21c1" },
|
||||||
|
{ "Hidden-TMP_SDF-Mobile Overlay-UIEffect.shader.meta", "guid: 16f26337621974eaf998b9857bac39c6" },
|
||||||
|
{ "Hidden-TMP_SDF-Mobile SSD-UIEffect.shader.meta", "guid: 2c69b4dabb5c24ae99889f581c8b556a" },
|
||||||
|
{ "Hidden-TMP_SDF-Mobile-UIEffect.shader.meta", "guid: e65241fa80a374114b3f55ed746c04d9" },
|
||||||
|
{ "Hidden-TMP_SDF-UIEffect.shader.meta", "guid: 935b7be1c88464d2eb87204fdfab5a38" }
|
||||||
|
};
|
||||||
|
|
||||||
|
[MenuItem("Development/TextMeshPro/", false, -40)]
|
||||||
|
private static void _()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
[MenuItem("Development/TextMeshPro/List GUID, Version for TMP Samples", false)]
|
||||||
|
private static void ListGuidsAndVersions()
|
||||||
|
{
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
ForEachMeta(x =>
|
||||||
|
{
|
||||||
|
var (path, guid, version) = x;
|
||||||
|
sb.AppendLine($"{guid},\tversion: {version},\t{Path.GetFileName(path)}");
|
||||||
|
});
|
||||||
|
Debug.Log(sb);
|
||||||
|
}
|
||||||
|
|
||||||
|
[MenuItem("Development/TextMeshPro/Update GUID, Version for TMP Samples", false)]
|
||||||
|
private static void UpdateGuidsAndVersions()
|
||||||
|
{
|
||||||
|
ForEachMeta(x =>
|
||||||
|
{
|
||||||
|
var (path, guid, version) = x;
|
||||||
|
var fileName = Path.GetFileName(path);
|
||||||
|
s_FileGuids.TryGetValue(fileName.Replace("-Unity6", ""), out var expectedGuid);
|
||||||
|
var expectedVersion = path.Contains("-Unity6") ? k_VersionUnity6 : k_Version;
|
||||||
|
|
||||||
|
if (expectedGuid != guid || expectedVersion != version)
|
||||||
|
{
|
||||||
|
Debug.Log($"Update: {fileName}");
|
||||||
|
var meta = File.ReadAllText(path);
|
||||||
|
File.WriteAllText(path, meta.Replace(guid, expectedGuid).Replace(version, expectedVersion));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void ForEachMeta(Action<(string path, string guid, string version)> action)
|
||||||
|
{
|
||||||
|
foreach (var p in Directory.GetFiles("Packages/src/Samples~", "*.shader.meta", SearchOption.AllDirectories))
|
||||||
|
{
|
||||||
|
var fileName = Path.GetFileName(p);
|
||||||
|
if (!fileName.Contains("TMP_")) continue;
|
||||||
|
|
||||||
|
var meta = File.ReadAllText(p);
|
||||||
|
var guid = Regex.Match(meta, @"(guid: \w+)$", RegexOptions.Multiline).Groups[1].Value;
|
||||||
|
var version = Regex.Match(meta, @"(userData: .*)$", RegexOptions.Multiline).Groups[1].Value;
|
||||||
|
|
||||||
|
action((p, guid, version));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8d415f5270a5d45608931175d5835110
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 15dc1da3b4d49479897101a68acaa39f
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 14bf4da62b8434d7ca6e6a7e8b63e4ea
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 43c4f102824e943cf859c0d6c966b9fa
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c00285a6a9d0843f4a7da23d7dda6582
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
using UnityEditor;
|
||||||
|
|
||||||
|
internal static class UserDataEditor
|
||||||
|
{
|
||||||
|
[InitializeOnLoadMethod]
|
||||||
|
private static void InitializeOnLoadMethod()
|
||||||
|
{
|
||||||
|
Editor.finishedDefaultHeaderGUI += OnFinishedDefaultHeaderGUI;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void OnFinishedDefaultHeaderGUI(Editor editor)
|
||||||
|
{
|
||||||
|
var importer = editor.target as AssetImporter;
|
||||||
|
if (!importer)
|
||||||
|
{
|
||||||
|
if (!AssetDatabase.Contains(editor.target)) return;
|
||||||
|
|
||||||
|
importer = AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(editor.target));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!importer) return;
|
||||||
|
|
||||||
|
EditorGUIUtility.labelWidth = 55;
|
||||||
|
importer.userData = EditorGUILayout.DelayedTextField("userdata", importer.userData);
|
||||||
|
AssetDatabase.WriteImportSettingsIfDirty(importer.assetPath);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 92afd1c51675640e88e3abb238cd225f
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -18,11 +18,12 @@ MonoBehaviour:
|
|||||||
m_EnabledInEditor: 1
|
m_EnabledInEditor: 1
|
||||||
m_AlwaysIncludeAssembly: 1
|
m_AlwaysIncludeAssembly: 1
|
||||||
m_InstantiateOnLoad: 1
|
m_InstantiateOnLoad: 1
|
||||||
m_Prefab: {fileID: 7211429669315726685, guid: 78a484d8074c74e9c80786d1e55962c8,
|
m_Prefab: {fileID: 4567906826058368312, guid: 7cebff2d255b9433cbe23b243c193329,
|
||||||
type: 3}
|
type: 3}
|
||||||
m_Interval: 0.5
|
m_Interval: 0.5
|
||||||
m_Anchor: 0
|
m_Anchor: 0
|
||||||
m_Width: 750
|
m_Width: 800
|
||||||
|
m_HelpUrl: https://github.com/mob-sakai/UIEffect
|
||||||
m_CustomMonitorItems:
|
m_CustomMonitorItems:
|
||||||
- m_Format: Screen:{0}x{1}
|
- m_Format: Screen:{0}x{1}
|
||||||
m_Arg0:
|
m_Arg0:
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -8,128 +8,109 @@ ShaderVariantCollection:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: UIEffectShaderVariants
|
m_Name: UIEffectShaderVariants
|
||||||
m_Shaders:
|
m_Shaders:
|
||||||
|
- first: {fileID: 4800000, guid: 935b7be1c88464d2eb87204fdfab5a38, type: 3}
|
||||||
|
second:
|
||||||
|
variants:
|
||||||
|
- keywords: COLOR_FILTER GLOW_ON GRADATION_GRADIENT UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER GLOW_ON TRANSITION_BURN UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER GLOW_ON UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: EDGE_PLAIN GLOW_ON UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON SAMPLING_BLUR_DETAIL UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON SAMPLING_EDGE_LUMINANCE UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON SAMPLING_PIXELATION TONE_RETRO UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON SAMPLING_PIXELATION UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON SAMPLING_RGB_SHIFT UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON TONE_RETRO UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON TRANSITION_BLAZE UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON TRANSITION_BURN UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON TRANSITION_DISSOLVE UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON TRANSITION_MELT UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON TRANSITION_PATTERN UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON TRANSITION_SHINY UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
- first: {fileID: 4800000, guid: 96246b1ead49a4c5a996fd477bc5a117, type: 3}
|
- first: {fileID: 4800000, guid: 96246b1ead49a4c5a996fd477bc5a117, type: 3}
|
||||||
second:
|
second:
|
||||||
variants:
|
variants:
|
||||||
- keywords:
|
- keywords:
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_ADDITIVE
|
- keywords: COLOR_FILTER
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_ADDITIVE SAMPLING_BLUR_FAST
|
- keywords: COLOR_FILTER EDGE_PLAIN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_ADDITIVE SAMPLING_BLUR_FAST UNITY_UI_CLIP_RECT
|
- keywords: COLOR_FILTER EDGE_PLAIN TRANSITION_PATTERN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_CONTRAST
|
- keywords: COLOR_FILTER EDGE_SHINY
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_HSV_MODIFIER
|
- keywords: COLOR_FILTER SAMPLING_BLUR_FAST
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_HSV_MODIFIER TARGET_HUE
|
- keywords: COLOR_FILTER SAMPLING_BLUR_FAST TONE_GRAYSCALE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_HSV_MODIFIER TARGET_LUMINANCE
|
- keywords: COLOR_FILTER SAMPLING_BLUR_FAST TONE_GRAYSCALE TRANSITION_DISSOLVE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_MULTIPLY
|
- keywords: COLOR_FILTER TARGET_HUE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_MULTIPLY_ADDITIVE
|
- keywords: COLOR_FILTER TARGET_LUMINANCE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_MULTIPLY_ADDITIVE SAMPLING_BLUR_FAST TONE_GRAYSCALE TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
- keywords: COLOR_FILTER TRANSITION_MELT
|
||||||
TRANSITION_DISSOLVE
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_REPLACE SAMPLING_BLUR_FAST
|
- keywords: DETAIL_ADDITIVE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_BLUR_DETAIL
|
- keywords: DETAIL_MASKING
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TONE_GRAYSCALE
|
- keywords: DETAIL_MULTIPLY
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TONE_SEPIA
|
- keywords: DETAIL_MULTIPLY GRADATION_GRADIENT
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TONE_NEGATIVE
|
- keywords: DETAIL_MULTIPLY_ADDITIVE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TONE_RETRO
|
- keywords: DETAIL_REPLACE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TONE_POSTERIZE
|
- keywords: DETAIL_SUBTRACTIVE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_MULTIPLY
|
- keywords: EDGE_PLAIN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_ADDITIVE
|
- keywords: EDGE_PLAIN TRANSITION_PATTERN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_SUBTRACTIVE
|
- keywords: EDGE_SHINY
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_REPLACE
|
- keywords: EDGE_SHINY SAMPLING_EDGE_ALPHA
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_MULTIPLY_LUMINANCE
|
- keywords: EDGE_SHINY TRANSITION_PATTERN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_MULTIPLY_ADDITIVE
|
- keywords: GRADATION_COLOR2
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_HSV_MODIFIER
|
- keywords: GRADATION_COLOR4
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_CONTRAST
|
- keywords: GRADATION_GRADIENT
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_HSV_MODIFIER TARGET_HUE
|
- keywords: GRADATION_RADIAL
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_REPLACE SAMPLING_BLUR_FAST
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_BLUR_FAST
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_BLUR_FAST TONE_GRAYSCALE
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_ADDITIVE SAMPLING_BLUR_FAST
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_ADDITIVE SAMPLING_BLUR_FAST UNITY_UI_CLIP_RECT
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_HSV_MODIFIER
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_HSV_MODIFIER TARGET_HUE
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_HSV_MODIFIER TARGET_LUMINANCE
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_MULTIPLY
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_MULTIPLY_ADDITIVE
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_MULTIPLY_ADDITIVE SAMPLING_BLUR_FAST TONE_GRAYSCALE TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
|
||||||
TRANSITION_DISSOLVE
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_MULTIPLY_LUMINANCE
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_REPLACE
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_REPLACE SAMPLING_BLUR_FAST
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_SUBTRACTIVE
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_BLUR_DETAIL
|
- keywords: SAMPLING_BLUR_DETAIL
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_BLUR_FAST
|
- keywords: SAMPLING_BLUR_FAST
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_BLUR_FAST TONE_GRAYSCALE
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_BLUR_MEDIUM
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_BLUR_DETAIL
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_BLUR_FAST
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_BLUR_FAST TONE_GRAYSCALE
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_BLUR_MEDIUM
|
- keywords: SAMPLING_BLUR_MEDIUM
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_EDGE_ALPHA
|
- keywords: SAMPLING_EDGE_ALPHA
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_EDGE_LUMINANCE
|
- keywords: SAMPLING_EDGE_LUMINANCE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_EDGE_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MASK
|
- keywords: SAMPLING_EDGE_LUMINANCE TRANSITION_MASK
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_PIXELATION
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_PIXELATION TONE_RETRO
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_PIXELATION TONE_RETRO UNITY_UI_CLIP_RECT
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_RGB_SHIFT
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_EDGE_LUMINANCE
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_EDGE_ALPHA
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_PIXELATION
|
- keywords: SAMPLING_PIXELATION
|
||||||
passType: 0
|
passType: 0
|
||||||
@@ -147,142 +128,37 @@ ShaderVariantCollection:
|
|||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TONE_RETRO
|
- keywords: TONE_RETRO
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE UNITY_UI_CLIP_RECT
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_FADE
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_CUTOFF
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_REPLACE TRANSITION_MELT
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE UNITY_UI_CLIP_RECT
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_MULTIPLY_ADDITIVE SAMPLING_BLUR_FAST TONE_GRAYSCALE TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
|
||||||
TRANSITION_DISSOLVE
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_PIXELATION TONE_RETRO UNITY_UI_CLIP_RECT
|
|
||||||
passType: 0
|
|
||||||
- keywords: TONE_GRAYSCALE
|
|
||||||
passType: 0
|
|
||||||
- keywords: TONE_NEGATIVE
|
|
||||||
passType: 0
|
|
||||||
- keywords: TONE_POSTERIZE
|
|
||||||
passType: 0
|
|
||||||
- keywords: TONE_RETRO
|
|
||||||
passType: 0
|
|
||||||
- keywords: TONE_SEPIA
|
- keywords: TONE_SEPIA
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
- keywords: TRANSITION_BLAZE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE UNITY_UI_CLIP_RECT
|
- keywords: TRANSITION_BLAZE UNITY_UI_CLIP_RECT
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE
|
- keywords: TRANSITION_BURN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE UNITY_UI_CLIP_RECT
|
- keywords: TRANSITION_BURN UNITY_UI_CLIP_RECT
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MASK
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MELT
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_SHINY
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_SHINY UNITY_UI_CLIP_RECT
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MASK
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_EDGE_LUMINANCE TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MASK
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MELT
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MELT UNITY_UI_CLIP_RECT
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE UNITY_UI_CLIP_RECT
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_HSV_MODIFIER TARGET_HUE
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_HSV_MODIFIER TARGET_LUMINANCE
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MELT UNITY_UI_CLIP_RECT
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_SHINY
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_SHINY UNITY_UI_CLIP_RECT
|
|
||||||
passType: 0
|
|
||||||
- keywords: TRANSITION_COLOR_REPLACE TRANSITION_MELT
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TRANSITION_CUTOFF
|
- keywords: TRANSITION_CUTOFF
|
||||||
passType: 0
|
passType: 0
|
||||||
|
- keywords: TRANSITION_DISSOLVE
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_DISSOLVE UNITY_UI_CLIP_RECT
|
||||||
|
passType: 0
|
||||||
- keywords: TRANSITION_FADE
|
- keywords: TRANSITION_FADE
|
||||||
passType: 0
|
passType: 0
|
||||||
- first: {fileID: 4800000, guid: 935b7be1c88464d2eb87204fdfab5a38, type: 3}
|
- keywords: TRANSITION_MASK
|
||||||
second:
|
|
||||||
variants:
|
|
||||||
- keywords: GLOW_ON TONE_RETRO UNDERLAY_ON
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_HSV_MODIFIER GLOW_ON UNDERLAY_ON
|
- keywords: TRANSITION_MELT
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_ADDITIVE GLOW_ON SAMPLING_BLUR_FAST UNDERLAY_ON
|
- keywords: TRANSITION_MELT UNITY_UI_CLIP_RECT
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON SAMPLING_BLUR_DETAIL UNDERLAY_ON
|
- keywords: TRANSITION_PATTERN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON SAMPLING_PIXELATION UNDERLAY_ON
|
- keywords: TRANSITION_PATTERN UNITY_UI_CLIP_RECT
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_PIXELATION TONE_RETRO
|
- keywords: TRANSITION_SHINY
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON SAMPLING_RGB_SHIFT UNDERLAY_ON
|
- keywords: TRANSITION_SHINY UNITY_UI_CLIP_RECT
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON SAMPLING_EDGE_LUMINANCE UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_REPLACE TRANSITION_MELT UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE
|
|
||||||
UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_SHINY UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MELT UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- first: {fileID: 4800000, guid: c67f821adbb6348a3a21573a25b55de0, type: 3}
|
|
||||||
second:
|
|
||||||
variants:
|
|
||||||
- keywords: COLOR_ADDITIVE GLOW_ON SAMPLING_BLUR_FAST UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_HSV_MODIFIER GLOW_ON UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON SAMPLING_BLUR_DETAIL UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON SAMPLING_EDGE_LUMINANCE UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON SAMPLING_PIXELATION UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON SAMPLING_RGB_SHIFT UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON TONE_RETRO UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE
|
|
||||||
UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MELT UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_SHINY UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_REPLACE TRANSITION_MELT UNDERLAY_ON
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_PIXELATION TONE_RETRO
|
|
||||||
passType: 0
|
passType: 0
|
||||||
--- !u!114 &11400000
|
--- !u!114 &11400000
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@@ -296,10 +172,32 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 7d43f626d9b5f4d729097092ded48bdb, type: 3}
|
m_Script: {fileID: 11500000, guid: 7d43f626d9b5f4d729097092ded48bdb, type: 3}
|
||||||
m_Name: UIEffectProjectSettings
|
m_Name: UIEffectProjectSettings
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_TransformSensitivity: 1
|
m_RuntimePresets: []
|
||||||
m_RuntimePresets:
|
m_RuntimePresetsV2:
|
||||||
- {fileID: 1645081683573595507, guid: 3b09ad143990c4c8795c6e93760e132a, type: 3}
|
- {fileID: 11400000, guid: 460881a8263ce454799a8c689c28d8c9, type: 2}
|
||||||
- {fileID: 1645081683573595507, guid: 4f70ff0f1e25b4388b9bcb38d619f7bf, type: 3}
|
- {fileID: 11400000, guid: b919bc84de9254bcf8f614d392db83bb, type: 2}
|
||||||
m_FallbackVariantBehaviour: 0
|
m_UseHDRColorPicker: 1
|
||||||
m_UnregisteredShaderVariants: []
|
|
||||||
m_ShaderVariantCollection: {fileID: -8740588384831342173}
|
m_ShaderVariantCollection: {fileID: -8740588384831342173}
|
||||||
|
m_ShaderVariantRegistry:
|
||||||
|
m_OptionalShaders:
|
||||||
|
- key: Hidden/TextMeshPro/Bitmap (SoftMaskable)
|
||||||
|
value: Hidden/TextMeshPro/Bitmap (UIEffect)
|
||||||
|
- key: Hidden/TextMeshPro/Distance Field (SoftMaskable)
|
||||||
|
value: Hidden/TextMeshPro/Distance Field (UIEffect)
|
||||||
|
- key: Hidden/TextMeshPro/Distance Field Overlay (SoftMaskable)
|
||||||
|
value: Hidden/TextMeshPro/Distance Field Overlay (UIEffect)
|
||||||
|
- key: Hidden/TextMeshPro/Distance Field SSD (SoftMaskable)
|
||||||
|
value: Hidden/TextMeshPro/Distance Field SSD (UIEffect)
|
||||||
|
- key: Hidden/TextMeshPro/Mobile/Bitmap (SoftMaskable)
|
||||||
|
value: Hidden/TextMeshPro/Mobile/Bitmap (UIEffect)
|
||||||
|
- key: Hidden/TextMeshPro/Mobile/Distance Field (SoftMaskable)
|
||||||
|
value: Hidden/TextMeshPro/Mobile/Distance Field (UIEffect)
|
||||||
|
- key: Hidden/TextMeshPro/Mobile/Distance Field Overlay (SoftMaskable)
|
||||||
|
value: Hidden/TextMeshPro/Mobile/Distance Field Overlay (UIEffect)
|
||||||
|
- key: Hidden/TextMeshPro/Mobile/Distance Field SSD (SoftMaskable)
|
||||||
|
value: Hidden/TextMeshPro/Mobile/Distance Field SSD (UIEffect)
|
||||||
|
- key: Hidden/UI/Default (SoftMaskable)
|
||||||
|
value: Hidden/UI/Default (UIEffect)
|
||||||
|
m_Asset: {fileID: -8740588384831342173}
|
||||||
|
m_ErrorOnUnregisteredVariant: 0
|
||||||
|
m_UnregisteredVariants: []
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e9a477d4a32184f16b50f56f7de5fa4e
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 962016ab124fa4720be1e24ff58c8522
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "Coffee.UIEffect.EditorTests",
|
||||||
|
"references": [
|
||||||
|
"Coffee.UIEffect"
|
||||||
|
],
|
||||||
|
"optionalUnityReferences": [
|
||||||
|
"TestAssemblies"
|
||||||
|
],
|
||||||
|
"includePlatforms": [
|
||||||
|
"Editor"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 182e53eada385475e905b8ca6d82d6ad
|
||||||
|
AssemblyDefinitionImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
using NUnit.Framework;
|
||||||
|
using UnityEditor;
|
||||||
|
|
||||||
|
public class ReflectionTests
|
||||||
|
{
|
||||||
|
[Test]
|
||||||
|
public void ShaderVariantCollectionInspector_DrawShaderEntry()
|
||||||
|
{
|
||||||
|
var type = Type.GetType("UnityEditor.ShaderVariantCollectionInspector, UnityEditor");
|
||||||
|
Assert.IsNotNull(type, "'UnityEditor.ShaderVariantCollectionInspector, UnityEditor' is not found");
|
||||||
|
|
||||||
|
var miDrawShaderEntry = type.GetMethod("DrawShaderEntry", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||||
|
Assert.IsNotNull(miDrawShaderEntry);
|
||||||
|
|
||||||
|
var parameters = miDrawShaderEntry.GetParameters();
|
||||||
|
Assert.AreEqual(1, parameters.Length);
|
||||||
|
Assert.AreEqual(typeof(int), parameters[0].ParameterType);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void SerializedProperty_gradientValue()
|
||||||
|
{
|
||||||
|
var piGradient = typeof(SerializedProperty)
|
||||||
|
.GetProperty("gradientValue", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
|
||||||
|
Assert.IsNotNull(piGradient);
|
||||||
|
|
||||||
|
Assert.IsTrue(piGradient.CanRead);
|
||||||
|
Assert.IsTrue(piGradient.CanWrite);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7c5d391ce913d41fb9118c3d28b21059
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
./Packages/src/CHANGELOG.md
|
||||||
@@ -1,8 +1,10 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.coffee.development": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/Development",
|
"com.coffee.development": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/Development",
|
||||||
|
"com.coffee.minimal-resource": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/MinimalResource",
|
||||||
"com.coffee.nano-monitor": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/NanoMonitor",
|
"com.coffee.nano-monitor": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/NanoMonitor",
|
||||||
"com.unity.ide.rider": "3.0.34",
|
"com.coffee.symbolic-linker": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/SymbolicLinker",
|
||||||
|
"com.unity.ide.rider": "3.0.36",
|
||||||
"com.unity.test-framework": "1.1.33",
|
"com.unity.test-framework": "1.1.33",
|
||||||
"com.unity.textmeshpro": "3.0.9",
|
"com.unity.textmeshpro": "3.0.9",
|
||||||
"com.unity.modules.animation": "1.0.0"
|
"com.unity.modules.animation": "1.0.0"
|
||||||
|
|||||||
@@ -5,7 +5,14 @@
|
|||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "git",
|
"source": "git",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"hash": "805474a9e49f534ff01bf75405bcd415ed57083c"
|
"hash": "4a182298bd6293c4e6e33dd40bb7a050847190d8"
|
||||||
|
},
|
||||||
|
"com.coffee.minimal-resource": {
|
||||||
|
"version": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/MinimalResource",
|
||||||
|
"depth": 0,
|
||||||
|
"source": "git",
|
||||||
|
"dependencies": {},
|
||||||
|
"hash": "4a182298bd6293c4e6e33dd40bb7a050847190d8"
|
||||||
},
|
},
|
||||||
"com.coffee.nano-monitor": {
|
"com.coffee.nano-monitor": {
|
||||||
"version": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/NanoMonitor",
|
"version": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/NanoMonitor",
|
||||||
@@ -14,7 +21,14 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.ugui": "1.0.0"
|
"com.unity.ugui": "1.0.0"
|
||||||
},
|
},
|
||||||
"hash": "4e5f735ccf956ee469b5014ae781068c49a2825d"
|
"hash": "4a182298bd6293c4e6e33dd40bb7a050847190d8"
|
||||||
|
},
|
||||||
|
"com.coffee.symbolic-linker": {
|
||||||
|
"version": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/SymbolicLinker",
|
||||||
|
"depth": 0,
|
||||||
|
"source": "git",
|
||||||
|
"dependencies": {},
|
||||||
|
"hash": "4a182298bd6293c4e6e33dd40bb7a050847190d8"
|
||||||
},
|
},
|
||||||
"com.coffee.ui-effect": {
|
"com.coffee.ui-effect": {
|
||||||
"version": "file:src",
|
"version": "file:src",
|
||||||
@@ -32,7 +46,7 @@
|
|||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.ide.rider": {
|
"com.unity.ide.rider": {
|
||||||
"version": "3.0.34",
|
"version": "3.0.36",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,3 +1,370 @@
|
|||||||
|
## [5.9.2](https://github.com/mob-sakai/UIEffect/compare/5.9.1...5.9.2) (2025-06-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* TextMeshPro 3.2.0-pre support ([804b48c](https://github.com/mob-sakai/UIEffect/commit/804b48c73ec648eaceb720cb79551fdbf3729fc9)), closes [#355](https://github.com/mob-sakai/UIEffect/issues/355)
|
||||||
|
|
||||||
|
## [5.9.1](https://github.com/mob-sakai/UIEffect/compare/5.9.0...5.9.1) (2025-06-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* prefabs will be deselected when editing them ([8addbad](https://github.com/mob-sakai/UIEffect/commit/8addbad4941340807d824e295280473d197d889f)), closes [#354](https://github.com/mob-sakai/UIEffect/issues/354)
|
||||||
|
|
||||||
|
# [5.9.0](https://github.com/mob-sakai/UIEffect/compare/5.8.7...5.9.0) (2025-06-09)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* `GradationMode.RadialFast` and `GradationMode.RadialDetail` are obsolete ([1a923dd](https://github.com/mob-sakai/UIEffect/commit/1a923dd72c263de5480d71bd17b697feca317ef1))
|
||||||
|
* soft masking not working with `DetailFilter.Masking` ([ffdeaa7](https://github.com/mob-sakai/UIEffect/commit/ffdeaa7e2f1c2a9ccb7eb21d5674e2c19021aef9))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* `GradationGradient` supports HDR color ([50f6b3c](https://github.com/mob-sakai/UIEffect/commit/50f6b3c5d20b93a2245f6d54b6eb4bc13565c3b5))
|
||||||
|
* add `Clear` method to reset properties via script ([264c453](https://github.com/mob-sakai/UIEffect/commit/264c453bb6ebad08ef950b0cec2f38e60a1710d8)), closes [#337](https://github.com/mob-sakai/UIEffect/issues/337)
|
||||||
|
* add `GradationMode.RadialGradient` feature ([179ec89](https://github.com/mob-sakai/UIEffect/commit/179ec89a0215af9d8046e150d98fa06371155e93)), closes [#348](https://github.com/mob-sakai/UIEffect/issues/348)
|
||||||
|
* add `GradationReverse` option for gradient ([c0fec32](https://github.com/mob-sakai/UIEffect/commit/c0fec32d502ec1f9d03172ed200f4d9233506eb9)), closes [#348](https://github.com/mob-sakai/UIEffect/issues/348)
|
||||||
|
* add `GradationWrapMode` option ([f98929d](https://github.com/mob-sakai/UIEffect/commit/f98929d7e9656b4c02d5545b3893748c963d1118))
|
||||||
|
* add `TransitionFilter.Blaze` feature ([ed4716d](https://github.com/mob-sakai/UIEffect/commit/ed4716d7ada102fe0053480941925e9f27b1c2c3))
|
||||||
|
* add new built-in presets ([4f2c9f1](https://github.com/mob-sakai/UIEffect/commit/4f2c9f12b5e115bab1418a7a0b1187269a041fc4))
|
||||||
|
* improve performance for TextMeshPro ([6af520e](https://github.com/mob-sakai/UIEffect/commit/6af520ed408f2e5eb4d84ec0df484338719ebc8e))
|
||||||
|
* timeline package support ([742a5cd](https://github.com/mob-sakai/UIEffect/commit/742a5cd8dc47500de4b111a132d7a8b242844342)), closes [#347](https://github.com/mob-sakai/UIEffect/issues/347)
|
||||||
|
* update shaders in samples ([4c6cd11](https://github.com/mob-sakai/UIEffect/commit/4c6cd11d86582f2351c40374180828ad1c8955c3))
|
||||||
|
|
||||||
|
## [5.8.7](https://github.com/mob-sakai/UIEffect/compare/5.8.6...5.8.7) (2025-06-09)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* `GradationGradient` and `TransitionGradient` in reprica will be not dirty (editor) ([58b197e](https://github.com/mob-sakai/UIEffect/commit/58b197e551aea8efca10e12da8df132853d4a24e))
|
||||||
|
* changes not reflected in rendering when TextMeshPro is cleared ([f508eb3](https://github.com/mob-sakai/UIEffect/commit/f508eb32caf6757eb4c27b98ac29a1582dcd14b4)), closes [#351](https://github.com/mob-sakai/UIEffect/issues/351)
|
||||||
|
* setting `gradationScale` to 0 throws `DivideByZeroException` ([ecd265e](https://github.com/mob-sakai/UIEffect/commit/ecd265e4828c7f81c96a76c16df147b6c4804429))
|
||||||
|
|
||||||
|
## [5.8.6](https://github.com/mob-sakai/UIEffect/compare/5.8.5...5.8.6) (2025-05-22)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* some methods may be called multiple times when domain reload on play is disabled (editor) ([3b52c3a](https://github.com/mob-sakai/UIEffect/commit/3b52c3a8fc67980d426b8e4e2ed2067c725ca262))
|
||||||
|
|
||||||
|
## [5.8.5](https://github.com/mob-sakai/UIEffect/compare/5.8.4...5.8.5) (2025-05-22)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* skip processing when graphic is invalid ([5cd48a4](https://github.com/mob-sakai/UIEffect/commit/5cd48a463309270ec3d6501bde2add9944bbaf02))
|
||||||
|
* TextMeshPro strikethrough and underline not displaying ([68ebae2](https://github.com/mob-sakai/UIEffect/commit/68ebae28e02045cb45996bf5b77d7d93d2f0ca82)), closes [#344](https://github.com/mob-sakai/UIEffect/issues/344)
|
||||||
|
* TMP SubMeshUI generates overhead every frame (since 5.6.0) ([791d867](https://github.com/mob-sakai/UIEffect/commit/791d8670761902466d81412d832cddf013cd28cd)), closes [#343](https://github.com/mob-sakai/UIEffect/issues/343) [#345](https://github.com/mob-sakai/UIEffect/issues/345)
|
||||||
|
|
||||||
|
## [5.8.4](https://github.com/mob-sakai/UIEffect/compare/5.8.3...5.8.4) (2025-04-30)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* NRE while canvas is disabled ([a3773e3](https://github.com/mob-sakai/UIEffect/commit/a3773e33028c60517fb4e6c534f6280194df8e64)), closes [#342](https://github.com/mob-sakai/UIEffect/issues/342)
|
||||||
|
|
||||||
|
## [5.8.3](https://github.com/mob-sakai/UIEffect/compare/5.8.2...5.8.3) (2025-04-30)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* the alpha of the gradation color and gradient was being ignored ([3807e4c](https://github.com/mob-sakai/UIEffect/commit/3807e4c69aefaef04b2245522e7c5085ccc65a36)), closes [#341](https://github.com/mob-sakai/UIEffect/issues/341)
|
||||||
|
|
||||||
|
## [5.8.2](https://github.com/mob-sakai/UIEffect/compare/5.8.1...5.8.2) (2025-04-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* `Flip` is ignored when loading a preset ([e1f3abf](https://github.com/mob-sakai/UIEffect/commit/e1f3abf7a65b62718b28e33ac2f7d700c3ae3f5a))
|
||||||
|
* fix detail color ([90ab16c](https://github.com/mob-sakai/UIEffect/commit/90ab16c3fd46435ebf7c8e47ffb4ec521d2f61c9))
|
||||||
|
* indicate in the inspector using tooltips and asterisks that `Rotation` and `Keep Aspect Ratio` are shared properties ([2cca822](https://github.com/mob-sakai/UIEffect/commit/2cca822413aa7580e1eb777c3295d1de928cd65f))
|
||||||
|
|
||||||
|
## [5.8.1](https://github.com/mob-sakai/UIEffect/compare/5.8.0...5.8.1) (2025-04-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* built-in presets cannot be used with `UIEffectReplica` ([1106f4b](https://github.com/mob-sakai/UIEffect/commit/1106f4bf4632e1372d44ced9a38e98209a6b55e8))
|
||||||
|
* New presets ignore `DetailColor` property ([1143fbb](https://github.com/mob-sakai/UIEffect/commit/1143fbb84a1e08817de93f1349ee5cdad0972db5)), closes [#336](https://github.com/mob-sakai/UIEffect/issues/336)
|
||||||
|
* prevent built-in preset assets from being editable ([0898d73](https://github.com/mob-sakai/UIEffect/commit/0898d730add42970fb74bf2ad8aca9809bf6dd39))
|
||||||
|
|
||||||
|
# [5.8.0](https://github.com/mob-sakai/UIEffect/compare/5.7.0...5.8.0) (2025-04-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* `ShadowMode.Mirror` does not flip the effect ([37daad0](https://github.com/mob-sakai/UIEffect/commit/37daad01c4f3f4c259650b1493aeae204e0bd247))
|
||||||
|
* fix alpha clipping for ShaderGraph ([ae177a8](https://github.com/mob-sakai/UIEffect/commit/ae177a800cba1561b523292279d7986d4eff9f9c))
|
||||||
|
* unable to add editor presets as runtime presets to project settings ([726bb10](https://github.com/mob-sakai/UIEffect/commit/726bb100a0ad327619634ea73ccdccc36276d0d0)), closes [#330](https://github.com/mob-sakai/UIEffect/issues/330)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add `DetailColor` property ([30bf783](https://github.com/mob-sakai/UIEffect/commit/30bf783320398d68b90b09b0dcf93738b4683e00)), closes [#332](https://github.com/mob-sakai/UIEffect/issues/332)
|
||||||
|
* ScriptableObject based preset system ([f8682f3](https://github.com/mob-sakai/UIEffect/commit/f8682f3c9889fb56ff3cd9010934f998e121553a)), closes [#333](https://github.com/mob-sakai/UIEffect/issues/333)
|
||||||
|
|
||||||
|
# [5.7.0](https://github.com/mob-sakai/UIEffect/compare/5.6.4...5.7.0) (2025-04-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* colors appeared darker when alpha was low ([21172f3](https://github.com/mob-sakai/UIEffect/commit/21172f37c21792906ac9e33827c771d388397653))
|
||||||
|
* shrink shader variants for color filters ([7f60a56](https://github.com/mob-sakai/UIEffect/commit/7f60a56a9af6b4ecee223b466f1b2499af0194f4))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* `UIEffectReplica.flip` has been deprecated ([6af34e2](https://github.com/mob-sakai/UIEffect/commit/6af34e2994378fd33025b41fe08898b552aa08ab))
|
||||||
|
* add `GradationIntensity` and `GradationColorFilter` properties ([a6781b9](https://github.com/mob-sakai/UIEffect/commit/a6781b92899c38f49eccfebf4173028955a5aced))
|
||||||
|
* calculate the normalized position on the shader side ([01bbeed](https://github.com/mob-sakai/UIEffect/commit/01bbeedde7cf2d757d6d295475f0ad9acd24dce3)), closes [#323](https://github.com/mob-sakai/UIEffect/issues/323) [#324](https://github.com/mob-sakai/UIEffect/issues/324)
|
||||||
|
* ShaderGraph support ([2dd2e26](https://github.com/mob-sakai/UIEffect/commit/2dd2e261666b611be3a1fd5ac112db34fd99038e)), closes [#326](https://github.com/mob-sakai/UIEffect/issues/326)
|
||||||
|
|
||||||
|
## [5.6.4](https://github.com/mob-sakai/UIEffect/compare/5.6.3...5.6.4) (2025-04-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* avoid potential allocations ([26da24d](https://github.com/mob-sakai/UIEffect/commit/26da24dbc4022dcd71e7a58e5f02a6922ba2ddff))
|
||||||
|
* optional shaders do not support all shader combinations ([6014ab5](https://github.com/mob-sakai/UIEffect/commit/6014ab54d010872f8fee63fc961ac5ab2edd08e1))
|
||||||
|
|
||||||
|
## [5.6.3](https://github.com/mob-sakai/UIEffect/compare/5.6.2...5.6.3) (2025-04-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix a potential `ArgumentOutOfRangeException` that could occur when changing the FontAsset in TextMeshPro ([3b095bc](https://github.com/mob-sakai/UIEffect/commit/3b095bcebd8b1264c373b8b71c27d3c35f673f3b)), closes [#327](https://github.com/mob-sakai/UIEffect/issues/327)
|
||||||
|
|
||||||
|
## [5.6.2](https://github.com/mob-sakai/UIEffect/compare/5.6.1...5.6.2) (2025-04-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix a potential `ArgumentOutOfRangeException` that could occur when changing the FontAsset in TextMeshPro ([909281c](https://github.com/mob-sakai/UIEffect/commit/909281c66b702d8497e9f847c91b688716b9c6a7)), closes [#327](https://github.com/mob-sakai/UIEffect/issues/327)
|
||||||
|
* Remove unnecessary vertex expansion ([974e3e8](https://github.com/mob-sakai/UIEffect/commit/974e3e8769d456c5cdd8eb1767a7cf57ab4d52fc))
|
||||||
|
* undo now works correctly after clicking the 'Clear' button in the inspector ([75ed355](https://github.com/mob-sakai/UIEffect/commit/75ed355e27faf8962390eb6788e1887ffd1b5f89))
|
||||||
|
|
||||||
|
## [5.6.1](https://github.com/mob-sakai/UIEffect/compare/5.6.0...5.6.1) (2025-03-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* changes were not correctly marked as dirty when loading presets ([76be0fc](https://github.com/mob-sakai/UIEffect/commit/76be0fc860c27b89235b7fb9a766dcc38b3d9924))
|
||||||
|
|
||||||
|
# [5.6.0](https://github.com/mob-sakai/UIEffect/compare/5.5.3...5.6.0) (2025-03-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix edge detection ([9462170](https://github.com/mob-sakai/UIEffect/commit/946217069f10714798070481d8576f5470e243db))
|
||||||
|
* fix project settings icon ([202601c](https://github.com/mob-sakai/UIEffect/commit/202601c96d6fb564ee5d6b8868b0ff0a8dba0ba1))
|
||||||
|
* the strength of ColorGlow, TransitionColorGlow, and ShadowColorGlow now changes according to intensity ([aa4ec8d](https://github.com/mob-sakai/UIEffect/commit/aa4ec8d9c449bfe361aa277e25cbb389e0daa983)), closes [#316](https://github.com/mob-sakai/UIEffect/issues/316)
|
||||||
|
* UIEffect with TextMeshPro SubMeshUI appears black in the editor when saving assets ([de91871](https://github.com/mob-sakai/UIEffect/commit/de918718d062979c8e9b4202b6b2ae389ae10bab))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* `TransitionAutoPlaySpeed`, `TransitionTexSpeed`, and `EdgeShinyAutoPlaySpeed` are previewed only when the object is selected in edit mode ([952a94f](https://github.com/mob-sakai/UIEffect/commit/952a94f50b3ae4279a48b03d019f341e46b2f5b7)), closes [#319](https://github.com/mob-sakai/UIEffect/issues/319)
|
||||||
|
* add 'Flip' feature ([def49c3](https://github.com/mob-sakai/UIEffect/commit/def49c34f5b963c8b0cce6fb8cace3f7d93b5a1e))
|
||||||
|
* add `Detail Filter` feature ([3e2c5c1](https://github.com/mob-sakai/UIEffect/commit/3e2c5c1613d9a2c08487d94c4eef28f066f2eb7b))
|
||||||
|
* add `EdgeColorGlow` option ([53db1e6](https://github.com/mob-sakai/UIEffect/commit/53db1e62546384f04b9c526df2623c4598dd34bf))
|
||||||
|
* add `onChangeRate` event for UIEffectTweener ([8ad57c8](https://github.com/mob-sakai/UIEffect/commit/8ad57c828ef4f1d7df6dd22c1edb7af3efa04d75)), closes [#321](https://github.com/mob-sakai/UIEffect/issues/321)
|
||||||
|
* add `TransitionTexSpeed` option ([6b8dc5e](https://github.com/mob-sakai/UIEffect/commit/6b8dc5ec338590d909511eba3bb1b2e0ec6627f3))
|
||||||
|
* add a tool that automatically fixes shaders when 'TextMeshPro Essential Resources' are located in a non-default path ([8388d59](https://github.com/mob-sakai/UIEffect/commit/8388d590457755cda0699835b37b5bf0673c4386))
|
||||||
|
* add built-in presets ([3db94e0](https://github.com/mob-sakai/UIEffect/commit/3db94e00f83195ff90d26ee270c7984825fa22b7))
|
||||||
|
* add shaders for TextMeshPro Overlay/SSD ([51cd6d8](https://github.com/mob-sakai/UIEffect/commit/51cd6d8525a12581c8afd4ab5d16e5968e15c8fe))
|
||||||
|
* Allow specifying a preset as the target for `UIEffectReplica` ([cb0e8d2](https://github.com/mob-sakai/UIEffect/commit/cb0e8d283bb8f9085d4910051b5ae0b77368db76))
|
||||||
|
* custom transform for transition and gradation ([045db9c](https://github.com/mob-sakai/UIEffect/commit/045db9c3b79234cd12bdfb4ea52898b7d86240af))
|
||||||
|
* expose color subfields as float-type public properties ([396d06f](https://github.com/mob-sakai/UIEffect/commit/396d06f774e10adee84d06156a7fc8723d986bbd)), closes [#321](https://github.com/mob-sakai/UIEffect/issues/321)
|
||||||
|
* load presets partially and append to existing instance ([6542543](https://github.com/mob-sakai/UIEffect/commit/654254342265fc239804e60a64d01b80076e5e8e))
|
||||||
|
* separate reverse curve for UIEffectTweener ([2540b75](https://github.com/mob-sakai/UIEffect/commit/2540b75349af92f1359433e73ffa3b5400479b02)), closes [#312](https://github.com/mob-sakai/UIEffect/issues/312)
|
||||||
|
* support `SoftMaskForUGUI ` package with `UIEffect` ([65457e2](https://github.com/mob-sakai/UIEffect/commit/65457e263644c36cd772ad1f42fb9fb3f84ab753)), closes [#270](https://github.com/mob-sakai/UIEffect/issues/270)
|
||||||
|
* support UIFlip as v4 compatible component ([e965b9e](https://github.com/mob-sakai/UIEffect/commit/e965b9e9ab33dcfab067542abf2f19bc1d5243fc)), closes [#322](https://github.com/mob-sakai/UIEffect/issues/322)
|
||||||
|
* update demo sample ([abc9a41](https://github.com/mob-sakai/UIEffect/commit/abc9a4184c4aeac85287a882d174f9cdc2c28c04)), closes [#318](https://github.com/mob-sakai/UIEffect/issues/318) [#320](https://github.com/mob-sakai/UIEffect/issues/320)
|
||||||
|
|
||||||
|
## [5.5.3](https://github.com/mob-sakai/UIEffect/compare/5.5.2...5.5.3) (2025-03-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* blur with 'Filled' Image type may cause error ([f0a7642](https://github.com/mob-sakai/UIEffect/commit/f0a76424e690355c101cc2e12183d1a7e77b16c3)), closes [#313](https://github.com/mob-sakai/UIEffect/issues/313)
|
||||||
|
* IL2CPP build fails on older versions of Unity ([1af89af](https://github.com/mob-sakai/UIEffect/commit/1af89af2c58320f67b8d753767b3b4cf905f844d)), closes [#315](https://github.com/mob-sakai/UIEffect/issues/315)
|
||||||
|
|
||||||
|
## [5.5.2](https://github.com/mob-sakai/UIEffect/compare/5.5.1...5.5.2) (2025-02-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* `PlayOnEnable.Reverse` in UIEffectTweener does not work ([3f5a7dc](https://github.com/mob-sakai/UIEffect/commit/3f5a7dcd2d8248b9e47fb9d38c083f26b798e063)), closes [#310](https://github.com/mob-sakai/UIEffect/issues/310)
|
||||||
|
* `TransitionFilter` and `GradationMode` do not work correctly when the initial scale is 0 ([bdbf293](https://github.com/mob-sakai/UIEffect/commit/bdbf293c1489c0b248078969b37ec66890620d44)), closes [#311](https://github.com/mob-sakai/UIEffect/issues/311)
|
||||||
|
* component icons will no longer be displayed in the scene view (Unity 2021.2 or later) ([40ff828](https://github.com/mob-sakai/UIEffect/commit/40ff828ff0697dc8f6597cfcf094cc63532a19dd))
|
||||||
|
* fix potential issues ([a748adf](https://github.com/mob-sakai/UIEffect/commit/a748adf1bde5e400fcc84ec902a1438867105f75))
|
||||||
|
* reset time button does not work correctly in the inspector when `UIEffectTweener.direction=Reverse` in the editor ([8513970](https://github.com/mob-sakai/UIEffect/commit/8513970e6f71d393430a573bfb0207428998bee1)), closes [#310](https://github.com/mob-sakai/UIEffect/issues/310)
|
||||||
|
|
||||||
|
## [5.5.1](https://github.com/mob-sakai/UIEffect/compare/5.5.0...5.5.1) (2025-02-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix v4 compatible components ([6f6a8c9](https://github.com/mob-sakai/UIEffect/commit/6f6a8c95f878a290b1c4238cd0519f14febc04b6))
|
||||||
|
* fully visible when the transition rate is set to 1 ([0a99bb7](https://github.com/mob-sakai/UIEffect/commit/0a99bb7765443a84070e19c9ea0096808442932e)), closes [#309](https://github.com/mob-sakai/UIEffect/issues/309)
|
||||||
|
* UIEffect with TextMeshPro appears black in the editor when saving scene ([8cbcd76](https://github.com/mob-sakai/UIEffect/commit/8cbcd765ed9e11c38e3257191c2fc7dcd2c9916e))
|
||||||
|
|
||||||
|
# [5.5.0](https://github.com/mob-sakai/UIEffect/compare/5.4.0...5.5.0) (2025-02-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add `GradationMode.Diagonal` with 4 colors ([b72a1c0](https://github.com/mob-sakai/UIEffect/commit/b72a1c05c6d1d7b3c0aa11582d4a97da80d7fce9)), closes [#308](https://github.com/mob-sakai/UIEffect/issues/308)
|
||||||
|
* add built-in presets ([8930b56](https://github.com/mob-sakai/UIEffect/commit/8930b563cb580463e2265483ccd3a42cb84e644b))
|
||||||
|
|
||||||
|
# [5.4.0](https://github.com/mob-sakai/UIEffect/compare/5.3.4...5.4.0) (2025-02-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* gradient color is not updated when calling the `SetGradientKeys` method ([a959fdd](https://github.com/mob-sakai/UIEffect/commit/a959fddd34a93dd0846369938b1cb6be514eee2d))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* tweener supports `EdgeMode.Shiny` ([32558d4](https://github.com/mob-sakai/UIEffect/commit/32558d4481de31ed9020c82861dc2a2d8ca7d53c)), closes [#307](https://github.com/mob-sakai/UIEffect/issues/307)
|
||||||
|
|
||||||
|
## [5.3.4](https://github.com/mob-sakai/UIEffect/compare/5.3.3...5.3.4) (2025-02-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* UIEffect v5.3.3 with TextMeshPro is not working in play mode in editor ([365c43e](https://github.com/mob-sakai/UIEffect/commit/365c43e21dcaaff349cf1362f9bd25b7deb163f7)), closes [#306](https://github.com/mob-sakai/UIEffect/issues/306)
|
||||||
|
|
||||||
|
## [5.3.3](https://github.com/mob-sakai/UIEffect/compare/5.3.2...5.3.3) (2025-02-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* when modifying TextMeshPro vertices, element disapear ([7529a7c](https://github.com/mob-sakai/UIEffect/commit/7529a7c4cd8db27a6d3312bce0a6ed6b13e40f35)), closes [#305](https://github.com/mob-sakai/UIEffect/issues/305)
|
||||||
|
|
||||||
|
## [5.3.2](https://github.com/mob-sakai/UIEffect/compare/5.3.1...5.3.2) (2025-02-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* some effects are not working correctly for TextMeshProUGUI in Unity 6 ([63de374](https://github.com/mob-sakai/UIEffect/commit/63de3742ecd7fcdcaa8dcca8dc104c7288291211))
|
||||||
|
|
||||||
|
## [5.3.1](https://github.com/mob-sakai/UIEffect/compare/5.3.0...5.3.1) (2025-01-27)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* shader keywords for UIEfect are not recognized in Unity 6 ([fd39abf](https://github.com/mob-sakai/UIEffect/commit/fd39abf5a71138919f8feee587576ba187075304)), closes [#301](https://github.com/mob-sakai/UIEffect/issues/301)
|
||||||
|
|
||||||
|
# [5.3.0](https://github.com/mob-sakai/UIEffect/compare/5.2.4...5.3.0) (2025-01-26)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* `SamplingFilter.EdgeAlpha` and `SamplingFilter.EdgeLuminance` now support the `Sampling Width` property for edge width ([33b1177](https://github.com/mob-sakai/UIEffect/commit/33b1177815b935a887c5a8918748cbeafec32b6b))
|
||||||
|
* add `EdgeMode` feature ([eadb477](https://github.com/mob-sakai/UIEffect/commit/eadb477bcd91f8909bfa7b8976241411363ee12c))
|
||||||
|
* add `ResetOnEnable` option for `UIEffectTweener` ([e326bb7](https://github.com/mob-sakai/UIEffect/commit/e326bb77537b921df775646142105a490ae54851)), closes [#299](https://github.com/mob-sakai/UIEffect/issues/299)
|
||||||
|
* add `TransitionAutoSpeed` property ([7a765c3](https://github.com/mob-sakai/UIEffect/commit/7a765c32d87f6dfbdb990d5b3a272dd80696b374))
|
||||||
|
* add `TransitionFilter.Pattern` feature ([b57e98b](https://github.com/mob-sakai/UIEffect/commit/b57e98b64c61a7c7eb3ca97f3bd7e909956ee469))
|
||||||
|
|
||||||
|
## [5.2.4](https://github.com/mob-sakai/UIEffect/compare/5.2.3...5.2.4) (2025-01-26)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* properties may not update correctly when changed via code or animation ([5994f88](https://github.com/mob-sakai/UIEffect/commit/5994f8875ed2280e5c863c30f9c7900d4dce70ed)), closes [#300](https://github.com/mob-sakai/UIEffect/issues/300)
|
||||||
|
|
||||||
|
## [5.2.3](https://github.com/mob-sakai/UIEffect/compare/5.2.2...5.2.3) (2025-01-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* `SamplingFilter.None` now correctly respects the sampling scale setting ([bc1578b](https://github.com/mob-sakai/UIEffect/commit/bc1578b0ca91b830b976bf200d387d0ac6963ae6))
|
||||||
|
* fix the shadow mode inspector in editor ([da53585](https://github.com/mob-sakai/UIEffect/commit/da535854ccbeeb98b2556423425d39058bd5f479))
|
||||||
|
* UIEffect may not work correctly when using `FallbackAtlas` with TextMeshProUGUI ([d3779f9](https://github.com/mob-sakai/UIEffect/commit/d3779f9f57d0410fa4526527ebed30885bfbc2dd)), closes [#298](https://github.com/mob-sakai/UIEffect/issues/298)
|
||||||
|
|
||||||
|
## [5.2.2](https://github.com/mob-sakai/UIEffect/compare/5.2.1...5.2.2) (2025-01-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* in Unity 6, `Shadow Color` has no effect on TextMeshPro ([6e4d4ab](https://github.com/mob-sakai/UIEffect/commit/6e4d4ab03db786e4c28d0f2c57d9e58655c5d029)), closes [#297](https://github.com/mob-sakai/UIEffect/issues/297)
|
||||||
|
|
||||||
|
## [5.2.1](https://github.com/mob-sakai/UIEffect/compare/5.2.0...5.2.1) (2025-01-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* shadow color being transparent at maximum `Shadow Fade` ([1d849e5](https://github.com/mob-sakai/UIEffect/commit/1d849e54cb57218a67afc2f8ad36d345bfdd0f74)), closes [#296](https://github.com/mob-sakai/UIEffect/issues/296)
|
||||||
|
* TextMeshPro is not displayed in prefab mode ([2b44837](https://github.com/mob-sakai/UIEffect/commit/2b44837bb9c93e1cc817a2c1cd112b244cd09391)), closes [#295](https://github.com/mob-sakai/UIEffect/issues/295)
|
||||||
|
* TextMeshProUGUI disappears when the Y-axis scale is changed ([8159c09](https://github.com/mob-sakai/UIEffect/commit/8159c091e8a6805a7781046ae0f660a3be13862c)), closes [#295](https://github.com/mob-sakai/UIEffect/issues/295)
|
||||||
|
|
||||||
|
# [5.2.0](https://github.com/mob-sakai/UIEffect/compare/5.1.0...5.2.0) (2025-01-07)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* `Gradation` properties do not update when a preset is loaded ([edf6943](https://github.com/mob-sakai/UIEffect/commit/edf694313f101b66f760bca64593fb87037dcb3d)), closes [#291](https://github.com/mob-sakai/UIEffect/issues/291)
|
||||||
|
* an error occurs when saving a preset ([894c561](https://github.com/mob-sakai/UIEffect/commit/894c5610d044f211067037b6c69f9860ac496ffc)), closes [#293](https://github.com/mob-sakai/UIEffect/issues/293)
|
||||||
|
* fix gradation gradient edge (angle gradient) ([0ef6027](https://github.com/mob-sakai/UIEffect/commit/0ef60273714c7b68131f2f0d233b16335a5cd367))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* `Angle Gradient` gradation supports fixed mode gradient ([7cb8325](https://github.com/mob-sakai/UIEffect/commit/7cb8325e445350d2175865f736186f719e1cbe00))
|
||||||
|
* `Angle Gradient` gradation supports RectTransform pivot ([2f63adf](https://github.com/mob-sakai/UIEffect/commit/2f63adfba057bec7f8183a5b34654cdf84163a34))
|
||||||
|
* add `Use HDR Color Picker` option for project settings (editor) ([1be0cd4](https://github.com/mob-sakai/UIEffect/commit/1be0cd45db952d05e51d508c58f65a6541df9de0)), closes [#290](https://github.com/mob-sakai/UIEffect/issues/290)
|
||||||
|
* the `Allow To Modify Mesh Shape` property should remain unchanged when loading a preset ([f7175c0](https://github.com/mob-sakai/UIEffect/commit/f7175c037371278eb7a0c7883cffccb5c31dba0a)), closes [#294](https://github.com/mob-sakai/UIEffect/issues/294)
|
||||||
|
* the `Sampling Scale` property should remain unchanged when loading a preset ([238a17d](https://github.com/mob-sakai/UIEffect/commit/238a17d57ddf1f6b859ce830e80a1be6c3d739f1)), closes [#292](https://github.com/mob-sakai/UIEffect/issues/292)
|
||||||
|
|
||||||
|
# [5.1.0](https://github.com/mob-sakai/UIEffect/compare/5.0.2...5.1.0) (2024-12-31)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* changing the `shadowMirrorScale` property via code does not update the effect ([d9bf0e1](https://github.com/mob-sakai/UIEffect/commit/d9bf0e12fe918fc36120be3e1df2acbb00b1762b))
|
||||||
|
* fix reverse direction mode for UIEffectTweener ([54825ee](https://github.com/mob-sakai/UIEffect/commit/54825eedc8070e74fc276e1e08ea0073cf265189)), closes [#281](https://github.com/mob-sakai/UIEffect/issues/281) [#282](https://github.com/mob-sakai/UIEffect/issues/282) [#283](https://github.com/mob-sakai/UIEffect/issues/283)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add `Color Glow`, `Transition Color Glow` and `Shadow Color Glow` options ([e9522d3](https://github.com/mob-sakai/UIEffect/commit/e9522d3f0e3bc0c429ef32f240625e903ca790ee))
|
||||||
|
* add `GradationMode.Angle` and `GradationMode.AngleGradient` ([08e9ba7](https://github.com/mob-sakai/UIEffect/commit/08e9ba73d78ba52502a6e795587441061377cd99))
|
||||||
|
* add `OnComplete` event for UIEffectTweener ([aeb78ed](https://github.com/mob-sakai/UIEffect/commit/aeb78ed577d70c47aacd754ea2aa3916e6e49c1b)), closes [#289](https://github.com/mob-sakai/UIEffect/issues/289) [#188](https://github.com/mob-sakai/UIEffect/issues/188)
|
||||||
|
* add `PlayOnEnable` option for UIEffectTweener ([1558736](https://github.com/mob-sakai/UIEffect/commit/155873669d77fc3281caaa0fc9f861e62aa489f2))
|
||||||
|
* add `SamplingScale` option ([2b43bc4](https://github.com/mob-sakai/UIEffect/commit/2b43bc42d4a9e0a1c224139ccf91f7a6f76656fc)), closes [#269](https://github.com/mob-sakai/UIEffect/issues/269)
|
||||||
|
* add `Shadow Color` and `Shadow Blur` options ([d0a3ca6](https://github.com/mob-sakai/UIEffect/commit/d0a3ca60904c0eebf63178a0fb899bb17ecefe75))
|
||||||
|
* add a button to swap gradation colors (editor) ([20a6ca0](https://github.com/mob-sakai/UIEffect/commit/20a6ca0815aaa899934fde318beecc1dde5e1132))
|
||||||
|
* add option to not automatically plays tweener effect ([88609f5](https://github.com/mob-sakai/UIEffect/commit/88609f5e368e38224a698270113b4f3190580a19))
|
||||||
|
* automatically display a dialog to import TextMeshPro support ([f2df188](https://github.com/mob-sakai/UIEffect/commit/f2df1889d152ae68926067978c60b4810fdef3f1))
|
||||||
|
* gradation feature ([bbe57df](https://github.com/mob-sakai/UIEffect/commit/bbe57df7a0a184793bd6d98a2b929055f69860b3)), closes [#277](https://github.com/mob-sakai/UIEffect/issues/277) [#66](https://github.com/mob-sakai/UIEffect/issues/66)
|
||||||
|
* on-demand UIEffect shader support ([bdd8e08](https://github.com/mob-sakai/UIEffect/commit/bdd8e0857235c56b7013fe768a333c5575aaa0ef)), closes [#212](https://github.com/mob-sakai/UIEffect/issues/212) [#271](https://github.com/mob-sakai/UIEffect/issues/271)
|
||||||
|
* support `TextMeshPro/Bitmap` and `TextMeshPro/Mobile/Bitmap` shaders. ([23ac398](https://github.com/mob-sakai/UIEffect/commit/23ac3985d2a2d9497b2d50b3755be671f3a07aa9)), closes [#284](https://github.com/mob-sakai/UIEffect/issues/284)
|
||||||
|
* support non full-rect graphics for some effect ([a66baea](https://github.com/mob-sakai/UIEffect/commit/a66baea1e8d895c424ba3dc1fce64f969d79561e))
|
||||||
|
* UIEffectTweener animation preview in edit mode ([e17b4a0](https://github.com/mob-sakai/UIEffect/commit/e17b4a0bfd262dc22ad2a13af5b0571b43a74abd)), closes [#279](https://github.com/mob-sakai/UIEffect/issues/279)
|
||||||
|
|
||||||
|
## [5.0.2](https://github.com/mob-sakai/UIEffect/compare/5.0.1...5.0.2) (2024-12-24)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* incorrect transparency when applying the shiny filter to TextMeshProUGUI ([f74279f](https://github.com/mob-sakai/UIEffect/commit/f74279fb8353226b494f00582ed5eb7fe87d147f)), closes [#287](https://github.com/mob-sakai/UIEffect/issues/287)
|
||||||
|
* TextMeshProUGUI disappears when the Y-axis scale is changed ([9d98c5d](https://github.com/mob-sakai/UIEffect/commit/9d98c5d3e1c6ead8e3312a7e3a36fe89b38aed68)), closes [#286](https://github.com/mob-sakai/UIEffect/issues/286)
|
||||||
|
|
||||||
|
## [5.0.1](https://github.com/mob-sakai/UIEffect/compare/5.0.0...5.0.1) (2024-12-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* build AssetBundle error ([7374747](https://github.com/mob-sakai/UIEffect/commit/73747478a4e5754891ebd4fd2d54955e82a72eb3))
|
||||||
|
* fix cutoff transition effect ([c893cb0](https://github.com/mob-sakai/UIEffect/commit/c893cb0ce2e90bf13456adbc7d2e0e0642cbac1d))
|
||||||
|
* fix TextMeshPro shader (underlay and bevel) ([f39097a](https://github.com/mob-sakai/UIEffect/commit/f39097a73fc8560a50f848290ce4c5a235b68cac))
|
||||||
|
* TextMeshPro objects appeared as black blocks when saving prefabs in prefab mode ([5889486](https://github.com/mob-sakai/UIEffect/commit/5889486f18afde6dec203bbe4aaca45760a9dce1)), closes [#285](https://github.com/mob-sakai/UIEffect/issues/285)
|
||||||
|
|
||||||
# [5.0.0](https://github.com/mob-sakai/UIEffect/compare/4.0.0...5.0.0) (2024-11-11)
|
# [5.0.0](https://github.com/mob-sakai/UIEffect/compare/4.0.0...5.0.0) (2024-11-11)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,9 @@
|
|||||||
"rootNamespace": "",
|
"rootNamespace": "",
|
||||||
"references": [
|
"references": [
|
||||||
"GUID:6055be8ebefd69e48b49212b09b47b2f",
|
"GUID:6055be8ebefd69e48b49212b09b47b2f",
|
||||||
"GUID:735c8f008d0ad4caa9cdc4306f1c3042"
|
"GUID:735c8f008d0ad4caa9cdc4306f1c3042",
|
||||||
|
"GUID:f06555f75b070af458a003d92f9efb00",
|
||||||
|
"GUID:02f771204943f4a40949438e873e3eff"
|
||||||
],
|
],
|
||||||
"includePlatforms": [
|
"includePlatforms": [
|
||||||
"Editor"
|
"Editor"
|
||||||
@@ -24,6 +26,11 @@
|
|||||||
"name": "com.unity.ugui",
|
"name": "com.unity.ugui",
|
||||||
"expression": "2.0.0",
|
"expression": "2.0.0",
|
||||||
"define": "TMP_ENABLE"
|
"define": "TMP_ENABLE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "com.unity.timeline",
|
||||||
|
"expression": "1.0.0",
|
||||||
|
"define": "TIMELINE_ENABLE"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"noEngineReferences": false
|
"noEngineReferences": false
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,35 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEditor.Build;
|
||||||
|
using UnityEditor.Rendering;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.Rendering;
|
||||||
|
using PackageInfo = UnityEditor.PackageManager.PackageInfo;
|
||||||
|
|
||||||
|
namespace Coffee.UIEffects.Editors
|
||||||
|
{
|
||||||
|
internal class RemoveSoftMaskableVariantsIfNeeded : IPreprocessShaders
|
||||||
|
{
|
||||||
|
public int callbackOrder => 1;
|
||||||
|
|
||||||
|
// Remove the 'SOFTMASKABLE' variants if 'SoftMaskForUGUI' package is not installed.
|
||||||
|
public void OnProcessShader(Shader shader, ShaderSnippetData snippet, IList<ShaderCompilerData> data)
|
||||||
|
{
|
||||||
|
// If the shader is not for UIEffect: skip.
|
||||||
|
if (!shader.name.EndsWith(" (UIEffect)")) return;
|
||||||
|
|
||||||
|
// If the 'SoftMaskForUGUI' package is installed: skip.
|
||||||
|
if (PackageInfo.FindForAssetPath("Packages/com.coffee.softmask-for-ugui/package.json") != null) return;
|
||||||
|
|
||||||
|
// Remove the 'SOFTMASKABLE' variants.
|
||||||
|
var softMaskable = new ShaderKeyword(shader, "SOFTMASKABLE");
|
||||||
|
for (var i = data.Count - 1; i >= 0; i--)
|
||||||
|
{
|
||||||
|
var d = data[i];
|
||||||
|
if (d.shaderKeywordSet.IsEnabled(softMaskable))
|
||||||
|
{
|
||||||
|
data.RemoveAt(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e42595bbbad4941a686a82e328aa266b
|
||||||
|
timeCreated: 1487152293
|
||||||
|
licenseType: Pro
|
||||||
|
MonoImporter:
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3150c4c70d45b46d389368100b181ee4
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,183 @@
|
|||||||
|
#if TIMELINE_ENABLE
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEditor.Timeline;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.Timeline;
|
||||||
|
|
||||||
|
namespace Coffee.UIEffects.Timeline
|
||||||
|
{
|
||||||
|
public abstract class UIEffectClipEditor : ClipEditor
|
||||||
|
{
|
||||||
|
public override void DrawBackground(TimelineClip clip, ClipBackgroundRegion region)
|
||||||
|
{
|
||||||
|
var director = TimelineEditor.inspectedDirector;
|
||||||
|
if (!director) return;
|
||||||
|
|
||||||
|
var viewDuration = region.endTime - region.startTime;
|
||||||
|
var inDuration = (float)Math.Max(clip.easeInDuration, clip.blendInDuration);
|
||||||
|
var outDuration = (float)Math.Max(clip.easeOutDuration, clip.blendOutDuration);
|
||||||
|
inDuration = 0 < inDuration ? Mathf.Max(inDuration - (float)region.startTime, 0) : 0f;
|
||||||
|
outDuration = 0 < outDuration ? Mathf.Max(outDuration - (float)(clip.duration - region.endTime), 0) : 0f;
|
||||||
|
|
||||||
|
var p = region.position;
|
||||||
|
p.x += p.width * (float)(inDuration / viewDuration);
|
||||||
|
p.width -= p.width * (float)((inDuration + outDuration) / viewDuration);
|
||||||
|
|
||||||
|
DrawBackground(p, clip);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnCreate(TimelineClip clip, TrackAsset track, TimelineClip clonedFrom)
|
||||||
|
{
|
||||||
|
clip.displayName = ObjectNames.NicifyVariableName(track.GetType().Name.Replace("Track", ""));
|
||||||
|
if (clip.asset is UIEffectClip uiEffectClip)
|
||||||
|
{
|
||||||
|
uiEffectClip.timelineClip = clip;
|
||||||
|
}
|
||||||
|
|
||||||
|
var floatClip = clip.asset as UIEffectFloatClip;
|
||||||
|
if (floatClip)
|
||||||
|
{
|
||||||
|
if (track is GradationRotationTrack || track is GradationOffsetTrack)
|
||||||
|
{
|
||||||
|
floatClip.m_Data.m_From = 0f;
|
||||||
|
floatClip.m_Data.m_Value = 0f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected abstract void DrawBackground(Rect rect, TimelineClip clip);
|
||||||
|
}
|
||||||
|
|
||||||
|
[CustomTimelineEditor(typeof(UIEffectFloatClip))]
|
||||||
|
public class UIEffectFloatClipEditor : UIEffectClipEditor
|
||||||
|
{
|
||||||
|
private static GUIStyle s_FromStyle;
|
||||||
|
private static GUIStyle s_ToStyle;
|
||||||
|
|
||||||
|
protected override void DrawBackground(Rect rect, TimelineClip clip)
|
||||||
|
{
|
||||||
|
var asset = clip.asset as UIEffectFloatClip;
|
||||||
|
if (!asset) return;
|
||||||
|
|
||||||
|
if (s_FromStyle == null)
|
||||||
|
{
|
||||||
|
s_FromStyle = new GUIStyle(GUI.skin.label) { alignment = TextAnchor.UpperLeft, fontSize = 9 };
|
||||||
|
s_ToStyle = new GUIStyle(GUI.skin.label) { alignment = TextAnchor.UpperRight, fontSize = 9 };
|
||||||
|
}
|
||||||
|
|
||||||
|
var d = asset.m_Data;
|
||||||
|
if (d.m_Tween)
|
||||||
|
{
|
||||||
|
DrawLabelWithShadow(rect, asset.m_Data.m_From.ToString("F2"), s_FromStyle);
|
||||||
|
DrawLabelWithShadow(rect, asset.m_Data.m_Value.ToString("F2"), s_ToStyle);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DrawLabelWithShadow(rect, asset.m_Data.m_Value.ToString("F2"), s_FromStyle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void DrawLabelWithShadow(Rect position, string text, GUIStyle style)
|
||||||
|
{
|
||||||
|
GUI.color = Color.black;
|
||||||
|
EditorGUI.LabelField(position, text, style);
|
||||||
|
GUI.color = Color.white;
|
||||||
|
position.x -= 1f;
|
||||||
|
position.y -= 1f;
|
||||||
|
EditorGUI.LabelField(position, text, style);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[CustomTimelineEditor(typeof(UIEffectColorClip))]
|
||||||
|
public class UIEffectColorClipEditor : UIEffectClipEditor
|
||||||
|
{
|
||||||
|
protected override void DrawBackground(Rect p, TimelineClip clip)
|
||||||
|
{
|
||||||
|
var asset = clip.asset as UIEffectColorClip;
|
||||||
|
if (!asset) return;
|
||||||
|
|
||||||
|
var d = asset.m_Data;
|
||||||
|
if (d.m_Tween)
|
||||||
|
{
|
||||||
|
EditorGUIUtility.DrawColorSwatch(new Rect(p.x + 2, p.y, 8, 8), d.m_From);
|
||||||
|
EditorGUIUtility.DrawColorSwatch(new Rect(p.x + p.width - 8, p.y, 8, 8), d.m_Value);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
EditorGUIUtility.DrawColorSwatch(new Rect(p.x + 2, p.y, 8, 8), d.m_Value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[CustomEditor(typeof(UIEffectClip<>), true)]
|
||||||
|
public class UIEffectClipAssetEditor : Editor
|
||||||
|
{
|
||||||
|
private SerializedProperty _tween;
|
||||||
|
private SerializedProperty _from;
|
||||||
|
private SerializedProperty _curve;
|
||||||
|
private SerializedProperty _value;
|
||||||
|
private FloatClipUsageAttribute _floatUsage;
|
||||||
|
private ColorClipUsageAttribute _colorUsage;
|
||||||
|
private GUIContent _label;
|
||||||
|
|
||||||
|
private void OnEnable()
|
||||||
|
{
|
||||||
|
var data = serializedObject.FindProperty("m_Data");
|
||||||
|
_tween = data.FindPropertyRelative("m_Tween");
|
||||||
|
_from = data.FindPropertyRelative("m_From");
|
||||||
|
_curve = data.FindPropertyRelative("m_Curve");
|
||||||
|
_value = data.FindPropertyRelative("m_Value");
|
||||||
|
|
||||||
|
var clip = target as UIEffectClip;
|
||||||
|
var type = clip.timelineClip.GetParentTrack().GetType();
|
||||||
|
_floatUsage = type.GetCustomAttribute<FloatClipUsageAttribute>();
|
||||||
|
_colorUsage = type.GetCustomAttribute<ColorClipUsageAttribute>();
|
||||||
|
_label = new GUIContent(ObjectNames.NicifyVariableName(type.Name).Replace(" Track", ""));
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnInspectorGUI()
|
||||||
|
{
|
||||||
|
serializedObject.Update();
|
||||||
|
EditorGUILayout.PropertyField(_tween);
|
||||||
|
|
||||||
|
if (_tween.boolValue)
|
||||||
|
{
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
DrawProperty(_from, EditorGUIUtility.TrTempContent("From"));
|
||||||
|
EditorGUILayout.PropertyField(_curve);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
DrawProperty(_value, _label);
|
||||||
|
serializedObject.ApplyModifiedProperties();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DrawProperty(SerializedProperty property, GUIContent label)
|
||||||
|
{
|
||||||
|
if (_floatUsage != null)
|
||||||
|
{
|
||||||
|
EditorGUILayout.Slider(property, _floatUsage.min, _floatUsage.max, label);
|
||||||
|
}
|
||||||
|
else if (property.propertyType == SerializedPropertyType.Color)
|
||||||
|
{
|
||||||
|
var hdr = UIEffectProjectSettings.useHdrColorPicker;
|
||||||
|
var alpha = _colorUsage?.alpha ?? true;
|
||||||
|
|
||||||
|
EditorGUI.BeginChangeCheck();
|
||||||
|
var color = EditorGUILayout.ColorField(label, property.colorValue, true, alpha, hdr);
|
||||||
|
if (EditorGUI.EndChangeCheck())
|
||||||
|
{
|
||||||
|
property.colorValue = color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(property, label);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3d108727fec4d48d28c1609b01a3a8c6
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -3,9 +3,6 @@ using UnityEngine;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System;
|
using System;
|
||||||
using Object = UnityEngine.Object;
|
using Object = UnityEngine.Object;
|
||||||
#if TMP_ENABLE
|
|
||||||
using TMPro;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace Coffee.UIEffects.Editors
|
namespace Coffee.UIEffects.Editors
|
||||||
{
|
{
|
||||||
@@ -14,306 +11,134 @@ namespace Coffee.UIEffects.Editors
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[CustomEditor(typeof(UIEffect), true)]
|
[CustomEditor(typeof(UIEffect), true)]
|
||||||
[CanEditMultipleObjects]
|
[CanEditMultipleObjects]
|
||||||
public class UIEffect2Editor : Editor
|
public class UIEffectEditor : UIEffectPropertyEditor
|
||||||
{
|
{
|
||||||
private SerializedProperty _toneFilter;
|
private class UIEffectEditorSettings : ScriptableSingleton<UIEffectEditorSettings>
|
||||||
private SerializedProperty _toneIntensity;
|
|
||||||
|
|
||||||
private SerializedProperty _colorFilter;
|
|
||||||
private SerializedProperty _color;
|
|
||||||
private SerializedProperty _colorIntensity;
|
|
||||||
|
|
||||||
private SerializedProperty _samplingFilter;
|
|
||||||
private SerializedProperty _samplingIntensity;
|
|
||||||
|
|
||||||
private SerializedProperty _transitionFilter;
|
|
||||||
private SerializedProperty _transitionRate;
|
|
||||||
private SerializedProperty _transitionTex;
|
|
||||||
private SerializedProperty _transitionTexScale;
|
|
||||||
private SerializedProperty _transitionTexOffset;
|
|
||||||
private SerializedProperty _transitionReverse;
|
|
||||||
private SerializedProperty _transitionRotation;
|
|
||||||
private SerializedProperty _transitionKeepAspectRatio;
|
|
||||||
private SerializedProperty _transitionWidth;
|
|
||||||
private SerializedProperty _transitionSoftness;
|
|
||||||
private SerializedProperty _transitionColorFilter;
|
|
||||||
private SerializedProperty _transitionColor;
|
|
||||||
|
|
||||||
private SerializedProperty _targetMode;
|
|
||||||
private SerializedProperty _targetColor;
|
|
||||||
private SerializedProperty _targetRange;
|
|
||||||
private SerializedProperty _targetSoftness;
|
|
||||||
|
|
||||||
private SerializedProperty _blendType;
|
|
||||||
private SerializedProperty _srcBlendMode;
|
|
||||||
private SerializedProperty _dstBlendMode;
|
|
||||||
|
|
||||||
private SerializedProperty _shadowMode;
|
|
||||||
private SerializedProperty _shadowDistance;
|
|
||||||
private SerializedProperty _shadowDistanceX;
|
|
||||||
private SerializedProperty _shadowDistanceY;
|
|
||||||
private SerializedProperty _shadowIteration;
|
|
||||||
private SerializedProperty _shadowFade;
|
|
||||||
private SerializedProperty _shadowEffectOnOrigin;
|
|
||||||
private SerializedProperty _shadowMirrorScale;
|
|
||||||
|
|
||||||
private void OnEnable()
|
|
||||||
{
|
{
|
||||||
if (target == null) return;
|
public bool m_ExpandOthers = true;
|
||||||
|
}
|
||||||
|
|
||||||
_toneFilter = serializedObject.FindProperty("m_ToneFilter");
|
private SerializedProperty _samplingScale;
|
||||||
_toneIntensity = serializedObject.FindProperty("m_ToneIntensity");
|
private SerializedProperty _allowToModifyMeshShape;
|
||||||
var toneParams = serializedObject.FindProperty("m_ToneParams");
|
private SerializedProperty _customRoot;
|
||||||
|
|
||||||
_colorFilter = serializedObject.FindProperty("m_ColorFilter");
|
private static bool expandOthers
|
||||||
_color = serializedObject.FindProperty("m_Color");
|
{
|
||||||
_colorIntensity = serializedObject.FindProperty("m_ColorIntensity");
|
set => UIEffectEditorSettings.instance.m_ExpandOthers = value;
|
||||||
|
get => UIEffectEditorSettings.instance.m_ExpandOthers;
|
||||||
|
}
|
||||||
|
|
||||||
_samplingFilter = serializedObject.FindProperty("m_SamplingFilter");
|
protected override void OnEnable()
|
||||||
_samplingIntensity = serializedObject.FindProperty("m_SamplingIntensity");
|
{
|
||||||
|
base.OnEnable();
|
||||||
|
|
||||||
_transitionFilter = serializedObject.FindProperty("m_TransitionFilter");
|
_samplingScale = serializedObject.FindProperty("m_SamplingScale");
|
||||||
_transitionRate = serializedObject.FindProperty("m_TransitionRate");
|
_allowToModifyMeshShape = serializedObject.FindProperty("m_AllowToModifyMeshShape");
|
||||||
_transitionTex = serializedObject.FindProperty("m_TransitionTex");
|
_customRoot = serializedObject.FindProperty("m_CustomRoot");
|
||||||
_transitionTexScale = serializedObject.FindProperty("m_TransitionTexScale");
|
|
||||||
_transitionTexOffset = serializedObject.FindProperty("m_TransitionTexOffset");
|
|
||||||
_transitionReverse = serializedObject.FindProperty("m_TransitionReverse");
|
|
||||||
_transitionRotation = serializedObject.FindProperty("m_TransitionRotation");
|
|
||||||
_transitionKeepAspectRatio = serializedObject.FindProperty("m_TransitionKeepAspectRatio");
|
|
||||||
_transitionWidth = serializedObject.FindProperty("m_TransitionWidth");
|
|
||||||
_transitionSoftness = serializedObject.FindProperty("m_TransitionSoftness");
|
|
||||||
_transitionColorFilter = serializedObject.FindProperty("m_TransitionColorFilter");
|
|
||||||
_transitionColor = serializedObject.FindProperty("m_TransitionColor");
|
|
||||||
|
|
||||||
_targetMode = serializedObject.FindProperty("m_TargetMode");
|
|
||||||
_targetColor = serializedObject.FindProperty("m_TargetColor");
|
|
||||||
_targetRange = serializedObject.FindProperty("m_TargetRange");
|
|
||||||
_targetSoftness = serializedObject.FindProperty("m_TargetSoftness");
|
|
||||||
|
|
||||||
_blendType = serializedObject.FindProperty("m_BlendType");
|
|
||||||
_srcBlendMode = serializedObject.FindProperty("m_SrcBlendMode");
|
|
||||||
_dstBlendMode = serializedObject.FindProperty("m_DstBlendMode");
|
|
||||||
|
|
||||||
_shadowMode = serializedObject.FindProperty("m_ShadowMode");
|
|
||||||
_shadowDistance = serializedObject.FindProperty("m_ShadowDistance");
|
|
||||||
_shadowDistanceX = _shadowDistance.FindPropertyRelative("x");
|
|
||||||
_shadowDistanceY = _shadowDistance.FindPropertyRelative("y");
|
|
||||||
_shadowIteration = serializedObject.FindProperty("m_ShadowIteration");
|
|
||||||
_shadowFade = serializedObject.FindProperty("m_ShadowFade");
|
|
||||||
_shadowEffectOnOrigin = serializedObject.FindProperty("m_ShadowEffectOnOrigin");
|
|
||||||
_shadowMirrorScale = serializedObject.FindProperty("m_ShadowMirrorScale");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnInspectorGUI()
|
public override void OnInspectorGUI()
|
||||||
{
|
{
|
||||||
serializedObject.Update();
|
serializedObject.Update();
|
||||||
|
|
||||||
|
// Preset
|
||||||
DrawPresetMenu(targets);
|
DrawPresetMenu(targets);
|
||||||
DrawSeparator();
|
DrawSeparator();
|
||||||
|
|
||||||
|
// Properties
|
||||||
DrawProperties();
|
DrawProperties();
|
||||||
|
|
||||||
|
// Others
|
||||||
|
DrawSeparator();
|
||||||
|
expandOthers = EditorGUILayout.BeginFoldoutHeaderGroup(expandOthers, "Others");
|
||||||
|
if (expandOthers)
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_samplingScale);
|
||||||
|
EditorGUILayout.PropertyField(_allowToModifyMeshShape);
|
||||||
|
EditorGUILayout.PropertyField(_customRoot);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.EndFoldoutHeaderGroup();
|
||||||
|
|
||||||
serializedObject.ApplyModifiedProperties();
|
serializedObject.ApplyModifiedProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DrawProperties()
|
|
||||||
{
|
|
||||||
serializedObject.Update();
|
|
||||||
|
|
||||||
// Tone filter
|
|
||||||
if (DrawHeaderPopup(_toneFilter))
|
|
||||||
{
|
|
||||||
EditorGUI.indentLevel++;
|
|
||||||
EditorGUILayout.PropertyField(_toneIntensity);
|
|
||||||
|
|
||||||
EditorGUI.indentLevel--;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Color filter
|
|
||||||
DrawSeparator();
|
|
||||||
var prevColorFilter = (ColorFilter)_colorFilter.intValue;
|
|
||||||
if (DrawHeaderPopup(_colorFilter))
|
|
||||||
{
|
|
||||||
EditorGUI.indentLevel++;
|
|
||||||
EditorGUILayout.PropertyField(_colorIntensity);
|
|
||||||
DrawColor(_colorFilter, _color, prevColorFilter);
|
|
||||||
EditorGUI.indentLevel--;
|
|
||||||
}
|
|
||||||
|
|
||||||
EditorGUI.EndChangeCheck();
|
|
||||||
|
|
||||||
// Sampling filter
|
|
||||||
DrawSeparator();
|
|
||||||
if (DrawHeaderPopup(_samplingFilter))
|
|
||||||
{
|
|
||||||
EditorGUI.indentLevel++;
|
|
||||||
EditorGUILayout.PropertyField(_samplingIntensity);
|
|
||||||
EditorGUI.indentLevel--;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Transition filter
|
|
||||||
DrawSeparator();
|
|
||||||
if (DrawHeaderPopup(_transitionFilter))
|
|
||||||
{
|
|
||||||
EditorGUI.indentLevel++;
|
|
||||||
EditorGUILayout.PropertyField(_transitionRate);
|
|
||||||
EditorGUILayout.PropertyField(_transitionTex);
|
|
||||||
EditorGUI.indentLevel++;
|
|
||||||
EditorGUILayout.PropertyField(_transitionTexScale, EditorGUIUtility.TrTempContent("Scale"));
|
|
||||||
EditorGUILayout.PropertyField(_transitionTexOffset, EditorGUIUtility.TrTempContent("Offset"));
|
|
||||||
EditorGUILayout.PropertyField(_transitionRotation, EditorGUIUtility.TrTempContent("Rotation"));
|
|
||||||
EditorGUILayout.PropertyField(_transitionKeepAspectRatio,
|
|
||||||
EditorGUIUtility.TrTempContent("Keep Aspect Ratio"));
|
|
||||||
EditorGUILayout.PropertyField(_transitionReverse, EditorGUIUtility.TrTempContent("Reverse"));
|
|
||||||
EditorGUI.indentLevel--;
|
|
||||||
|
|
||||||
if (2 < _transitionFilter.intValue)
|
|
||||||
{
|
|
||||||
EditorGUILayout.PropertyField(_transitionWidth);
|
|
||||||
EditorGUILayout.PropertyField(_transitionSoftness);
|
|
||||||
prevColorFilter = (ColorFilter)_transitionColorFilter.intValue;
|
|
||||||
EditorGUILayout.PropertyField(_transitionColorFilter);
|
|
||||||
DrawColor(_transitionColorFilter, _transitionColor, prevColorFilter);
|
|
||||||
}
|
|
||||||
|
|
||||||
EditorGUI.indentLevel--;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Target
|
|
||||||
DrawSeparator();
|
|
||||||
if (DrawHeaderPopup(_targetMode))
|
|
||||||
{
|
|
||||||
EditorGUI.indentLevel++;
|
|
||||||
EditorGUILayout.PropertyField(_targetColor);
|
|
||||||
EditorGUILayout.PropertyField(_targetRange);
|
|
||||||
EditorGUILayout.PropertyField(_targetSoftness);
|
|
||||||
EditorGUI.indentLevel--;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Blending
|
|
||||||
DrawSeparator();
|
|
||||||
if (!DrawHeaderPopup(_blendType))
|
|
||||||
{
|
|
||||||
EditorGUI.indentLevel++;
|
|
||||||
|
|
||||||
EditorGUILayout.PropertyField(_srcBlendMode);
|
|
||||||
EditorGUILayout.PropertyField(_dstBlendMode);
|
|
||||||
EditorGUI.indentLevel--;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Shadow
|
|
||||||
DrawSeparator();
|
|
||||||
var prevShadowMode = (ShadowMode)_shadowMode.intValue;
|
|
||||||
if (DrawHeaderPopup(_shadowMode))
|
|
||||||
{
|
|
||||||
EditorGUI.indentLevel++;
|
|
||||||
if ((ShadowMode)_shadowMode.intValue == ShadowMode.Mirror)
|
|
||||||
{
|
|
||||||
if (prevShadowMode != ShadowMode.Mirror)
|
|
||||||
{
|
|
||||||
_shadowDistanceX.floatValue = 0.5f;
|
|
||||||
_shadowDistanceY.floatValue = 0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
EditorGUILayout.Slider(_shadowDistanceX, 0, 1, "Reflection");
|
|
||||||
EditorGUILayout.PropertyField(_shadowDistanceY, EditorGUIUtility.TrTempContent("Offset"));
|
|
||||||
EditorGUILayout.PropertyField(_shadowMirrorScale);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (prevShadowMode == ShadowMode.Mirror)
|
|
||||||
{
|
|
||||||
_shadowDistanceX.floatValue = 1f;
|
|
||||||
_shadowDistanceY.floatValue = -1f;
|
|
||||||
}
|
|
||||||
|
|
||||||
EditorGUILayout.PropertyField(_shadowDistance);
|
|
||||||
EditorGUILayout.PropertyField(_shadowIteration);
|
|
||||||
}
|
|
||||||
|
|
||||||
EditorGUILayout.PropertyField(_shadowFade);
|
|
||||||
EditorGUILayout.PropertyField(_shadowEffectOnOrigin);
|
|
||||||
EditorGUI.indentLevel--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DrawColor(SerializedProperty filter, SerializedProperty color, ColorFilter prevFilter)
|
|
||||||
{
|
|
||||||
if (filter.intValue == (int)ColorFilter.None)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
else if (filter.intValue == (int)ColorFilter.HsvModifier)
|
|
||||||
{
|
|
||||||
if (prevFilter != ColorFilter.HsvModifier)
|
|
||||||
{
|
|
||||||
color.colorValue = Color.black;
|
|
||||||
}
|
|
||||||
|
|
||||||
EditorGUILayout.Slider(color.FindPropertyRelative("r"), -0.5f, 0.5f, "Hue");
|
|
||||||
EditorGUILayout.Slider(color.FindPropertyRelative("g"), -1f, 1f, "Saturation");
|
|
||||||
EditorGUILayout.Slider(color.FindPropertyRelative("b"), -1f, 1f, "Value");
|
|
||||||
EditorGUILayout.Slider(color.FindPropertyRelative("a"), 0, 1, "Alpha");
|
|
||||||
}
|
|
||||||
else if (filter.intValue == (int)ColorFilter.Contrast)
|
|
||||||
{
|
|
||||||
if (prevFilter != ColorFilter.Contrast)
|
|
||||||
{
|
|
||||||
color.colorValue = Color.black;
|
|
||||||
}
|
|
||||||
|
|
||||||
EditorGUILayout.Slider(color.FindPropertyRelative("r"), -1f, 1f, "Contrast");
|
|
||||||
EditorGUILayout.Slider(color.FindPropertyRelative("g"), -1f, 1f, "Brightness");
|
|
||||||
EditorGUILayout.Slider(color.FindPropertyRelative("a"), 0, 1, "Alpha");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (prevFilter == ColorFilter.HsvModifier || prevFilter == ColorFilter.Contrast)
|
|
||||||
{
|
|
||||||
color.colorValue = Color.white;
|
|
||||||
}
|
|
||||||
|
|
||||||
EditorGUILayout.PropertyField(color);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static bool DrawHeaderPopup(SerializedProperty sp)
|
|
||||||
{
|
|
||||||
var r = EditorGUILayout.GetControlRect();
|
|
||||||
var pos = EditorGUI.PrefixLabel(r, EditorGUIUtility.TrTempContent(sp.displayName), EditorStyles.boldLabel);
|
|
||||||
EditorGUI.PropertyField(pos, sp, GUIContent.none);
|
|
||||||
return 0 < sp.intValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DrawSeparator()
|
|
||||||
{
|
|
||||||
EditorGUILayout.Space(4);
|
|
||||||
GUILayout.Label(GUIContent.none, "sv_iconselector_sep", GUILayout.ExpandWidth(true));
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DrawPresetMenu(Object[] targets)
|
private static void DrawPresetMenu(Object[] targets)
|
||||||
{
|
{
|
||||||
var r = EditorGUILayout.GetControlRect();
|
var r = EditorGUILayout.GetControlRect();
|
||||||
r.width /= 2;
|
r.width = (r.width - 185) / 2;
|
||||||
if (GUI.Button(r, EditorGUIUtility.TrTempContent("Load"), "MiniPopup"))
|
if (GUI.Button(r, EditorGUIUtility.TrTempContent("Load"), "MiniPopup"))
|
||||||
{
|
{
|
||||||
var menu = new GenericMenu();
|
DropDownPreset(r, null, p =>
|
||||||
foreach (var preset in UIEffectProjectSettings.LoadEditorPresets())
|
|
||||||
{
|
{
|
||||||
var path = UIEffectProjectSettings.GetPresetPath(preset);
|
Undo.RecordObjects(targets, "Load UIEffect Preset");
|
||||||
menu.AddItem(new GUIContent(path), false, () =>
|
Array.ForEach(targets.OfType<UIEffect>().ToArray(), t =>
|
||||||
{
|
{
|
||||||
Array.ForEach(targets.OfType<UIEffect>().ToArray(), t =>
|
t.LoadPreset(p, false);
|
||||||
{
|
|
||||||
t.LoadPreset(preset);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
|
|
||||||
menu.DropDown(r);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
r.x += r.width;
|
r.x += r.width;
|
||||||
|
if (GUI.Button(r, EditorGUIUtility.TrTempContent("Append"), "MiniPopup"))
|
||||||
|
{
|
||||||
|
DropDownPreset(r, null, p =>
|
||||||
|
{
|
||||||
|
Undo.RecordObjects(targets, "Append UIEffect Preset");
|
||||||
|
Array.ForEach(targets.OfType<UIEffect>().ToArray(), t =>
|
||||||
|
{
|
||||||
|
t.LoadPreset(p, true);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
r.x += r.width;
|
||||||
|
r.width = 15;
|
||||||
|
GUI.Label(r, GUIContent.none, "BreadcrumbsSeparator");
|
||||||
|
|
||||||
|
r.x += r.width;
|
||||||
|
r.width = 100;
|
||||||
if (GUI.Button(r, EditorGUIUtility.TrTempContent("Save As New"), "MiniButton"))
|
if (GUI.Button(r, EditorGUIUtility.TrTempContent("Save As New"), "MiniButton"))
|
||||||
{
|
{
|
||||||
UIEffectProjectSettings.SaveAsNewPreset(targets.OfType<UIEffect>().FirstOrDefault());
|
EditorApplication.delayCall += () =>
|
||||||
|
{
|
||||||
|
UIEffectProjectSettings.SaveAsNewPreset(targets.OfType<UIEffect>().FirstOrDefault());
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r.x += r.width;
|
||||||
|
r.width = 15;
|
||||||
|
GUI.Label(r, GUIContent.none, "BreadcrumbsSeparator");
|
||||||
|
|
||||||
|
r.x += r.width;
|
||||||
|
r.width = 55;
|
||||||
|
if (GUI.Button(r, EditorGUIUtility.TrTempContent("Clear"), "MiniButton"))
|
||||||
|
{
|
||||||
|
Undo.RecordObjects(targets, "Clear UIEffect");
|
||||||
|
Array.ForEach(targets.OfType<UIEffect>().ToArray(), Unsupported.SmartReset);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void DropDownPreset(Rect r, Predicate<(string path, bool builtin, UIEffectPreset preset)> valid,
|
||||||
|
Action<UIEffectPreset> callback)
|
||||||
|
{
|
||||||
|
var menu = new GenericMenu();
|
||||||
|
var separatorAdded = false;
|
||||||
|
foreach (var preset in UIEffectProjectSettings.LoadEditorPresetsV2())
|
||||||
|
{
|
||||||
|
var (path, builtin) = UIEffectProjectSettings.GetPresetPath(preset);
|
||||||
|
if (valid != null && valid.Invoke((path, builtin, preset)) == false) continue;
|
||||||
|
|
||||||
|
if (builtin && !separatorAdded)
|
||||||
|
{
|
||||||
|
separatorAdded = true;
|
||||||
|
menu.AddSeparator(string.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
menu.AddItem(new GUIContent(path.Replace("-", "/")), false, x => callback(x as UIEffectPreset), preset);
|
||||||
|
}
|
||||||
|
|
||||||
|
menu.DropDown(r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
+1
-1
@@ -98,7 +98,7 @@ TextureImporter:
|
|||||||
compressionQuality: 50
|
compressionQuality: 50
|
||||||
crunchedCompression: 0
|
crunchedCompression: 0
|
||||||
allowsAlphaSplitting: 0
|
allowsAlphaSplitting: 0
|
||||||
overridden: 1
|
overridden: 0
|
||||||
androidETC2FallbackOverride: 0
|
androidETC2FallbackOverride: 0
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
- serializedVersion: 3
|
- serializedVersion: 3
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using UnityEditor;
|
||||||
|
|
||||||
|
namespace Coffee.UIEffects.Editors
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// UIEffect editor.
|
||||||
|
/// </summary>
|
||||||
|
[CustomEditor(typeof(UIEffectPreset), true)]
|
||||||
|
[CanEditMultipleObjects]
|
||||||
|
public class UIEffectPresetEditor : UIEffectPropertyEditor
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 60b661e9d7501483dbd6b02ffa399405
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,8 +1,10 @@
|
|||||||
using UnityEditor;
|
using System;
|
||||||
using UnityEngine;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reflection;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
using Coffee.UIEffectInternal;
|
||||||
using UnityEditorInternal;
|
using UnityEditorInternal;
|
||||||
|
|
||||||
namespace Coffee.UIEffects.Editors
|
namespace Coffee.UIEffects.Editors
|
||||||
@@ -11,24 +13,29 @@ namespace Coffee.UIEffects.Editors
|
|||||||
public class UIEffectProjectSettingsEditor : Editor
|
public class UIEffectProjectSettingsEditor : Editor
|
||||||
{
|
{
|
||||||
private ReorderableList _reorderableList;
|
private ReorderableList _reorderableList;
|
||||||
private SerializedProperty _fallbackVariantBehaviour;
|
private SerializedProperty _runtimePresets;
|
||||||
private SerializedProperty _transformSensitivity;
|
private SerializedProperty _runtimePresetsV2;
|
||||||
private Editor _editor;
|
private SerializedProperty _useHDRColorPicker;
|
||||||
private bool _isInitialized;
|
private bool _isInitialized;
|
||||||
|
private ShaderVariantRegistryEditor _shaderVariantRegistryEditor;
|
||||||
|
private UIEffect[] _legacyPresets;
|
||||||
|
private bool _expandRuntimePresets;
|
||||||
|
private bool _expandLegacyPrefabs;
|
||||||
|
|
||||||
private void InitializeIfNeeded()
|
private void InitializeIfNeeded()
|
||||||
{
|
{
|
||||||
if (_isInitialized) return;
|
if (_isInitialized) return;
|
||||||
|
|
||||||
_fallbackVariantBehaviour = serializedObject.FindProperty("m_FallbackVariantBehaviour");
|
_useHDRColorPicker = serializedObject.FindProperty("m_UseHDRColorPicker");
|
||||||
_transformSensitivity = serializedObject.FindProperty("m_TransformSensitivity");
|
_runtimePresets = serializedObject.FindProperty("m_RuntimePresets");
|
||||||
var runtimePresets = serializedObject.FindProperty("m_RuntimePresets");
|
_runtimePresetsV2 = serializedObject.FindProperty("m_RuntimePresetsV2");
|
||||||
_reorderableList = new ReorderableList(serializedObject, runtimePresets, true, true, true, true);
|
|
||||||
|
_reorderableList = new ReorderableList(serializedObject, _runtimePresetsV2, true, true, true, true);
|
||||||
_reorderableList.drawHeaderCallback = rect => EditorGUI.LabelField(rect, "Runtime Presets");
|
_reorderableList.drawHeaderCallback = rect => EditorGUI.LabelField(rect, "Runtime Presets");
|
||||||
_reorderableList.drawElementCallback = (rect, index, isActive, isFocused) =>
|
_reorderableList.drawElementCallback = (rect, index, isActive, isFocused) =>
|
||||||
{
|
{
|
||||||
var element = _reorderableList.serializedProperty.GetArrayElementAtIndex(index);
|
var element = _reorderableList.serializedProperty.GetArrayElementAtIndex(index);
|
||||||
var effect = element.objectReferenceValue as UIEffect;
|
var effect = element.objectReferenceValue as UIEffectPreset;
|
||||||
rect.y += 2;
|
rect.y += 2;
|
||||||
rect.height = EditorGUIUtility.singleLineHeight;
|
rect.height = EditorGUIUtility.singleLineHeight;
|
||||||
|
|
||||||
@@ -38,34 +45,21 @@ namespace Coffee.UIEffects.Editors
|
|||||||
};
|
};
|
||||||
_reorderableList.onAddDropdownCallback = (rect, list) =>
|
_reorderableList.onAddDropdownCallback = (rect, list) =>
|
||||||
{
|
{
|
||||||
var menu = new GenericMenu();
|
UIEffectEditor.DropDownPreset(rect,
|
||||||
foreach (var preset in UIEffectProjectSettings.LoadEditorPresets())
|
x => !UIEffectProjectSettings.instance.m_RuntimePresetsV2.Contains(x.preset),
|
||||||
{
|
UIEffectProjectSettings.RegisterRuntimePreset);
|
||||||
if (UIEffectProjectSettings.instance.m_RuntimePresets.Contains(preset)) continue;
|
|
||||||
|
|
||||||
var path = UIEffectProjectSettings.GetPresetPath(preset);
|
|
||||||
menu.AddItem(new GUIContent(path), false, x =>
|
|
||||||
{
|
|
||||||
UIEffectProjectSettings.RegisterRuntimePreset(x as UIEffect);
|
|
||||||
}, preset);
|
|
||||||
}
|
|
||||||
|
|
||||||
menu.DropDown(rect);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var collection = serializedObject.FindProperty("m_ShaderVariantCollection").objectReferenceValue;
|
|
||||||
_editor = CreateEditor(collection);
|
|
||||||
_isInitialized = true;
|
_isInitialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnEnable()
|
||||||
|
{
|
||||||
|
_legacyPresets = UIEffectProjectSettings.LoadEditorPresets();
|
||||||
|
}
|
||||||
|
|
||||||
private void OnDisable()
|
private void OnDisable()
|
||||||
{
|
{
|
||||||
if (_editor)
|
|
||||||
{
|
|
||||||
DestroyImmediate(_editor);
|
|
||||||
}
|
|
||||||
|
|
||||||
_editor = null;
|
|
||||||
_isInitialized = false;
|
_isInitialized = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,89 +69,147 @@ namespace Coffee.UIEffects.Editors
|
|||||||
InitializeIfNeeded();
|
InitializeIfNeeded();
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
EditorGUILayout.PropertyField(_transformSensitivity);
|
// Runtime Presets
|
||||||
_reorderableList.DoLayoutList();
|
_reorderableList.DoLayoutList();
|
||||||
|
|
||||||
|
// Legacy Presets
|
||||||
|
DrawLegacyPresets();
|
||||||
|
|
||||||
// Editor
|
// Editor
|
||||||
EditorGUILayout.PropertyField(_fallbackVariantBehaviour);
|
// Use HDR color pickers.
|
||||||
serializedObject.ApplyModifiedProperties();
|
EditorGUILayout.PropertyField(_useHDRColorPicker);
|
||||||
|
|
||||||
// Shader
|
// Shader
|
||||||
EditorGUILayout.Space(20);
|
// Shader registry
|
||||||
EditorGUILayout.LabelField("Shader Variants", EditorStyles.boldLabel);
|
|
||||||
EditorGUILayout.Space(-12);
|
|
||||||
DrawUnregisteredShaderVariants(UIEffectProjectSettings.instance.m_UnregisteredShaderVariants);
|
|
||||||
DrawRegisteredShaderVariants(_editor);
|
|
||||||
GUILayout.FlexibleSpace();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DrawUnregisteredShaderVariants(List<string> variants)
|
|
||||||
{
|
|
||||||
if (variants.Count == 0) return;
|
|
||||||
|
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
var array = variants.ToArray();
|
EditorGUILayout.LabelField("Shader", EditorStyles.boldLabel);
|
||||||
var r = EditorGUILayout.GetControlRect(false, 20);
|
if (_shaderVariantRegistryEditor == null)
|
||||||
var rLabel = new Rect(r.x, r.y, r.width - 80, r.height);
|
|
||||||
EditorGUI.LabelField(rLabel, "Registered Shader Variants");
|
|
||||||
|
|
||||||
var rButtonClear = new Rect(r.x + r.width - 80, r.y + 2, 80, r.height - 4);
|
|
||||||
if (GUI.Button(rButtonClear, "Clear All", EditorStyles.miniButton))
|
|
||||||
{
|
{
|
||||||
UIEffectProjectSettings.ClearUnregisteredShaderVariants();
|
var property = serializedObject.FindProperty("m_ShaderVariantRegistry");
|
||||||
|
_shaderVariantRegistryEditor = new ShaderVariantRegistryEditor(property, "(UIEffect)",
|
||||||
|
() =>
|
||||||
|
{
|
||||||
|
UIEffectProjectSettings.shaderRegistry
|
||||||
|
.RegisterOptionalShaders(UIEffectProjectSettings.instance);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorGUILayout.BeginVertical("RL Background");
|
_shaderVariantRegistryEditor.Draw();
|
||||||
for (var i = 0; i < array.Length; i++)
|
GUILayout.FlexibleSpace();
|
||||||
|
serializedObject.ApplyModifiedProperties();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DrawLegacyPresets()
|
||||||
|
{
|
||||||
|
for (var i = _runtimePresets.arraySize - 1; 0 <= i; i--)
|
||||||
{
|
{
|
||||||
var values = array[i].Split(';');
|
if (!_runtimePresets.GetArrayElementAtIndex(i).objectReferenceValue)
|
||||||
r = EditorGUILayout.GetControlRect();
|
|
||||||
var rShader = new Rect(r.x, r.y, 150, r.height);
|
|
||||||
EditorGUI.ObjectField(rShader, Shader.Find(values[0]), typeof(Shader), false);
|
|
||||||
|
|
||||||
var rKeywords = new Rect(r.x + 150, r.y, r.width - 150 - 20, r.height);
|
|
||||||
EditorGUI.TextField(rKeywords, values[1]);
|
|
||||||
|
|
||||||
var rButton = new Rect(r.x + r.width - 20 + 2, r.y, 20, r.height);
|
|
||||||
if (GUI.Button(rButton, EditorGUIUtility.IconContent("icons/toolbar plus.png"), "iconbutton"))
|
|
||||||
{
|
{
|
||||||
UIEffectProjectSettings.RegisterVariant(array[i]);
|
_runtimePresets.DeleteArrayElementAtIndex(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_legacyPresets.Length == 0 && _runtimePresets.arraySize == 0) return;
|
||||||
|
|
||||||
|
EditorGUILayout.BeginVertical(EditorStyles.helpBox);
|
||||||
|
var title = EditorGUIUtility.TrTextContent("Legacy Presets (Obsolete)", "", "warning");
|
||||||
|
EditorGUILayout.LabelField(title,
|
||||||
|
EditorStyles.boldLabel);
|
||||||
|
|
||||||
|
_expandRuntimePresets = EditorGUILayout.Foldout(_expandRuntimePresets,
|
||||||
|
$"Legacy Runtime Presets ({_runtimePresets.arraySize})");
|
||||||
|
if (_expandRuntimePresets)
|
||||||
|
{
|
||||||
|
EditorGUI.BeginDisabledGroup(true);
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
|
||||||
|
for (var i = 0; i < _runtimePresets.arraySize; i++)
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_runtimePresets.GetArrayElementAtIndex(i), GUIContent.none);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
EditorGUI.EndDisabledGroup();
|
||||||
|
}
|
||||||
|
|
||||||
|
_expandLegacyPrefabs = EditorGUILayout.Foldout(_expandLegacyPrefabs,
|
||||||
|
$"Legacy Preset Prefabs ({_legacyPresets.Length})");
|
||||||
|
if (_expandLegacyPrefabs)
|
||||||
|
{
|
||||||
|
EditorGUI.BeginDisabledGroup(true);
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
|
||||||
|
foreach (var legacyPreset in _legacyPresets)
|
||||||
|
{
|
||||||
|
EditorGUILayout.ObjectField(legacyPreset, typeof(UIEffect), false);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
EditorGUI.EndDisabledGroup();
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.TextArea(
|
||||||
|
"The prefab based presets system is obsolete.\n" +
|
||||||
|
"In the new preset system, UIEffectPreset assets are used.\n" +
|
||||||
|
"Click the button below to convert your legacy preset prefabs into UIEffectPreset assets.\n" +
|
||||||
|
"The UIEffectPreset asset will be saved in the same directory as the prefab, using the same name.\n" +
|
||||||
|
"You can load the new preset via the UIEffect.LoadPreset method.",
|
||||||
|
EditorStyles.miniLabel);
|
||||||
|
if (GUILayout.Button(EditorGUIUtility.TrTempContent("Convert All Legacy Presets in the Project")))
|
||||||
|
{
|
||||||
|
ConvertAllLegacyPresets();
|
||||||
|
_runtimePresets.ClearArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (GUILayout.Button(EditorGUIUtility.TrTempContent("Delete All Legacy Presets in the Project")))
|
||||||
|
{
|
||||||
|
foreach (var legacyPreset in _legacyPresets)
|
||||||
|
{
|
||||||
|
AssetDatabase.DeleteAsset(AssetDatabase.GetAssetPath(legacyPreset));
|
||||||
|
}
|
||||||
|
|
||||||
|
_runtimePresets.ClearArray();
|
||||||
|
_legacyPresets = Array.Empty<UIEffect>();
|
||||||
|
}
|
||||||
|
|
||||||
EditorGUILayout.EndVertical();
|
EditorGUILayout.EndVertical();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void DrawRegisteredShaderVariants(Editor editor)
|
private void ConvertAllLegacyPresets()
|
||||||
{
|
{
|
||||||
var collection = editor.target as ShaderVariantCollection;
|
var length = _legacyPresets.Length;
|
||||||
if (collection == null) return;
|
var converted = new HashSet<string>(UIEffectProjectSettings.LoadEditorPresetsV2()
|
||||||
|
.Select(x => Path.ChangeExtension(AssetDatabase.GetAssetPath(x), ".prefab")));
|
||||||
EditorGUILayout.Space();
|
for (var i = 0; i < length; i++)
|
||||||
var r = EditorGUILayout.GetControlRect(false, 20);
|
|
||||||
var rLabel = new Rect(r.x, r.y, r.width - 80, r.height);
|
|
||||||
EditorGUI.LabelField(rLabel, "Registered Shader Variants");
|
|
||||||
|
|
||||||
var rButton = new Rect(r.x + r.width - 80, r.y + 2, 80, r.height - 4);
|
|
||||||
if (GUI.Button(rButton, "Clear All", EditorStyles.miniButton))
|
|
||||||
{
|
{
|
||||||
collection.Clear();
|
var preset = _legacyPresets[i];
|
||||||
|
var path = AssetDatabase.GetAssetPath(preset);
|
||||||
|
if (converted.Contains(path)) continue;
|
||||||
|
|
||||||
|
EditorUtility.DisplayProgressBar("Convert To UIEffectPreset", path, (float)i / length);
|
||||||
|
var newPath = Path.ChangeExtension(path, ".asset");
|
||||||
|
newPath = AssetDatabase.GenerateUniqueAssetPath(newPath);
|
||||||
|
var newPreset = CreateInstance<UIEffectPreset>();
|
||||||
|
preset.SavePreset(newPreset, false);
|
||||||
|
newPreset.hideFlags = preset.hideFlags;
|
||||||
|
AssetDatabase.CreateAsset(newPreset, newPath);
|
||||||
|
|
||||||
|
var importer = AssetImporter.GetAtPath(path);
|
||||||
|
var newImporter = AssetImporter.GetAtPath(newPath);
|
||||||
|
newImporter.userData = importer.userData;
|
||||||
|
newImporter.SetAssetBundleNameAndVariant(importer.assetBundleName, importer.assetBundleVariant);
|
||||||
|
newImporter.SaveAndReimport();
|
||||||
|
|
||||||
|
// Remove the legacy preset from the project settings and add the new preset.
|
||||||
|
if (UIEffectProjectSettings.instance.m_RuntimePresets.Contains(preset))
|
||||||
|
{
|
||||||
|
var count = _runtimePresetsV2.arraySize;
|
||||||
|
_runtimePresetsV2.InsertArrayElementAtIndex(count);
|
||||||
|
_runtimePresetsV2.GetArrayElementAtIndex(count).objectReferenceValue = newPreset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorGUILayout.BeginVertical("RL Background");
|
EditorUtility.ClearProgressBar();
|
||||||
editor.serializedObject.Update();
|
|
||||||
var shaders = editor.serializedObject.FindProperty("m_Shaders");
|
|
||||||
for (var i = 0; i < shaders.arraySize; i++)
|
|
||||||
{
|
|
||||||
s_MiDrawShaderEntry.Invoke(editor, new object[] { i });
|
|
||||||
}
|
|
||||||
|
|
||||||
editor.serializedObject.ApplyModifiedProperties();
|
|
||||||
EditorGUILayout.EndVertical();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static readonly MethodInfo s_MiDrawShaderEntry =
|
|
||||||
Type.GetType("UnityEditor.ShaderVariantCollectionInspector, UnityEditor")
|
|
||||||
?.GetMethod("DrawShaderEntry", BindingFlags.NonPublic | BindingFlags.Instance);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,610 @@
|
|||||||
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Coffee.UIEffects.Editors
|
||||||
|
{
|
||||||
|
public abstract class UIEffectPropertyEditor : Editor
|
||||||
|
{
|
||||||
|
private static readonly PropertyInfo s_PiGradient = typeof(SerializedProperty)
|
||||||
|
.GetProperty("gradientValue", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
|
||||||
|
|
||||||
|
private static readonly Func<SerializedProperty, Gradient> s_GetGradient =
|
||||||
|
(Func<SerializedProperty, Gradient>)Delegate.CreateDelegate(typeof(Func<SerializedProperty, Gradient>),
|
||||||
|
s_PiGradient.GetMethod);
|
||||||
|
|
||||||
|
private static readonly Action<SerializedProperty, Gradient> s_SetGradient =
|
||||||
|
(Action<SerializedProperty, Gradient>)Delegate.CreateDelegate(typeof(Action<SerializedProperty, Gradient>),
|
||||||
|
s_PiGradient.SetMethod);
|
||||||
|
|
||||||
|
private SerializedProperty _toneFilter;
|
||||||
|
private SerializedProperty _toneIntensity;
|
||||||
|
|
||||||
|
private SerializedProperty _colorFilter;
|
||||||
|
private SerializedProperty _color;
|
||||||
|
private SerializedProperty _colorIntensity;
|
||||||
|
private SerializedProperty _colorGlow;
|
||||||
|
|
||||||
|
private SerializedProperty _samplingFilter;
|
||||||
|
private SerializedProperty _samplingIntensity;
|
||||||
|
private SerializedProperty _samplingWidth;
|
||||||
|
|
||||||
|
private SerializedProperty _transitionFilter;
|
||||||
|
private SerializedProperty _transitionRate;
|
||||||
|
private SerializedProperty _transitionTex;
|
||||||
|
private SerializedProperty _transitionTexScale;
|
||||||
|
private SerializedProperty _transitionTexOffset;
|
||||||
|
private SerializedProperty _transitionTexSpeed;
|
||||||
|
private SerializedProperty _transitionReverse;
|
||||||
|
private SerializedProperty _transitionRotation;
|
||||||
|
private SerializedProperty _transitionKeepAspectRatio;
|
||||||
|
private SerializedProperty _transitionWidth;
|
||||||
|
private SerializedProperty _transitionSoftness;
|
||||||
|
private SerializedProperty _transitionRange;
|
||||||
|
private SerializedProperty _transitionColorFilter;
|
||||||
|
private SerializedProperty _transitionColor;
|
||||||
|
private SerializedProperty _transitionColorGlow;
|
||||||
|
private SerializedProperty _transitionPatternReverse;
|
||||||
|
private SerializedProperty _transitionAutoPlaySpeed;
|
||||||
|
private SerializedProperty _transitionGradient;
|
||||||
|
|
||||||
|
private SerializedProperty _targetMode;
|
||||||
|
private SerializedProperty _targetColor;
|
||||||
|
private SerializedProperty _targetRange;
|
||||||
|
private SerializedProperty _targetSoftness;
|
||||||
|
|
||||||
|
private SerializedProperty _blendType;
|
||||||
|
private SerializedProperty _srcBlendMode;
|
||||||
|
private SerializedProperty _dstBlendMode;
|
||||||
|
|
||||||
|
private SerializedProperty _shadowMode;
|
||||||
|
private SerializedProperty _shadowDistance;
|
||||||
|
private SerializedProperty _shadowDistanceX;
|
||||||
|
private SerializedProperty _shadowDistanceY;
|
||||||
|
private SerializedProperty _shadowIteration;
|
||||||
|
private SerializedProperty _shadowFade;
|
||||||
|
private SerializedProperty _shadowMirrorScale;
|
||||||
|
private SerializedProperty _shadowBlurIntensity;
|
||||||
|
private SerializedProperty _shadowColorFilter;
|
||||||
|
private SerializedProperty _shadowColor;
|
||||||
|
private SerializedProperty _shadowColorGlow;
|
||||||
|
|
||||||
|
private SerializedProperty _gradationMode;
|
||||||
|
private SerializedProperty _gradationIntensity;
|
||||||
|
private SerializedProperty _gradationColorFilter;
|
||||||
|
private SerializedProperty _gradationColor1;
|
||||||
|
private SerializedProperty _gradationColor2;
|
||||||
|
private SerializedProperty _gradationColor3;
|
||||||
|
private SerializedProperty _gradationColor4;
|
||||||
|
private SerializedProperty _gradationGradient;
|
||||||
|
private SerializedProperty _gradationOffset;
|
||||||
|
private SerializedProperty _gradationScale;
|
||||||
|
private SerializedProperty _gradationRotation;
|
||||||
|
private SerializedProperty _gradationWrapMode;
|
||||||
|
private SerializedProperty _gradationReverse;
|
||||||
|
|
||||||
|
private SerializedProperty _edgeMode;
|
||||||
|
private SerializedProperty _edgeWidth;
|
||||||
|
private SerializedProperty _edgeColorFilter;
|
||||||
|
private SerializedProperty _edgeColor;
|
||||||
|
private SerializedProperty _edgeColorGlow;
|
||||||
|
private SerializedProperty _edgeShinyRate;
|
||||||
|
private SerializedProperty _edgeShinyWidth;
|
||||||
|
private SerializedProperty _edgeShinyAutoPlaySpeed;
|
||||||
|
private SerializedProperty _patternArea;
|
||||||
|
|
||||||
|
private SerializedProperty _detailFilter;
|
||||||
|
private SerializedProperty _detailIntensity;
|
||||||
|
private SerializedProperty _detailColor;
|
||||||
|
private SerializedProperty _detailThreshold;
|
||||||
|
private SerializedProperty _detailTex;
|
||||||
|
private SerializedProperty _detailTexScale;
|
||||||
|
private SerializedProperty _detailTexOffset;
|
||||||
|
private SerializedProperty _detailTexSpeed;
|
||||||
|
|
||||||
|
private SerializedProperty _flip;
|
||||||
|
private static GUIContent s_RotationLabel = new GUIContent("* Rotation");
|
||||||
|
private static GUIContent s_KeepAspectRatioLabel = new GUIContent("* Keep Aspect Ratio");
|
||||||
|
|
||||||
|
protected virtual void OnEnable()
|
||||||
|
{
|
||||||
|
_toneFilter = serializedObject.FindProperty("m_ToneFilter");
|
||||||
|
_toneIntensity = serializedObject.FindProperty("m_ToneIntensity");
|
||||||
|
|
||||||
|
_colorFilter = serializedObject.FindProperty("m_ColorFilter");
|
||||||
|
_color = serializedObject.FindProperty("m_Color");
|
||||||
|
_colorIntensity = serializedObject.FindProperty("m_ColorIntensity");
|
||||||
|
_colorGlow = serializedObject.FindProperty("m_ColorGlow");
|
||||||
|
|
||||||
|
_samplingFilter = serializedObject.FindProperty("m_SamplingFilter");
|
||||||
|
_samplingIntensity = serializedObject.FindProperty("m_SamplingIntensity");
|
||||||
|
_samplingWidth = serializedObject.FindProperty("m_SamplingWidth");
|
||||||
|
|
||||||
|
_transitionFilter = serializedObject.FindProperty("m_TransitionFilter");
|
||||||
|
_transitionRate = serializedObject.FindProperty("m_TransitionRate");
|
||||||
|
_transitionTex = serializedObject.FindProperty("m_TransitionTex");
|
||||||
|
_transitionTexScale = serializedObject.FindProperty("m_TransitionTexScale");
|
||||||
|
_transitionTexOffset = serializedObject.FindProperty("m_TransitionTexOffset");
|
||||||
|
_transitionTexSpeed = serializedObject.FindProperty("m_TransitionTexSpeed");
|
||||||
|
_transitionReverse = serializedObject.FindProperty("m_TransitionReverse");
|
||||||
|
_transitionRotation = serializedObject.FindProperty("m_TransitionRotation");
|
||||||
|
_transitionKeepAspectRatio = serializedObject.FindProperty("m_TransitionKeepAspectRatio");
|
||||||
|
_transitionWidth = serializedObject.FindProperty("m_TransitionWidth");
|
||||||
|
_transitionSoftness = serializedObject.FindProperty("m_TransitionSoftness");
|
||||||
|
_transitionRange = serializedObject.FindProperty("m_TransitionRange");
|
||||||
|
_transitionColorFilter = serializedObject.FindProperty("m_TransitionColorFilter");
|
||||||
|
_transitionColor = serializedObject.FindProperty("m_TransitionColor");
|
||||||
|
_transitionColorGlow = serializedObject.FindProperty("m_TransitionColorGlow");
|
||||||
|
_transitionPatternReverse = serializedObject.FindProperty("m_TransitionPatternReverse");
|
||||||
|
_transitionAutoPlaySpeed = serializedObject.FindProperty("m_TransitionAutoPlaySpeed");
|
||||||
|
_transitionGradient = serializedObject.FindProperty("m_TransitionGradient");
|
||||||
|
|
||||||
|
s_RotationLabel.tooltip = _transitionRotation.tooltip;
|
||||||
|
s_KeepAspectRatioLabel.tooltip = _transitionKeepAspectRatio.tooltip;
|
||||||
|
|
||||||
|
_targetMode = serializedObject.FindProperty("m_TargetMode");
|
||||||
|
_targetColor = serializedObject.FindProperty("m_TargetColor");
|
||||||
|
_targetRange = serializedObject.FindProperty("m_TargetRange");
|
||||||
|
_targetSoftness = serializedObject.FindProperty("m_TargetSoftness");
|
||||||
|
|
||||||
|
_blendType = serializedObject.FindProperty("m_BlendType");
|
||||||
|
_srcBlendMode = serializedObject.FindProperty("m_SrcBlendMode");
|
||||||
|
_dstBlendMode = serializedObject.FindProperty("m_DstBlendMode");
|
||||||
|
|
||||||
|
_shadowMode = serializedObject.FindProperty("m_ShadowMode");
|
||||||
|
_shadowDistance = serializedObject.FindProperty("m_ShadowDistance");
|
||||||
|
_shadowDistanceX = _shadowDistance.FindPropertyRelative("x");
|
||||||
|
_shadowDistanceY = _shadowDistance.FindPropertyRelative("y");
|
||||||
|
_shadowIteration = serializedObject.FindProperty("m_ShadowIteration");
|
||||||
|
_shadowFade = serializedObject.FindProperty("m_ShadowFade");
|
||||||
|
_shadowMirrorScale = serializedObject.FindProperty("m_ShadowMirrorScale");
|
||||||
|
_shadowBlurIntensity = serializedObject.FindProperty("m_ShadowBlurIntensity");
|
||||||
|
_shadowColorFilter = serializedObject.FindProperty("m_ShadowColorFilter");
|
||||||
|
_shadowColor = serializedObject.FindProperty("m_ShadowColor");
|
||||||
|
_shadowColorGlow = serializedObject.FindProperty("m_ShadowColorGlow");
|
||||||
|
|
||||||
|
_edgeMode = serializedObject.FindProperty("m_EdgeMode");
|
||||||
|
_edgeWidth = serializedObject.FindProperty("m_EdgeWidth");
|
||||||
|
_edgeColorFilter = serializedObject.FindProperty("m_EdgeColorFilter");
|
||||||
|
_edgeColor = serializedObject.FindProperty("m_EdgeColor");
|
||||||
|
_edgeColorGlow = serializedObject.FindProperty("m_EdgeColorGlow");
|
||||||
|
_edgeShinyRate = serializedObject.FindProperty("m_EdgeShinyRate");
|
||||||
|
_edgeShinyWidth = serializedObject.FindProperty("m_EdgeShinyWidth");
|
||||||
|
_edgeShinyAutoPlaySpeed = serializedObject.FindProperty("m_EdgeShinyAutoPlaySpeed");
|
||||||
|
_patternArea = serializedObject.FindProperty("m_PatternArea");
|
||||||
|
|
||||||
|
_gradationMode = serializedObject.FindProperty("m_GradationMode");
|
||||||
|
_gradationIntensity = serializedObject.FindProperty("m_GradationIntensity");
|
||||||
|
_gradationColorFilter = serializedObject.FindProperty("m_GradationColorFilter");
|
||||||
|
_gradationColor1 = serializedObject.FindProperty("m_GradationColor1");
|
||||||
|
_gradationColor2 = serializedObject.FindProperty("m_GradationColor2");
|
||||||
|
_gradationColor3 = serializedObject.FindProperty("m_GradationColor3");
|
||||||
|
_gradationColor4 = serializedObject.FindProperty("m_GradationColor4");
|
||||||
|
_gradationGradient = serializedObject.FindProperty("m_GradationGradient");
|
||||||
|
_gradationOffset = serializedObject.FindProperty("m_GradationOffset");
|
||||||
|
_gradationScale = serializedObject.FindProperty("m_GradationScale");
|
||||||
|
_gradationRotation = serializedObject.FindProperty("m_GradationRotation");
|
||||||
|
_gradationWrapMode = serializedObject.FindProperty("m_GradationWrapMode");
|
||||||
|
_gradationReverse = serializedObject.FindProperty("m_GradationReverse");
|
||||||
|
|
||||||
|
_detailFilter = serializedObject.FindProperty("m_DetailFilter");
|
||||||
|
_detailIntensity = serializedObject.FindProperty("m_DetailIntensity");
|
||||||
|
_detailColor = serializedObject.FindProperty("m_DetailColor");
|
||||||
|
_detailThreshold = serializedObject.FindProperty("m_DetailThreshold");
|
||||||
|
_detailTex = serializedObject.FindProperty("m_DetailTex");
|
||||||
|
_detailTexScale = serializedObject.FindProperty("m_DetailTexScale");
|
||||||
|
_detailTexOffset = serializedObject.FindProperty("m_DetailTexOffset");
|
||||||
|
_detailTexSpeed = serializedObject.FindProperty("m_DetailTexSpeed");
|
||||||
|
|
||||||
|
_flip = serializedObject.FindProperty("m_Flip");
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnInspectorGUI()
|
||||||
|
{
|
||||||
|
serializedObject.Update();
|
||||||
|
DrawProperties();
|
||||||
|
serializedObject.ApplyModifiedProperties();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DrawProperties()
|
||||||
|
{
|
||||||
|
// Tone filter
|
||||||
|
if (DrawHeaderPopup(_toneFilter))
|
||||||
|
{
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(_toneIntensity);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Color filter
|
||||||
|
DrawSeparator();
|
||||||
|
var prevColorFilter = (ColorFilter)_colorFilter.intValue;
|
||||||
|
if (DrawHeaderPopup(_colorFilter))
|
||||||
|
{
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(_colorIntensity);
|
||||||
|
DrawColor(_color, (ColorFilter)_colorFilter.intValue, prevColorFilter, false);
|
||||||
|
EditorGUILayout.PropertyField(_colorGlow);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUI.EndChangeCheck();
|
||||||
|
|
||||||
|
// Sampling filter
|
||||||
|
DrawSeparator();
|
||||||
|
if (DrawHeaderPopup(_samplingFilter))
|
||||||
|
{
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(_samplingIntensity);
|
||||||
|
if (_samplingFilter.intValue == (int)SamplingFilter.EdgeAlpha
|
||||||
|
|| _samplingFilter.intValue == (int)SamplingFilter.EdgeLuminance)
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_samplingWidth);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Transition filter
|
||||||
|
DrawSeparator();
|
||||||
|
if (DrawHeaderPopup(_transitionFilter))
|
||||||
|
{
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(_transitionRate);
|
||||||
|
EditorGUILayout.PropertyField(_transitionTex);
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(_transitionTexScale, EditorGUIUtility.TrTempContent("Scale"));
|
||||||
|
EditorGUILayout.PropertyField(_transitionTexOffset, EditorGUIUtility.TrTempContent("Offset"));
|
||||||
|
EditorGUILayout.PropertyField(_transitionTexSpeed, EditorGUIUtility.TrTempContent("Speed"));
|
||||||
|
if (_transitionTexSpeed.vector2Value != Vector2.zero)
|
||||||
|
{
|
||||||
|
EditorApplication.QueuePlayerLoopUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.PropertyField(_transitionRotation, s_RotationLabel);
|
||||||
|
EditorGUILayout.PropertyField(_transitionKeepAspectRatio, s_KeepAspectRatioLabel);
|
||||||
|
EditorGUILayout.PropertyField(_transitionReverse, EditorGUIUtility.TrTempContent("Reverse"));
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
|
||||||
|
if (_transitionFilter.intValue == (int)TransitionFilter.Pattern)
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_transitionWidth, EditorGUIUtility.TrTempContent("Pattern Size"));
|
||||||
|
EditorGUILayout.PropertyField(_transitionRange, EditorGUIUtility.TrTempContent("Pattern Range"));
|
||||||
|
EditorGUILayout.PropertyField(_transitionPatternReverse,
|
||||||
|
EditorGUIUtility.TrTempContent("Pattern Reverse"));
|
||||||
|
DrawColor(_transitionColorFilter, _transitionColor, null);
|
||||||
|
}
|
||||||
|
else if (_transitionFilter.intValue == (int)TransitionFilter.Blaze)
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_transitionWidth);
|
||||||
|
DrawGradientField(_transitionGradient);
|
||||||
|
}
|
||||||
|
else if (2 < _transitionFilter.intValue)
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_transitionWidth);
|
||||||
|
EditorGUILayout.PropertyField(_transitionSoftness);
|
||||||
|
DrawColor(_transitionColorFilter, _transitionColor, _transitionColorGlow);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.PropertyField(_transitionAutoPlaySpeed);
|
||||||
|
if (0 < _transitionFilter.intValue && !Mathf.Approximately(0, _transitionAutoPlaySpeed.floatValue))
|
||||||
|
{
|
||||||
|
EditorApplication.QueuePlayerLoopUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Target
|
||||||
|
DrawSeparator();
|
||||||
|
if (DrawHeaderPopup(_targetMode))
|
||||||
|
{
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(_targetColor);
|
||||||
|
EditorGUILayout.PropertyField(_targetRange);
|
||||||
|
EditorGUILayout.PropertyField(_targetSoftness);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Blending
|
||||||
|
DrawSeparator();
|
||||||
|
if (!DrawHeaderPopup(_blendType))
|
||||||
|
{
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(_srcBlendMode);
|
||||||
|
EditorGUILayout.PropertyField(_dstBlendMode);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Shadow
|
||||||
|
DrawSeparator();
|
||||||
|
var prevShadowMode = (ShadowMode)_shadowMode.intValue;
|
||||||
|
if (DrawHeaderPopup(_shadowMode))
|
||||||
|
{
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
if ((ShadowMode)_shadowMode.intValue == ShadowMode.Mirror)
|
||||||
|
{
|
||||||
|
if (prevShadowMode != ShadowMode.Mirror)
|
||||||
|
{
|
||||||
|
_shadowDistanceX.floatValue = 0.5f;
|
||||||
|
_shadowDistanceY.floatValue = 0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.Slider(_shadowDistanceX, 0, 1, "Reflection");
|
||||||
|
EditorGUILayout.PropertyField(_shadowDistanceY, EditorGUIUtility.TrTempContent("Offset"));
|
||||||
|
EditorGUILayout.PropertyField(_shadowMirrorScale);
|
||||||
|
EditorGUILayout.PropertyField(_shadowFade);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (prevShadowMode == ShadowMode.Mirror)
|
||||||
|
{
|
||||||
|
_shadowDistanceX.floatValue = 1f;
|
||||||
|
_shadowDistanceY.floatValue = -1f;
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.PropertyField(_shadowDistance);
|
||||||
|
EditorGUILayout.PropertyField(_shadowIteration);
|
||||||
|
DrawColor(_shadowColorFilter, _shadowColor, _shadowColorGlow, false);
|
||||||
|
EditorGUILayout.PropertyField(_shadowFade);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Shadow blur intensity
|
||||||
|
switch ((SamplingFilter)_samplingFilter.intValue)
|
||||||
|
{
|
||||||
|
case SamplingFilter.BlurFast:
|
||||||
|
case SamplingFilter.BlurMedium:
|
||||||
|
case SamplingFilter.BlurDetail:
|
||||||
|
EditorGUILayout.PropertyField(_shadowBlurIntensity);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gradient
|
||||||
|
DrawSeparator();
|
||||||
|
if (DrawHeaderPopup(_gradationMode))
|
||||||
|
{
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(_gradationColorFilter);
|
||||||
|
switch ((GradationMode)_gradationMode.intValue)
|
||||||
|
{
|
||||||
|
case GradationMode.HorizontalGradient:
|
||||||
|
case GradationMode.VerticalGradient:
|
||||||
|
case GradationMode.AngleGradient:
|
||||||
|
case GradationMode.RadialGradient:
|
||||||
|
DrawGradientField(_gradationGradient);
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(_gradationWrapMode, EditorGUIUtility.TrTempContent("Wrap Mode"));
|
||||||
|
EditorGUILayout.PropertyField(_gradationReverse, EditorGUIUtility.TrTempContent("Reverse"));
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
break;
|
||||||
|
case GradationMode.Diagonal:
|
||||||
|
DrawColorPickerField("Top", _gradationColor1, _gradationColor2);
|
||||||
|
DrawColorPickerField("Bottom", _gradationColor3, _gradationColor4);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
DrawColorPickerField(EditorGUILayout.GetControlRect(), _gradationColor1, true);
|
||||||
|
var r = EditorGUILayout.GetControlRect();
|
||||||
|
r.width -= 24;
|
||||||
|
DrawColorPickerField(r, _gradationColor2, true);
|
||||||
|
|
||||||
|
r.x += r.width + 4;
|
||||||
|
r.width = 20;
|
||||||
|
SwapColorsButton(r, _gradationColor1, _gradationColor2);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.PropertyField(_gradationIntensity);
|
||||||
|
EditorGUILayout.PropertyField(_gradationOffset);
|
||||||
|
EditorGUILayout.PropertyField(_gradationScale);
|
||||||
|
|
||||||
|
if ((GradationMode)_gradationMode.intValue == GradationMode.Angle
|
||||||
|
|| (GradationMode)_gradationMode.intValue == GradationMode.AngleGradient)
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_gradationRotation);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.PropertyField(_transitionKeepAspectRatio, s_KeepAspectRatioLabel);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Edge Mode
|
||||||
|
DrawSeparator();
|
||||||
|
if (DrawHeaderPopup(_edgeMode))
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_edgeWidth);
|
||||||
|
DrawColor(_edgeColorFilter, _edgeColor, _edgeColorGlow);
|
||||||
|
|
||||||
|
if ((EdgeMode)_edgeMode.intValue == EdgeMode.Shiny)
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_edgeShinyRate);
|
||||||
|
EditorGUILayout.PropertyField(_edgeShinyWidth);
|
||||||
|
EditorGUILayout.PropertyField(_edgeShinyAutoPlaySpeed);
|
||||||
|
|
||||||
|
if (!Mathf.Approximately(0, _edgeShinyAutoPlaySpeed.floatValue))
|
||||||
|
{
|
||||||
|
EditorApplication.QueuePlayerLoopUpdate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_transitionFilter.intValue == (int)TransitionFilter.Pattern)
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_patternArea);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Detail filter
|
||||||
|
DrawSeparator();
|
||||||
|
if (DrawHeaderPopup(_detailFilter))
|
||||||
|
{
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
if ((DetailFilter)_detailFilter.intValue == DetailFilter.Masking)
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_detailThreshold);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_detailIntensity);
|
||||||
|
DrawColorPickerField(EditorGUILayout.GetControlRect(), _detailColor, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.PropertyField(_detailTex);
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
EditorGUILayout.PropertyField(_detailTexScale, EditorGUIUtility.TrTempContent("Scale"));
|
||||||
|
EditorGUILayout.PropertyField(_detailTexOffset, EditorGUIUtility.TrTempContent("Offset"));
|
||||||
|
EditorGUILayout.PropertyField(_detailTexSpeed, EditorGUIUtility.TrTempContent("Speed"));
|
||||||
|
if (_detailTexSpeed.vector2Value != Vector2.zero)
|
||||||
|
{
|
||||||
|
EditorApplication.QueuePlayerLoopUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.PropertyField(_transitionRotation, s_RotationLabel);
|
||||||
|
EditorGUILayout.PropertyField(_transitionKeepAspectRatio, s_KeepAspectRatioLabel);
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Flip
|
||||||
|
DrawSeparator();
|
||||||
|
DrawHeaderPopup(_flip);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void DrawColorPickerField(string label, SerializedProperty color1, SerializedProperty color2)
|
||||||
|
{
|
||||||
|
var labelWidth = EditorGUIUtility.labelWidth;
|
||||||
|
var r = EditorGUILayout.GetControlRect();
|
||||||
|
r.width -= 24;
|
||||||
|
EditorGUI.PrefixLabel(new Rect(r.x, r.y, labelWidth, r.height), EditorGUIUtility.TrTempContent(label));
|
||||||
|
|
||||||
|
var indentLevel = EditorGUI.indentLevel;
|
||||||
|
EditorGUI.indentLevel = 0;
|
||||||
|
var rPos = new Rect(r.x + labelWidth, r.y, (r.width - labelWidth) / 2, r.height);
|
||||||
|
DrawColorPickerField(rPos, GUIContent.none, color1, true);
|
||||||
|
|
||||||
|
rPos.x += rPos.width;
|
||||||
|
DrawColorPickerField(rPos, GUIContent.none, color2, true);
|
||||||
|
|
||||||
|
// Swap colors button
|
||||||
|
SwapColorsButton(new Rect(r.x + r.width + 4, r.y, 20, 20), color1, color2);
|
||||||
|
EditorGUI.indentLevel = indentLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void DrawColorPickerField(Rect rect, SerializedProperty color, bool showAlpha)
|
||||||
|
{
|
||||||
|
var label = EditorGUIUtility.TrTempContent(color.displayName);
|
||||||
|
label.tooltip = color.tooltip;
|
||||||
|
DrawColorPickerField(rect, label, color, showAlpha);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void DrawColorPickerField(Rect rect, GUIContent label, SerializedProperty color, bool showAlpha)
|
||||||
|
{
|
||||||
|
var hdr = UIEffectProjectSettings.useHdrColorPicker;
|
||||||
|
EditorGUI.showMixedValue = color.hasMultipleDifferentValues;
|
||||||
|
|
||||||
|
EditorGUI.BeginChangeCheck();
|
||||||
|
var colorValue = EditorGUI.ColorField(rect, label, color.colorValue, true, showAlpha, hdr);
|
||||||
|
if (EditorGUI.EndChangeCheck())
|
||||||
|
{
|
||||||
|
color.colorValue = colorValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void DrawGradientField(SerializedProperty gradient)
|
||||||
|
{
|
||||||
|
var r = EditorGUILayout.GetControlRect();
|
||||||
|
var label = EditorGUIUtility.TrTempContent(gradient.displayName);
|
||||||
|
label.tooltip = gradient.tooltip;
|
||||||
|
var hdr = UIEffectProjectSettings.useHdrColorPicker;
|
||||||
|
EditorGUI.showMixedValue = gradient.hasMultipleDifferentValues;
|
||||||
|
|
||||||
|
EditorGUI.BeginChangeCheck();
|
||||||
|
var gradientValue = EditorGUI.GradientField(r, label, s_GetGradient(gradient), hdr);
|
||||||
|
if (EditorGUI.EndChangeCheck())
|
||||||
|
{
|
||||||
|
s_SetGradient(gradient, gradientValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void DrawColor(SerializedProperty color, ColorFilter filter, ColorFilter prevFilter,
|
||||||
|
bool showAlpha = true)
|
||||||
|
{
|
||||||
|
if (filter == ColorFilter.None) return;
|
||||||
|
|
||||||
|
if (filter == ColorFilter.HsvModifier)
|
||||||
|
{
|
||||||
|
if (prevFilter != ColorFilter.HsvModifier)
|
||||||
|
{
|
||||||
|
color.colorValue = Color.black;
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.Slider(color.FindPropertyRelative("r"), -0.5f, 0.5f, "Hue");
|
||||||
|
EditorGUILayout.Slider(color.FindPropertyRelative("g"), -1f, 1f, "Saturation");
|
||||||
|
EditorGUILayout.Slider(color.FindPropertyRelative("b"), -1f, 1f, "Value");
|
||||||
|
EditorGUILayout.Slider(color.FindPropertyRelative("a"), 0, 1, "Alpha");
|
||||||
|
}
|
||||||
|
else if (filter == ColorFilter.Contrast)
|
||||||
|
{
|
||||||
|
if (prevFilter != ColorFilter.Contrast)
|
||||||
|
{
|
||||||
|
color.colorValue = Color.black;
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.Slider(color.FindPropertyRelative("r"), -1f, 1f, "Contrast");
|
||||||
|
EditorGUILayout.Slider(color.FindPropertyRelative("g"), -1f, 1f, "Brightness");
|
||||||
|
EditorGUILayout.Slider(color.FindPropertyRelative("a"), 0, 1, "Alpha");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (prevFilter == ColorFilter.HsvModifier || prevFilter == ColorFilter.Contrast)
|
||||||
|
{
|
||||||
|
color.colorValue = Color.white;
|
||||||
|
}
|
||||||
|
|
||||||
|
DrawColorPickerField(EditorGUILayout.GetControlRect(), color, showAlpha);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void DrawColor(SerializedProperty filter, SerializedProperty color, SerializedProperty glow,
|
||||||
|
bool showAlpha = true)
|
||||||
|
{
|
||||||
|
var prevFilter = (ColorFilter)filter.intValue;
|
||||||
|
EditorGUILayout.PropertyField(filter);
|
||||||
|
if (filter.intValue == (int)ColorFilter.None) return;
|
||||||
|
|
||||||
|
EditorGUI.indentLevel++;
|
||||||
|
DrawColor(color, (ColorFilter)filter.intValue, prevFilter, showAlpha);
|
||||||
|
|
||||||
|
if (glow != null)
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUI.indentLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void SwapColorsButton(Rect rect, SerializedProperty color1, SerializedProperty color2)
|
||||||
|
{
|
||||||
|
if (GUI.Button(rect, EditorGUIUtility.IconContent("preaudioloopoff"), "iconbutton"))
|
||||||
|
{
|
||||||
|
(color1.colorValue, color2.colorValue) = (color2.colorValue, color1.colorValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static bool DrawHeaderPopup(SerializedProperty sp)
|
||||||
|
{
|
||||||
|
var r = EditorGUILayout.GetControlRect();
|
||||||
|
var pos = EditorGUI.PrefixLabel(r, EditorGUIUtility.TrTempContent(sp.displayName), EditorStyles.boldLabel);
|
||||||
|
EditorGUI.PropertyField(pos, sp, GUIContent.none);
|
||||||
|
return 0 < sp.intValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static void DrawSeparator()
|
||||||
|
{
|
||||||
|
EditorGUILayout.Space(4);
|
||||||
|
GUILayout.Label(GUIContent.none, "sv_iconselector_sep", GUILayout.ExpandWidth(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2b54493685c0d4cf49bbc33b1492bed5
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Coffee.UIEffects.Editors
|
namespace Coffee.UIEffects.Editors
|
||||||
{
|
{
|
||||||
@@ -10,27 +11,82 @@ namespace Coffee.UIEffects.Editors
|
|||||||
public class UIEffectReplicaEditor : Editor
|
public class UIEffectReplicaEditor : Editor
|
||||||
{
|
{
|
||||||
private SerializedProperty _target;
|
private SerializedProperty _target;
|
||||||
|
private SerializedProperty _preset;
|
||||||
private SerializedProperty _useTargetTransform;
|
private SerializedProperty _useTargetTransform;
|
||||||
|
private SerializedProperty _samplingScale;
|
||||||
|
private SerializedProperty _allowToModifyMeshShape;
|
||||||
|
private SerializedProperty _customRoot;
|
||||||
private Editor _uiEffectEditor;
|
private Editor _uiEffectEditor;
|
||||||
|
|
||||||
private void OnEnable()
|
private void OnEnable()
|
||||||
{
|
{
|
||||||
_target = serializedObject.FindProperty("m_Target");
|
_target = serializedObject.FindProperty("m_Target");
|
||||||
|
_preset = serializedObject.FindProperty("m_Preset");
|
||||||
_useTargetTransform = serializedObject.FindProperty("m_UseTargetTransform");
|
_useTargetTransform = serializedObject.FindProperty("m_UseTargetTransform");
|
||||||
|
_samplingScale = serializedObject.FindProperty("m_SamplingScale");
|
||||||
|
_allowToModifyMeshShape = serializedObject.FindProperty("m_AllowToModifyMeshShape");
|
||||||
|
_customRoot = serializedObject.FindProperty("m_CustomRoot");
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnInspectorGUI()
|
public override void OnInspectorGUI()
|
||||||
{
|
{
|
||||||
serializedObject.Update();
|
serializedObject.Update();
|
||||||
EditorGUILayout.PropertyField(_target);
|
|
||||||
EditorGUILayout.PropertyField(_useTargetTransform);
|
|
||||||
|
|
||||||
if (_target.objectReferenceValue)
|
var r = EditorGUILayout.GetControlRect();
|
||||||
|
r.width -= 120;
|
||||||
|
if (_preset.objectReferenceValue)
|
||||||
|
{
|
||||||
|
EditorGUI.PropertyField(r, _preset);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
EditorGUI.PropertyField(r, _target);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Preset button.
|
||||||
|
r.x += r.width;
|
||||||
|
r.width = 60;
|
||||||
|
if (GUI.Button(r, EditorGUIUtility.TrTempContent("Preset"), "MiniPopup"))
|
||||||
|
{
|
||||||
|
UIEffectEditor.DropDownPreset(r, null, p =>
|
||||||
|
{
|
||||||
|
_target.objectReferenceValue = null;
|
||||||
|
_preset.objectReferenceValue = p;
|
||||||
|
_preset.serializedObject.ApplyModifiedProperties();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear button.
|
||||||
|
r.x += r.width;
|
||||||
|
r.width = 60;
|
||||||
|
if (GUI.Button(r, EditorGUIUtility.TrTempContent("Clear")))
|
||||||
|
{
|
||||||
|
_target.objectReferenceValue = null;
|
||||||
|
_preset.objectReferenceValue = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Preset mode warning.
|
||||||
|
if (_target.objectReferenceValue is UIEffect targetEffect && !targetEffect.gameObject.scene.IsValid())
|
||||||
|
{
|
||||||
|
r = EditorGUILayout.GetControlRect();
|
||||||
|
EditorGUI.HelpBox(r, "The target effect is not in the scene. (Preset mode)", MessageType.Warning);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.PropertyField(_useTargetTransform);
|
||||||
|
EditorGUI.BeginDisabledGroup(_useTargetTransform.boolValue);
|
||||||
|
EditorGUILayout.PropertyField(_customRoot);
|
||||||
|
EditorGUI.EndDisabledGroup();
|
||||||
|
|
||||||
|
EditorGUILayout.PropertyField(_samplingScale);
|
||||||
|
EditorGUILayout.PropertyField(_allowToModifyMeshShape);
|
||||||
|
|
||||||
|
var parent = _target.objectReferenceValue ?? _preset.objectReferenceValue;
|
||||||
|
if (parent)
|
||||||
{
|
{
|
||||||
EditorGUI.BeginDisabledGroup(true);
|
EditorGUI.BeginDisabledGroup(true);
|
||||||
CreateCachedEditor(_target.objectReferenceValue, null, ref _uiEffectEditor);
|
CreateCachedEditor(parent, null, ref _uiEffectEditor);
|
||||||
EditorGUILayout.BeginVertical(EditorStyles.helpBox);
|
EditorGUILayout.BeginVertical(EditorStyles.helpBox);
|
||||||
(_uiEffectEditor as UIEffect2Editor)?.DrawProperties();
|
(_uiEffectEditor as UIEffectPropertyEditor)?.DrawProperties();
|
||||||
EditorGUILayout.EndVertical();
|
EditorGUILayout.EndVertical();
|
||||||
EditorGUI.EndDisabledGroup();
|
EditorGUI.EndDisabledGroup();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using UnityEditor;
|
using System.Linq;
|
||||||
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Profiling;
|
using UnityEngine.Profiling;
|
||||||
|
|
||||||
@@ -6,44 +7,82 @@ namespace Coffee.UIEffects.Editors
|
|||||||
{
|
{
|
||||||
[CanEditMultipleObjects]
|
[CanEditMultipleObjects]
|
||||||
[CustomEditor(typeof(UIEffectTweener))]
|
[CustomEditor(typeof(UIEffectTweener))]
|
||||||
internal class UIMaterialPropertyTweenerEditor : Editor
|
internal class UIEffectTweenerEditor : Editor
|
||||||
{
|
{
|
||||||
private SerializedProperty _cullingMask;
|
private SerializedProperty _cullingMask;
|
||||||
private SerializedProperty _direction;
|
private SerializedProperty _direction;
|
||||||
private SerializedProperty _curve;
|
private SerializedProperty _curve;
|
||||||
|
private SerializedProperty _separateReverseCurve;
|
||||||
|
private SerializedProperty _reverseCurve;
|
||||||
private SerializedProperty _delay;
|
private SerializedProperty _delay;
|
||||||
private SerializedProperty _duration;
|
private SerializedProperty _duration;
|
||||||
private SerializedProperty _interval;
|
private SerializedProperty _interval;
|
||||||
private SerializedProperty _restartOnEnable;
|
private SerializedProperty _playOnEnable;
|
||||||
|
private SerializedProperty _resetTimeOnEnable;
|
||||||
private SerializedProperty _updateMode;
|
private SerializedProperty _updateMode;
|
||||||
private SerializedProperty _wrapMode;
|
private SerializedProperty _wrapMode;
|
||||||
|
private SerializedProperty _onComplete;
|
||||||
|
private SerializedProperty _onChangedRate;
|
||||||
|
private bool _isPlaying = false;
|
||||||
|
private double _lastTime;
|
||||||
|
|
||||||
private void OnEnable()
|
private void OnEnable()
|
||||||
{
|
{
|
||||||
_cullingMask = serializedObject.FindProperty("m_CullingMask");
|
_cullingMask = serializedObject.FindProperty("m_CullingMask");
|
||||||
_direction = serializedObject.FindProperty("m_Direction");
|
_direction = serializedObject.FindProperty("m_Direction");
|
||||||
_curve = serializedObject.FindProperty("m_Curve");
|
_curve = serializedObject.FindProperty("m_Curve");
|
||||||
_restartOnEnable = serializedObject.FindProperty("m_RestartOnEnable");
|
_separateReverseCurve = serializedObject.FindProperty("m_SeparateReverseCurve");
|
||||||
|
_reverseCurve = serializedObject.FindProperty("m_ReverseCurve");
|
||||||
|
_playOnEnable = serializedObject.FindProperty("m_PlayOnEnable");
|
||||||
|
_resetTimeOnEnable = serializedObject.FindProperty("m_ResetTimeOnEnable");
|
||||||
_delay = serializedObject.FindProperty("m_Delay");
|
_delay = serializedObject.FindProperty("m_Delay");
|
||||||
_duration = serializedObject.FindProperty("m_Duration");
|
_duration = serializedObject.FindProperty("m_Duration");
|
||||||
_interval = serializedObject.FindProperty("m_Interval");
|
_interval = serializedObject.FindProperty("m_Interval");
|
||||||
_wrapMode = serializedObject.FindProperty("m_WrapMode");
|
_wrapMode = serializedObject.FindProperty("m_WrapMode");
|
||||||
_updateMode = serializedObject.FindProperty("m_UpdateMode");
|
_updateMode = serializedObject.FindProperty("m_UpdateMode");
|
||||||
|
_onComplete = serializedObject.FindProperty("m_OnComplete");
|
||||||
|
_onChangedRate = serializedObject.FindProperty("m_OnChangedRate");
|
||||||
|
|
||||||
|
EditorApplication.update += UpdateTweeners;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnDisable()
|
||||||
|
{
|
||||||
|
EditorApplication.update -= UpdateTweeners;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnInspectorGUI()
|
public override void OnInspectorGUI()
|
||||||
{
|
{
|
||||||
Profiler.BeginSample("(MPI)[MPTweenerEditor] OnInspectorGUI");
|
Profiler.BeginSample("(UIE)[UIEffectTweener] OnInspectorGUI");
|
||||||
serializedObject.UpdateIfRequiredOrScript();
|
serializedObject.UpdateIfRequiredOrScript();
|
||||||
EditorGUILayout.PropertyField(_cullingMask);
|
EditorGUILayout.PropertyField(_cullingMask);
|
||||||
|
|
||||||
|
if (0 != (_cullingMask.intValue & (int)UIEffectTweener.CullingMask.Event))
|
||||||
|
{
|
||||||
|
EditorGUILayout.PropertyField(_onChangedRate);
|
||||||
|
}
|
||||||
|
|
||||||
EditorGUILayout.PropertyField(_direction);
|
EditorGUILayout.PropertyField(_direction);
|
||||||
EditorGUILayout.PropertyField(_curve);
|
EditorGUILayout.PropertyField(_curve);
|
||||||
|
|
||||||
|
var pos = EditorGUILayout.GetControlRect();
|
||||||
|
var rect = new Rect(pos.x, pos.y, EditorGUIUtility.labelWidth + 20, pos.height);
|
||||||
|
EditorGUI.PropertyField(rect, _separateReverseCurve);
|
||||||
|
if (_separateReverseCurve.boolValue)
|
||||||
|
{
|
||||||
|
rect.x += rect.width;
|
||||||
|
rect.width = pos.width - rect.width;
|
||||||
|
EditorGUI.PropertyField(rect, _reverseCurve, GUIContent.none);
|
||||||
|
}
|
||||||
|
|
||||||
EditorGUILayout.PropertyField(_delay);
|
EditorGUILayout.PropertyField(_delay);
|
||||||
EditorGUILayout.PropertyField(_duration);
|
EditorGUILayout.PropertyField(_duration);
|
||||||
EditorGUILayout.PropertyField(_interval);
|
EditorGUILayout.PropertyField(_interval);
|
||||||
EditorGUILayout.PropertyField(_restartOnEnable);
|
EditorGUILayout.PropertyField(_playOnEnable);
|
||||||
|
EditorGUILayout.PropertyField(_resetTimeOnEnable);
|
||||||
EditorGUILayout.PropertyField(_wrapMode);
|
EditorGUILayout.PropertyField(_wrapMode);
|
||||||
EditorGUILayout.PropertyField(_updateMode);
|
EditorGUILayout.PropertyField(_updateMode);
|
||||||
|
EditorGUILayout.PropertyField(_onComplete);
|
||||||
serializedObject.ApplyModifiedProperties();
|
serializedObject.ApplyModifiedProperties();
|
||||||
DrawPlayer(target as UIEffectTweener);
|
DrawPlayer(target as UIEffectTweener);
|
||||||
Profiler.EndSample();
|
Profiler.EndSample();
|
||||||
@@ -53,74 +92,62 @@ namespace Coffee.UIEffects.Editors
|
|||||||
{
|
{
|
||||||
if (!tweener) return;
|
if (!tweener) return;
|
||||||
|
|
||||||
EditorGUILayout.BeginHorizontal();
|
EditorGUILayout.Space(4);
|
||||||
EditorGUI.BeginDisabledGroup(!Application.isPlaying);
|
GUILayout.Label(GUIContent.none, "sv_iconselector_sep", GUILayout.ExpandWidth(true));
|
||||||
var icon = EditorGUIUtility.IconContent("icons/playbutton.png");
|
|
||||||
var r = EditorGUILayout.GetControlRect(false);
|
|
||||||
|
|
||||||
var rButton = new Rect(r.x, r.y, 20, r.height);
|
EditorGUILayout.BeginHorizontal();
|
||||||
if (GUI.Button(rButton, icon, "IconButton"))
|
var r = EditorGUILayout.GetControlRect(false);
|
||||||
|
var rResetTimeButton = new Rect(r.x, r.y, 20, r.height);
|
||||||
|
if (GUI.Button(rResetTimeButton, EditorGUIUtility.IconContent("animation.firstkey"), "IconButton"))
|
||||||
{
|
{
|
||||||
tweener.SetTime(0);
|
ResetTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorGUI.EndDisabledGroup();
|
var rPlayButton = new Rect(r.x + 20, r.y, 20, r.height);
|
||||||
|
if (GUI.Button(rPlayButton, EditorGUIUtility.IconContent("playbutton"), "IconButton"))
|
||||||
|
{
|
||||||
|
SetPlaying(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
var rPauseButton = new Rect(r.x + 40, r.y, 20, r.height);
|
||||||
|
if (GUI.Button(rPauseButton, EditorGUIUtility.IconContent("pausebutton"), "IconButton"))
|
||||||
|
{
|
||||||
|
SetPlaying(false);
|
||||||
|
}
|
||||||
|
|
||||||
var totalTime = tweener.totalTime;
|
var totalTime = tweener.totalTime;
|
||||||
var time = tweener.time;
|
var time = tweener.time;
|
||||||
var label = EditorGUIUtility.TrTempContent($"{time:N2}/{totalTime:N2}");
|
var label = EditorGUIUtility.TrTempContent($"{time:N2}/{totalTime:N2}");
|
||||||
var wLabel = Mathf.CeilToInt(EditorStyles.label.CalcSize(label).x / 5f) * 5f;
|
var rLabel = new Rect(r.x + r.width - 80, r.y, 80, r.height);
|
||||||
wLabel = 80;
|
|
||||||
var rLabel = new Rect(r.x + r.width - wLabel, r.y, wLabel, r.height);
|
|
||||||
GUI.Label(rLabel, label, "RightLabel");
|
GUI.Label(rLabel, label, "RightLabel");
|
||||||
EditorGUILayout.EndHorizontal();
|
EditorGUILayout.EndHorizontal();
|
||||||
|
|
||||||
EditorGUI.BeginChangeCheck();
|
EditorGUI.BeginChangeCheck();
|
||||||
var rSlider = new Rect(r.x + 20, r.y, r.width - wLabel - 20, r.height);
|
var rSlider = new Rect(r.x + 60, r.y, r.width - 140, r.height);
|
||||||
|
var r0 = new Rect(rSlider.x, rSlider.y + 4, rSlider.width, rSlider.height - 8);
|
||||||
|
r0.x += DrawBackground(r0, rSlider.width * tweener.delay / totalTime, Color.blue);
|
||||||
|
r0.x += DrawBackground(r0, rSlider.width * tweener.duration / totalTime, Color.green);
|
||||||
|
|
||||||
//
|
if (UIEffectTweener.WrapMode.Loop <= tweener.wrapMode)
|
||||||
|
{
|
||||||
var
|
r0.x += DrawBackground(r0, rSlider.width * tweener.interval / totalTime, Color.red);
|
||||||
r0 = rSlider; //new Rect(rSlider.x, rSlider.y, rSlider.width * tweener.interval / totalTime, rSlider.height);
|
}
|
||||||
r0.y += 4;
|
|
||||||
r0.height -= 8;
|
|
||||||
r0.width = rSlider.width * tweener.delay / totalTime;
|
|
||||||
GUI.color = Color.blue;
|
|
||||||
GUI.Label(r0, GUIContent.none, "TE DefaultTime");
|
|
||||||
|
|
||||||
r0.x += r0.width;
|
|
||||||
r0.width = rSlider.width * tweener.duration / totalTime;
|
|
||||||
GUI.color = Color.green;
|
|
||||||
GUI.Label(r0, GUIContent.none, "TE DefaultTime");
|
|
||||||
|
|
||||||
r0.x += r0.width;
|
|
||||||
r0.width = rSlider.width * tweener.interval / totalTime;
|
|
||||||
GUI.color = Color.red;
|
|
||||||
GUI.Label(r0, GUIContent.none, "TE DefaultTime");
|
|
||||||
|
|
||||||
if (UIEffectTweener.WrapMode.PingPongOnce <= tweener.wrapMode)
|
if (UIEffectTweener.WrapMode.PingPongOnce <= tweener.wrapMode)
|
||||||
{
|
{
|
||||||
r0.x += r0.width;
|
r0.x += DrawBackground(r0, rSlider.width * tweener.duration / totalTime, Color.green);
|
||||||
r0.width = rSlider.width * tweener.duration / totalTime;
|
|
||||||
GUI.color = Color.green;
|
|
||||||
GUI.Label(r0, GUIContent.none, "TE DefaultTime");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (UIEffectTweener.WrapMode.PingPongLoop <= tweener.wrapMode)
|
if (UIEffectTweener.WrapMode.PingPongLoop <= tweener.wrapMode)
|
||||||
{
|
{
|
||||||
r0.x += r0.width;
|
r0.x += DrawBackground(r0, rSlider.width * tweener.interval / totalTime, Color.red);
|
||||||
r0.width = rSlider.width * tweener.interval / totalTime;
|
|
||||||
GUI.color = Color.red;
|
|
||||||
GUI.Label(r0, GUIContent.none, "TE DefaultTime");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
GUI.color = Color.white;
|
GUI.color = Color.white;
|
||||||
|
|
||||||
time = GUI.HorizontalSlider(rSlider, time, 0, totalTime);
|
time = GUI.HorizontalSlider(rSlider, time, 0, totalTime);
|
||||||
if (EditorGUI.EndChangeCheck())
|
if (EditorGUI.EndChangeCheck())
|
||||||
{
|
{
|
||||||
tweener.SetTime(time);
|
SetTime(time);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Application.isPlaying && tweener.isActiveAndEnabled)
|
if (Application.isPlaying && tweener.isActiveAndEnabled)
|
||||||
@@ -129,21 +156,64 @@ namespace Coffee.UIEffects.Editors
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// private static void PostAddElement(SerializedProperty prop, string propertyName)
|
private static float DrawBackground(Rect r, float width, Color color)
|
||||||
// {
|
{
|
||||||
// prop.FindPropertyRelative("m_From.m_Type").intValue = -1;
|
r.width = width;
|
||||||
// prop.FindPropertyRelative("m_From.m_PropertyName").stringValue = propertyName;
|
GUI.color = color;
|
||||||
// prop.FindPropertyRelative("m_To.m_Type").intValue = -1;
|
GUI.Label(r, GUIContent.none, "TE DefaultTime");
|
||||||
// prop.FindPropertyRelative("m_To.m_PropertyName").stringValue = propertyName;
|
return width;
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// private void ResetCallback()
|
private void SetTime(float time)
|
||||||
// {
|
{
|
||||||
// var current = serializedObject.targetObject as UIEffectTweener;
|
foreach (var tweener in targets.OfType<UIEffectTweener>())
|
||||||
// if (!current) return;
|
{
|
||||||
//
|
tweener.SetTime(time);
|
||||||
// Undo.RecordObject(current, "Reset Values");
|
}
|
||||||
// current.ResetPropertiesToDefault();
|
}
|
||||||
// }
|
|
||||||
|
private void ResetTime()
|
||||||
|
{
|
||||||
|
foreach (var tweener in targets.OfType<UIEffectTweener>())
|
||||||
|
{
|
||||||
|
tweener.ResetTime(tweener.direction);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetPlaying(bool enable)
|
||||||
|
{
|
||||||
|
if (!EditorApplication.isPlaying)
|
||||||
|
{
|
||||||
|
_isPlaying = enable;
|
||||||
|
_lastTime = EditorApplication.timeSinceStartup;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var tweener in targets.OfType<UIEffectTweener>())
|
||||||
|
{
|
||||||
|
if (enable)
|
||||||
|
{
|
||||||
|
tweener.Play(false);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tweener.SetPause(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void UpdateTweeners()
|
||||||
|
{
|
||||||
|
if (!_isPlaying || EditorApplication.isPlayingOrWillChangePlaymode) return;
|
||||||
|
|
||||||
|
var delta = (float)(EditorApplication.timeSinceStartup - _lastTime);
|
||||||
|
_lastTime = EditorApplication.timeSinceStartup;
|
||||||
|
foreach (var tweener in targets.OfType<UIEffectTweener>())
|
||||||
|
{
|
||||||
|
tweener.UpdateTime(tweener.direction == UIEffectTweener.Direction.Forward ? delta : -delta);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorApplication.QueuePlayerLoopUpdate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+382
-66
@@ -1,4 +1,4 @@
|
|||||||
# <img alt="logo" height="26" src="https://github.com/user-attachments/assets/dc72baf5-eadf-463e-abc9-464477fd0b9e"/> UIEffect v5 <!-- omit in toc -->
|
# <img alt="logo" height="26" src="https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-logo.png"/> UIEffect v5 <!-- omit in toc -->
|
||||||
|
|
||||||
[](https://openupm.com/packages/com.coffee.ui-effect/)
|
[](https://openupm.com/packages/com.coffee.ui-effect/)
|
||||||
[](https://github.com/mob-sakai/UIEffect/releases)
|
[](https://github.com/mob-sakai/UIEffect/releases)
|
||||||
@@ -6,6 +6,8 @@
|
|||||||

|

|
||||||

|

|
||||||

|

|
||||||
|

|
||||||
|

|
||||||

|

|
||||||

|

|
||||||
[](https://github.com/mob-sakai/UIEffect/blob/main/LICENSE.md)
|
[](https://github.com/mob-sakai/UIEffect/blob/main/LICENSE.md)
|
||||||
@@ -19,11 +21,14 @@
|
|||||||
|
|
||||||
## 📝 Description <!-- omit in toc -->
|
## 📝 Description <!-- omit in toc -->
|
||||||
|
|
||||||
**_"Decorate your uGUI, simply and powerfully."_**
|
**_"Decorate your UI, simply and powerfully."_**
|
||||||
UIEffect is an open-source package that allows you to intuitively apply rich UI effects directly from the Inspector or via code.
|
|
||||||
Combine various filters, such as grayscale, blur, and dissolve, to decorate your UI with a unique visual style!
|
|
||||||
|
|
||||||

|
UIEffect is a powerful, open-source Unity package that transforms your UI with stunning visual effects.
|
||||||
|
Apply professional-grade filters like grayscale, blur, and dissolve directly from the Inspector—no coding required!
|
||||||
|
|
||||||
|
✨ **Perfect for**: Game developers, UI designers, and anyone looking to enhance their Unity UI with minimal effort
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- [📌 Key Features](#-key-features)
|
- [📌 Key Features](#-key-features)
|
||||||
- [🎮 Demo](#-demo)
|
- [🎮 Demo](#-demo)
|
||||||
@@ -32,17 +37,35 @@ Combine various filters, such as grayscale, blur, and dissolve, to decorate your
|
|||||||
- [Install via UPM (with Package Manager UI)](#install-via-upm-with-package-manager-ui)
|
- [Install via UPM (with Package Manager UI)](#install-via-upm-with-package-manager-ui)
|
||||||
- [Install via UPM (Manually)](#install-via-upm-manually)
|
- [Install via UPM (Manually)](#install-via-upm-manually)
|
||||||
- [Install as Embedded Package](#install-as-embedded-package)
|
- [Install as Embedded Package](#install-as-embedded-package)
|
||||||
- [Additional Resource Imports](#additional-resource-imports)
|
- [Import Additional Resources](#import-additional-resources)
|
||||||
- [🔄 Upgrading from v4 to v5](#-upgrading-from-v4-to-v5)
|
- [🔄 Upgrading from v4 to v5](#-upgrading-from-v4-to-v5)
|
||||||
- [🚀 Usage](#-usage)
|
- [🚀 Usage](#-usage)
|
||||||
- [Getting Started](#getting-started)
|
- [Getting Started](#getting-started)
|
||||||
- [Component: UIEffect](#component-uieffect)
|
- [Component: UIEffect](#component-uieffect)
|
||||||
|
- [Tone Filter](#tone-filter)
|
||||||
|
- [Color Filter](#color-filter)
|
||||||
|
- [Sampling Filter](#sampling-filter)
|
||||||
|
- [Transition Filter](#transition-filter)
|
||||||
|
- [Target Mode](#target-mode)
|
||||||
|
- [Blend Type](#blend-type)
|
||||||
|
- [Shadow Mode](#shadow-mode)
|
||||||
|
- [Gradation Mode](#gradation-mode)
|
||||||
|
- [Edge Mode](#edge-mode)
|
||||||
|
- [Detail Filter](#detail-filter)
|
||||||
|
- [Flip](#flip)
|
||||||
|
- [Others](#others)
|
||||||
- [Component: UIEffectTweener](#component-uieffecttweener)
|
- [Component: UIEffectTweener](#component-uieffecttweener)
|
||||||
- [Component: UIEffectReplica](#component-uieffectreplica)
|
- [Component: UIEffectReplica](#component-uieffectreplica)
|
||||||
- [Usage with TextMeshPro](#usage-with-textmeshpro)
|
- [Usage with TextMeshPro](#usage-with-textmeshpro)
|
||||||
|
- [Usage with SoftMaskForUGUI](#usage-with-softmaskforugui)
|
||||||
|
- [Usage with ShaderGraph](#usage-with-shadergraph)
|
||||||
|
- [Usage with Timeline](#usage-with-timeline)
|
||||||
- [Runtime/Editor Preset for UIEffect](#runtimeeditor-preset-for-uieffect)
|
- [Runtime/Editor Preset for UIEffect](#runtimeeditor-preset-for-uieffect)
|
||||||
- [Usage with Code](#usage-with-code)
|
- [Usage with Code](#usage-with-code)
|
||||||
- [Project Settings](#project-settings)
|
- [Project Settings](#project-settings)
|
||||||
|
- [Settings](#settings)
|
||||||
|
- [Editor](#editor)
|
||||||
|
- [Shader](#shader)
|
||||||
- [:warning: Limitations](#warning-limitations)
|
- [:warning: Limitations](#warning-limitations)
|
||||||
- [🤝 Contributing](#-contributing)
|
- [🤝 Contributing](#-contributing)
|
||||||
- [Issues](#issues)
|
- [Issues](#issues)
|
||||||
@@ -56,7 +79,7 @@ Combine various filters, such as grayscale, blur, and dissolve, to decorate your
|
|||||||
|
|
||||||
## 📌 Key Features
|
## 📌 Key Features
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- **UIEffect is out-of-the-box!**: Easily apply effects by adjusting parameters directly in the inspector.
|
- **UIEffect is out-of-the-box!**: Easily apply effects by adjusting parameters directly in the inspector.
|
||||||
- **Rich effect combinations**: Decorate your UI with a variety of effects, such as grayscale, blur, and dissolve, by combining multiple filters and parameters.
|
- **Rich effect combinations**: Decorate your UI with a variety of effects, such as grayscale, blur, and dissolve, by combining multiple filters and parameters.
|
||||||
@@ -68,15 +91,20 @@ Combine various filters, such as grayscale, blur, and dissolve, to decorate your
|
|||||||
- **UIEffectTweener Component**: A simple tweener component to play, stop, pause, and resume effects.
|
- **UIEffectTweener Component**: A simple tweener component to play, stop, pause, and resume effects.
|
||||||
- **AnimationClip support**: Allows control of effect animations using `AnimationClips`.
|
- **AnimationClip support**: Allows control of effect animations using `AnimationClips`.
|
||||||
- **v4 compatible components (optional)**: For easy upgrading with minimal changes, compatible v4 components are available optionally.
|
- **v4 compatible components (optional)**: For easy upgrading with minimal changes, compatible v4 components are available optionally.
|
||||||
|
- **SoftMaskForUGUI support (optional)**: Compatible with SoftMaskForUGUI for creating soft masks for UI elements. See for more details [here](#usage-with-softmaskforugui).
|
||||||
|
- **ShaderGraph support (optional)**: Add `Canvas (UIEffect)` sub target (material) for UIEffect shaders. See for more details [here](#usage-with-shadergraph).
|
||||||
|
- **Timeline support**: Control UIEffect using Timeline with `ControlTrack` and `UIEffect Tracks`. See for more details [here](#usage-with-timeline).
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
## 🎮 Demo
|
## 🎮 Demo
|
||||||
|
|
||||||

|

|
||||||

|
<img src="https://github.com/mob-sakai/mob-sakai/releases/download/docs/uieffect5.7.0-demo-pattern.gif" width="582"/>
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
[WebGL Demo](https://mob-sakai.github.io/UIEffect/)
|
[Try the WebGL Demo](https://mob-sakai.github.io/UIEffect/)
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
@@ -86,7 +114,7 @@ _This package requires **Unity 2020.3 or later**._
|
|||||||
|
|
||||||
### Install via OpenUPM
|
### Install via OpenUPM
|
||||||
|
|
||||||
- This package is available on [OpenUPM](https://openupm.com) package registry.
|
- This package is available on [OpenUPM](https://openupm.com/packages/com.coffee.ui-effect/) package registry.
|
||||||
- This is the preferred method of installation, as you can easily receive updates as they're released.
|
- This is the preferred method of installation, as you can easily receive updates as they're released.
|
||||||
- If you have [openupm-cli](https://github.com/openupm/openupm-cli) installed, then run the following command in your project's directory:
|
- If you have [openupm-cli](https://github.com/openupm/openupm-cli) installed, then run the following command in your project's directory:
|
||||||
```
|
```
|
||||||
@@ -94,16 +122,16 @@ _This package requires **Unity 2020.3 or later**._
|
|||||||
```
|
```
|
||||||
- To update the package, use Package Manager UI (`Window > Package Manager`) or run the following command with `@{version}`:
|
- To update the package, use Package Manager UI (`Window > Package Manager`) or run the following command with `@{version}`:
|
||||||
```
|
```
|
||||||
openupm add com.coffee.ui-effect@5.0.0
|
openupm add com.coffee.ui-effect@5.9.0
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install via UPM (with Package Manager UI)
|
### Install via UPM (with Package Manager UI)
|
||||||
|
|
||||||
- Click `Window > Package Manager` to open Package Manager UI.
|
- Click `Window > Package Manager` to open Package Manager UI.
|
||||||
- Click `+ > Add package from git URL...` and input the repository URL: `https://github.com/mob-sakai/UIEffect.git?path=Packages/src`
|
- Click `+ > Add package from git URL...` and input the repository URL: `https://github.com/mob-sakai/UIEffect.git?path=Packages/src`
|
||||||

|

|
||||||
- To update the package, change suffix `#{version}` to the target version.
|
- To update the package, change suffix `#{version}` to the target version.
|
||||||
- e.g. `https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.0.0`
|
- e.g. `https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.9.0`
|
||||||
|
|
||||||
### Install via UPM (Manually)
|
### Install via UPM (Manually)
|
||||||
|
|
||||||
@@ -118,23 +146,25 @@ _This package requires **Unity 2020.3 or later**._
|
|||||||
```
|
```
|
||||||
|
|
||||||
- To update the package, change suffix `#{version}` to the target version.
|
- To update the package, change suffix `#{version}` to the target version.
|
||||||
- e.g. `"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.0.0",`
|
- e.g. `"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.9.0",`
|
||||||
|
|
||||||
### Install as Embedded Package
|
### Install as Embedded Package
|
||||||
|
|
||||||
1. Download a source code zip file from [Releases](https://github.com/mob-sakai/UIEffect/releases) and extract it.
|
1. Download the `Source code (zip)` file from [Releases](https://github.com/mob-sakai/UIEffect/releases) and
|
||||||
2. Place `<extracted_dir>/Packages/src` directory in your project's `Packages` directory.
|
extract it.
|
||||||

|
2. Move the `<extracted_dir>/Packages/src` directory into your project's `Packages` directory.
|
||||||
- You can rename the `src` directory.
|

|
||||||
- If you want to fix bugs or add features, install it as an embedded package.
|
- You can rename the `src` directory if needed.
|
||||||
- To update the package, you need to re-download it and replace the contents.
|
- If you intend to fix bugs or add features, installing it as an embedded package is recommended.
|
||||||
|
- To update the package, re-download it and replace the existing contents.
|
||||||
|
|
||||||
### Additional Resource Imports
|
### Import Additional Resources
|
||||||
|
|
||||||
UIEffect includes additional resources to import.
|
Additional resources can be imported to extend functionality.
|
||||||
|
|
||||||
- [🔄 Upgrading from v4 to v5](#-upgrading-from-v4-to-v5)
|
- [🔄 Upgrading from v4 to v5](#-upgrading-from-v4-to-v5)
|
||||||
- [Usage with TextMeshPro](#usage-with-textmeshpro)
|
- [Usage with TextMeshPro](#usage-with-textmeshpro)
|
||||||
|
- [Usage with ShaderGraph](#usage-with-shadergraph)
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
@@ -150,17 +180,17 @@ If upgrading from UIEffect v4 to v5, note the following breaking changes:
|
|||||||
|
|
||||||
// v5
|
// v5
|
||||||
"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src",
|
"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src",
|
||||||
|
"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src#main",
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Import the `v4 Compatible Components` sample from the Package Manager window.
|
2. Import the `v4 Compatible Components` sample from the Package Manager window.
|
||||||

|
|
||||||
|
|
||||||
3. All v4 components are obsolete.
|
3. All v4 components are obsolete.
|
||||||
- v4 `UIEffect` component is now `UIEffectV4` component. Change the reference in the code.
|
- v4 `UIEffect` component is now `UIEffectV4` component. Change the reference in the code.
|
||||||
- The `effectArea` property in some components are not supported in v5.
|
- The `effectArea` property in some components are not supported in v5.
|
||||||
- `UIShadow`, `UIGradient`, `UIFlip` components are not supported in v5.
|
- `UIShadow`, `UIGradient` components are not supported in v5.
|
||||||
- v4 components can be converted to v5 `UIEffect` component by selecting `Convert To UIEffect` from the context menu.
|
- v4 components can be converted to v5 `UIEffect` component by selecting `Convert To UIEffect` from the context menu.
|
||||||

|

|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
@@ -171,107 +201,364 @@ If upgrading from UIEffect v4 to v5, note the following breaking changes:
|
|||||||
1. [Install the package](#-installation).
|
1. [Install the package](#-installation).
|
||||||
|
|
||||||
2. Add a `UIEffect` component to a UI element (Image, RawImage, Text, TextMeshProUGUI, etc...) from the `Add Component` in the inspector or `Component > UI > UIEffect` menu.
|
2. Add a `UIEffect` component to a UI element (Image, RawImage, Text, TextMeshProUGUI, etc...) from the `Add Component` in the inspector or `Component > UI > UIEffect` menu.
|
||||||

|

|
||||||
|
|
||||||
3. Adjust the effect filters and parameters in the inspector.
|
3. Set `Tone Filter` to `Grayscale` and `Tone Intensity` to `1.0`.
|
||||||

|
<img src="https://github.com/mob-sakai/mob-sakai/releases/download/docs/1749029605043.png" width="480"/>
|
||||||
|
|
||||||
4. Enjoy!
|
4. Try other effect filters and parameters in the inspector.
|
||||||
|

|
||||||
|
|
||||||
|
5. From the top menu, you can load/append preset.
|
||||||
|
> [!TIP]
|
||||||
|
> `Load` overwrites all properties with the preset, while `Append` only overwrites enabled filters and modes with the preset.
|
||||||
|
> You can easily build effects by combining them with `Append`.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
5. Enjoy!
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
### Component: UIEffect
|
### Component: UIEffect
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
The `UIEffect` component applies visual effects to UI elements, allowing various effects to be achieved by combining multiple filters.
|
The `UIEffect` component applies visual effects to UI elements, allowing various effects to be achieved by combining multiple filters.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> From the top menu, you can load and save the editor presets or clear settings.
|
||||||
|
> For details, refer to the [Runtime/Editor Preset for UIEffect](#runtimeeditor-preset-for-uieffect).
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Tone Filter
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **Tone Filter**: `None`, `Grayscale`, `Sepia`, `Nega`, `Retro`, `Posterize`
|
- **Tone Filter**: `None`, `Grayscale`, `Sepia`, `Nega`, `Retro`, `Posterize`
|
||||||
|

|
||||||
- **Tone Intensity**: 0.0 (no effect) - 1.0 (full effect).
|
- **Tone Intensity**: 0.0 (no effect) - 1.0 (full effect).
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Color Filter
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`, `Hsv Modifier`, `Contrast`
|
- **Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`, `Hsv Modifier`, `Contrast`
|
||||||
|

|
||||||
- **Color Intensity**: 0.0 (no effect) - 1.0 (full effect).
|
- **Color Intensity**: 0.0 (no effect) - 1.0 (full effect).
|
||||||
|
- **Color Glow**: Set the color to glow.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Sampling Filter
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **Sampling Filter**: `None`, `Blur Fast`, `Blur Medium`, `Blur Detail`, `Pixelation`, `Rgb Shift`, `Edge Luminescence`, `Edge Alpha`
|
- **Sampling Filter**: `None`, `Blur Fast`, `Blur Medium`, `Blur Detail`, `Pixelation`, `Rgb Shift`, `Edge Luminescence`, `Edge Alpha`
|
||||||
|

|
||||||
- **Sampling Intensity**: 0.0 (no effect) - 1.0 (full effect).
|
- **Sampling Intensity**: 0.0 (no effect) - 1.0 (full effect).
|
||||||
- **Transition Filter**: `None`, `Fade`, `Cutoff`, `Dissolve`, `Shiny`, `Mask`, `Melt`, `Burn`
|
- **Sampling Width**: The width of the sampling effect.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Transition Filter
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- **Transition Filter**: `None`, `Fade`, `Cutoff`, `Dissolve`, `Shiny`, `Mask`, `Melt`, `Burn`, `Blaze`, `Pattern`
|
||||||
|

|
||||||
- **Transition Rate**: 0.0 (no effect) - 1.0 (full effect).
|
- **Transition Rate**: 0.0 (no effect) - 1.0 (full effect).
|
||||||
- **Transition Tex**: The texture used for the transition filter.- **Transition Width**: The width where the transition color is applied.
|
- **Transition Tex**: The texture used for the transition filter.
|
||||||
|
- **Scale**, **Offset**, **Speed**, **Rotation**, **Keep Aspect Ratio**, **Reverse**: Additional properties for the texture.
|
||||||
|
- ⚠️ NOTE: `Rotation` is shared with `Transition Filter` and `Detail Filter`.
|
||||||
|
- ⚠️ NOTE: `Keep Aspect Ratio` is shared with `Transition Filter` and `Gradation Mode` and `Detail Filter`.
|
||||||
|
- **Transition Width**: The width where the transition color is applied.
|
||||||
|
- **Transition Pattern Range**: The range of the pattern.
|
||||||
|
- **Transition Pattern Reverse**: Reverse the pattern.
|
||||||
- **Transition Softness**: The softness of the boundary for the transition color.
|
- **Transition Softness**: The softness of the boundary for the transition color.
|
||||||
- **Transition Color Filter/Transition Color**: Specifies the transition color.
|
- **Transition Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`, `Hsv Modifier`, `Contrast`
|
||||||
|
- **Transition Color**: The color of the transition.
|
||||||
|
- **Transition Color Glow**: Set the transition color to glow.
|
||||||
|
- **Transition Auto Play Speed**: The speed of the transition animation (using shader side `_Time`). You can use this property to loop the `TransitionRate` without tweener or animation.
|
||||||
|
- ⚠️ NOTE: This uses scaled time (affected by `Time.timeScale`). If you need unscaled time (useful for pause-resistant effects), use the [UIEffectTweener](#component-uieffecttweener) component instead.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> **Transition Tex** applies transitions using its alpha channel.
|
||||||
|
> If you use `Scale`, `Offset`, or `Speed`, set `Wrap Mode = Repeat` in the texture import settings.
|
||||||
|
> For details, refer to the textures included in the built-in presets.
|
||||||
|
> 
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Target Mode
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **Target Mode**: `None`, `Hue`, `Luminance`
|
- **Target Mode**: `None`, `Hue`, `Luminance`
|
||||||
|

|
||||||
- Restricts the effect application area based on hue or luminance.
|
- Restricts the effect application area based on hue or luminance.
|
||||||
- **Target Range**: The range of target hue or luminance.
|
- **Target Range**: The range of target hue or luminance.
|
||||||
- **Target Softness**: The softness of the target boundary.
|
- **Target Softness**: The softness of the target boundary.
|
||||||
- **Blend Type**: `Alpha Blend`, `Multiply`, `Additive`, `Soft Additive`, `Multiply Additive`, `Custom (SrcBlend, DstBlend)`
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Blend Type
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- **Blend Type**: `Alpha Blend`, `Multiply`, `Additive`, `Soft Additive`, `Multiply Additive`, `Custom`
|
||||||
|

|
||||||
|
- `Custom` blend type can be set using the `SrcBlend` and `DstBlend` properties.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Shadow Mode
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **Shadow Mode**: `None`, `Shadow`, `Shadow3`, `Outline`, `Outline8`, `Mirror`
|
- **Shadow Mode**: `None`, `Shadow`, `Shadow3`, `Outline`, `Outline8`, `Mirror`
|
||||||
|

|
||||||
- **Shadow Distance**: Distance of the shadow or outline.
|
- **Shadow Distance**: Distance of the shadow or outline.
|
||||||
- **Shadow Iteration**: Number of times the shadow or outline is applied.
|
- **Shadow Iteration**: Number of times the shadow or outline is applied.
|
||||||
|
- **Shadow Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`, `Hsv Modifier`, `Contrast`
|
||||||
|
- **Shadow Color**: The color of the shadow.
|
||||||
|
- **Shadow Color Glow**: Set the shadow color to glow.
|
||||||
- **Shadow Fade**: Alpha value of the shadow or outline.
|
- **Shadow Fade**: Alpha value of the shadow or outline.
|
||||||
- **Shadow Effect On Origin**: Applies effects to meshes other than shadows.
|
- **Shadow Blur Intensity** (`SamplingFilter = Blur***` required): Intensity of the shadow or outline blur.
|
||||||
- **Mirror Reflection**: Distance of the mirrored image.
|
- **Mirror Reflection** (`Mirror` only): Distance of the mirrored image.
|
||||||
- **Mirror Offset**: Offset for the mirrored image.
|
- **Mirror Offset** (`Mirror` only): Offset for the mirrored image.
|
||||||
- **Mirror Scale**: Scale of the mirrored image.
|
- **Mirror Scale** (`Mirror` only): Scale of the mirrored image.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Gradation Mode
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- **Gradation Mode**: `None`, `Horizontal`, `HorizontalGradient`, `Vertical`, `VerticalGradient`, `Radial`, `RadialGradient`, `Diagonal`, `DiagonalToRightBottom`, `DiagonalToLeftBottom`, `Angle`, `AngleGradient`
|
||||||
|

|
||||||
|
- **Gradation Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`
|
||||||
|
- **Gradation Gradient**: The gradient of the gradation. HDR colors are supported.
|
||||||
|
- `Blend` and `Fixed` modes are available.
|
||||||
|
- **Gradation Color 1**: The first color of the gradation.
|
||||||
|
- **Gradation Color 2**: The second color of the gradation.
|
||||||
|
- **Gradation Intensity**: 0.0 (no effect) - 1.0 (full effect).
|
||||||
|
- **Gradation Offset**: The offset of the gradation range.
|
||||||
|
- **Gradation Scale**: The scale of the gradation range.
|
||||||
|
- **Gradation Rotation** (`Angle` or `AngleGradient` only): The rotation of the gradation range.
|
||||||
|
- **Gradation Wrap Mode**: `Repaet`, `Clamp`, `Mirror`, `Mirror Once`
|
||||||
|
- **Gradation Reverse**: Reverse the gradient.
|
||||||
|
- **Keep Aspect Ratio**:
|
||||||
|
- ⚠️ NOTE: `Keep Aspect Ratio` is shared with `Transition Filter` and `Gradation Mode` and `Detail Filter`.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Edge Mode
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- **Edge Mode**: `None`, `Plain`, `Shiny`
|
||||||
|

|
||||||
|
- **Edge Width**: The width of the edge.
|
||||||
|
- **Edge Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`, `Hsv Modifier`, `Contrast`
|
||||||
|
- **Edge Color**: The color of the edge.
|
||||||
|
- **Edge Color Glow**: Set the shadow color to glow.
|
||||||
|
- **Edge Shiny Width**: The width of the edge shiny.
|
||||||
|
- **Edge Shiny Auto Play Speed**: The speed of the edge shiny (using shader side `_Time`).
|
||||||
|
- ⚠️ NOTE: This uses scaled time (affected by `Time.timeScale`). If you need unscaled time (useful for pause-resistant effects), use the [UIEffectTweener](#component-uieffecttweener) component instead.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Detail Filter
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- **Detail Filter**: `None`, `Masking`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `MuliplyAdditive`
|
||||||
|

|
||||||
|
- **Detail Intensity**: 0.0 (no effect) - 1.0 (full effect).
|
||||||
|
- **Detail Color**: The color of the detail.
|
||||||
|
- **Detail Threshold** (`Masking` only): The minimum and maximum alpha values used for masking. The larger the gap
|
||||||
|
between these values, the stronger the softness effect.
|
||||||
|
- **Detail Tex**: The texture used for the transition filter.
|
||||||
|
- **Scale**, **Offset**, **Speed**, **Rotation**, **Keep Aspect Ratio**: Additional properties for the texture.
|
||||||
|
- ⚠️ NOTE: `Rotation` is shared with `Transition Filter` and `Detail Filter`.
|
||||||
|
- ⚠️ NOTE: `Keep Aspect Ratio` is shared with `Transition Filter` and `Gradation Mode` and `Detail Filter`.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Flip
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- **Flip**: Combine the following flags.
|
||||||
|
- `Nothing`
|
||||||
|
- `Horizontal`
|
||||||
|
- `Vertical`
|
||||||
|
- `Effect`: Flip with the effect.
|
||||||
|
- `Shadow`: Flip with the shadow.
|
||||||
|

|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
#### Others
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- **Sampling Scale**: The referencing scale during sampling.
|
||||||
|
- Larger values are suitable for high-resolution textures.
|
||||||
|
- **Allow To Modify Mesh Shape**: If enabled, the mesh shape can be modified.
|
||||||
|
- **Custom Root**: Use the custom transform for some effects.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> `Transition Filter`, `Gradation Filter`, and `Detail Filter` usually refer to their own `RectTransform` when applying effects.
|
||||||
|
> For example, if the mesh shape exceeds the `RectTransform` boundaries, the effect may not be applied correctly.
|
||||||
|
> By specifying `Custom Root`, you can refer to the specified transform.
|
||||||
|
> 
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
### Component: UIEffectTweener
|
### Component: UIEffectTweener
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
The `UIEffectTweener` component animates the effect, enabling easy control over effect animations without the need for an `AnimationClip`.
|
The `UIEffectTweener` component animates the effect, enabling easy control over effect animations without the need for an `AnimationClip`.
|
||||||
|
|
||||||
- **Culling Mask**: `Tone`, `Color`, `Sampling`, `Transition`
|
- **Culling Mask**: `Tone`, `Color`, `Sampling`, `Transition`, `GradiationOffset`, `GradiationRotation`, `EdgeShiny`, `Event`
|
||||||
- **Direction**: `Forward (0.0 -> 1.0)`, `Backward (1.0 -> 0.0)`
|
- **OnChangeRate** (`Event` only): A event that is triggered when the tweening rate changes.
|
||||||
|
- **Direction**: `Forward (0.0 -> 1.0)`, `Reverse (1.0 -> 0.0)`
|
||||||
|
- **Curve**: The curve of the animation.
|
||||||
|
- **Separate Reverse Curve**: If enabled, `Reverse Curve` will be used for the reverse direction.
|
||||||
|
- **Reverse Curve**: The curve of the reverse animation.
|
||||||
- **Delay**: The delay time before starting the animation.
|
- **Delay**: The delay time before starting the animation.
|
||||||
- **Duration**: The duration of the animation.
|
- **Duration**: The duration of the animation.
|
||||||
- **Interval**: The interval time between the animation.
|
- **Interval**: The interval time between the animation.
|
||||||
- **Curve**: The curve of the animation.
|
- **Play On Enable**: `None`, `Forward`, `Reverse`, `Keep Direction`
|
||||||
- **Restart On Enable**: Play the animation automatically when the component is enabled.
|
- Play the animation automatically when the component is enabled.
|
||||||
- **Wrap Mode**: `Once`, `Loop`, `PingPongOnce`, `PingPongLoop`
|
- If `None` is selected, the animation will not play automatically. You can play it using the `Play`, `PlayForward` or `PlayReverse` method.
|
||||||
|
- **Reset Time On Enable**: Reset the tweening time when the component is enabled.
|
||||||
|
- **Wrap Mode**:
|
||||||
|
- `Once`: delay -> duration(0-1) -> onComplete
|
||||||
|
- `Loop`: delay -> duration(0-1) -> interval -> ...
|
||||||
|
- `PingPongOnce`: delay -> duration(0-1) -> interval -> duration(1-0) -> onComplete
|
||||||
|
- `PingPongLoop`: delay -> duration(0-1) -> interval -> duration(1-0) -> interval -> ...
|
||||||
- **Update Mode**: `Normal`, `UnscaledTime`, `Manual`
|
- **Update Mode**: `Normal`, `UnscaledTime`, `Manual`
|
||||||
|
- **On Complete**: A event that is triggered when the animation is completed.
|
||||||
|
|
||||||
|
You can preview the animation using the seek bar and play button.
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
### Component: UIEffectReplica
|
### Component: UIEffectReplica
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
The `UIEffectReplica` component applies visual effects to UI elements by replicating the settings of another `UIEffect` component. This allows the same effect to be applied across multiple UI elements simultaneously.
|
The `UIEffectReplica` component applies visual effects to UI elements by replicating the settings of another `UIEffect` component. This allows the same effect to be applied across multiple UI elements simultaneously.
|
||||||
|
|
||||||
- **Target**: The target `UIEffect` component to replicate.
|
- **Target**: The target `UIEffect` component to replicate.
|
||||||
|
> [!TIP]
|
||||||
|
> You can specify a preset as well as an instance as the target for `UIEffectReplica`.
|
||||||
- **Use Target Transform**: Use the target's transform for some effects.
|
- **Use Target Transform**: Use the target's transform for some effects.
|
||||||

|

|
||||||
|
- **Custom Root**: Use the custom transform for some effects.
|
||||||
|
- **Sampling Scale**: Override the sampling scale.
|
||||||
|
- **Allow To Modify Mesh Shape**: If enabled, the mesh shape can be modified.
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
### Usage with TextMeshPro
|
### Usage with TextMeshPro
|
||||||
|
|
||||||

|
To use UIEffect with TextMeshPro, you need to import additional resources.
|
||||||
|
When a shader included in the samples is requested, an import dialog will automatically appear.
|
||||||
|
Click the `Import` button.
|
||||||
|
|
||||||
UIEffect supports TextMeshProUGUI elements. To use UIEffect with TextMeshPro, follow these steps:
|

|
||||||
|
|
||||||
|
Alternatively, you can manually import the resources by following these steps:
|
||||||
|
|
||||||
1. First, you must import [TMP Essential Resources](https://docs.unity3d.com/Packages/com.unity.textmeshpro@3.0/manual/index.html#installation) before using.
|
1. First, you must import [TMP Essential Resources](https://docs.unity3d.com/Packages/com.unity.textmeshpro@3.0/manual/index.html#installation) before using.
|
||||||

|

|
||||||
|
|
||||||
2. Open the `Package Manager` window and select the `UI Soft Mask` package in the package list and click the `TextMeshPro Support > Import` button.
|
2. Open the `Package Manager` window and select the `UI Effect` package in the package list and click the `TextMeshPro Support > Import` button.
|
||||||
⚠️ If you are using `Unity 2023.2/6000.0+` or `TextMeshPro 3.2/4.0+`, click the `TextMeshPro Support (Unity 6) > Import` button instead.
|
⚠️ If you are using `Unity 2023.2/6000.0+` or `TextMeshPro 3.2/4.0+`, click the `TextMeshPro Support (Unity 6) > Import` button instead.
|
||||||

|
|
||||||
|
|
||||||
3. The assets will be imported under `Assets/Samples/UI Effect/{version}`.
|
3. The assets will be imported under `Assets/Samples/UI Effect/{version}`.
|
||||||
|
|
||||||
4. Add the `UIEffect` component to a TextMeshProUGUI element and adjust the effect settings. The `<font>` and `<sprite>` tags are also supported.
|
4. Add the `UIEffect` component to a TextMeshProUGUI element and adjust the effect settings. The `<font>` and `<sprite>` tags are also supported.
|
||||||

|

|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> `TextMeshPro Support` may change with updates to the UIEffect package.
|
||||||
|
> If issues occur, try importing it again.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> If you have moved `TMPro_Properties.cginc` and `TMPro.cginc` from their default install path
|
||||||
|
> (`Assets/TextMesh Pro/Shaders/...`), you will need to manually update the paths in the shaders under
|
||||||
|
> `TextMeshPro Support` or `TextMeshPro Support (Unity 6)`.
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
### Usage with SoftMaskForUGUI
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
[SoftMaskForUGUI](https://github.com/mob-sakai/SoftMaskForUGUI) is a package that allows you to create soft masks for UI elements.
|
||||||
|
|
||||||
|
`SoftMaskForUGUI (v3.3.0+)` supports `UIEffect (v5.7.0+)`.
|
||||||
|
When a shader included in the samples is requested, an import dialog will automatically appear.
|
||||||
|
Click the `Import` button.
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
### Usage with ShaderGraph
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
To use UIEffect with ShaderGraph, you need to import additional resources.
|
||||||
|
|
||||||
|
1. Open the `Package Manager` window and select the `UI Effect` package in the package list and click the `ShaderGraph Support (Unity6, BuiltIn) > Import` button.
|
||||||
|
⚠️ If you are using Universal Render Pipeline (URP), click the `ShaderGraph Support (Unity6, URP) > Import` button.
|
||||||
|
|
||||||
|
2. The assets will be imported under `Assets/Samples/UI Effect/{version}`.
|
||||||
|
|
||||||
|
3. Change the sub target (Material) of the existing ShaderGraph file to `Canvas (UIEffect)`.
|
||||||
|
Alternatively, create a new ShaderGraph from `Assets/Create/Shader Graph/BuiltIn/Canvas Shader Graph (UIEffect)`.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> Use `(UIEffect)` in the shader name or register as an optional shader in [ProjectSettings](#project-settings).
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
### Usage with Timeline
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Timeline is a powerful animation tool that can control UIEffect using `ControlTrack` and UIEffect tracks.
|
||||||
|
|
||||||
|
- `Control Track`: One of the built-in tracks. When you assign a GameObject with `UIEffect`, `UIEffect` will be enabled during the clip duration.
|
||||||
|
- `UIEffect Tracks`: Tracks for UIEffect. They control `float` or `Color` type properties.
|
||||||
|
- Supports blending, extrapolation, and tween.
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
### Runtime/Editor Preset for UIEffect
|
### Runtime/Editor Preset for UIEffect
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
You can create and use presets for `UIEffect` components.
|
You can create and use presets for `UIEffect` components.
|
||||||
- In the `UIEffect` component inspector, click "Save As" button to save the current settings as an editor preset.
|
|
||||||
- Click "Load" button to apply an editor preset.
|
- Click the `Load` button to apply an editor preset.
|
||||||
|
- Click the `Append` button to load only non-default settings from the editor preset.
|
||||||
|
- Click the `Save As New` button to save the current settings as an editor preset.
|
||||||
- In the [Project Settings](#project-settings), you can register saved editor presets as runtime presets.
|
- In the [Project Settings](#project-settings), you can register saved editor presets as runtime presets.
|
||||||
- Runtime presets can be loaded using the `UIEffect.LoadPreset(presetName)` method.
|
- Runtime presets can be loaded using the `UIEffect.LoadPreset(presetName)` method.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> Editor presets are saved in the `UIEffectPresets` directory.
|
||||||
|
> You can also create subdirectories to customize the preset menu.
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
### Usage with Code
|
### Usage with Code
|
||||||
@@ -281,7 +568,7 @@ You can control the effect settings and animations via code.
|
|||||||
```csharp
|
```csharp
|
||||||
var effect = graphic.AddComponent<UIEffect>();
|
var effect = graphic.AddComponent<UIEffect>();
|
||||||
|
|
||||||
// Apply a preset
|
// Apply a runtime preset
|
||||||
effect.LoadPreset("Dissolve");
|
effect.LoadPreset("Dissolve");
|
||||||
|
|
||||||
// Set the effect parameters
|
// Set the effect parameters
|
||||||
@@ -301,18 +588,46 @@ UIEffectProjectSettings.shaderVariantCollection.WarmUp();
|
|||||||
|
|
||||||
### Project Settings
|
### Project Settings
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
You can adjust the project-wide settings for UIEffect. (`Edit > Project Settings > UI > UIEffect`)
|
You can adjust the project-wide settings for UIEffect. (`Edit > Project Settings > UI > UIEffect`)
|
||||||
|
|
||||||
- **Transform Sensitivity**: `Low`, `Medium`, `High`
|
#### Settings
|
||||||
- Set the sensitivity of the transformation when `Use Target Transform` is enabled in `UIEffectReplica` component.
|
|
||||||
- **Runtime Presets**: A list of presets that can be loaded at runtime. Load them using `UIEffect.LoadPreset(presetName)` method.
|
- **Runtime Presets**: A list of presets that can be loaded at runtime. Load them using `UIEffect.LoadPreset(presetName)` method.
|
||||||
- **Fallback Variant Behavior**: Specifies the behavior when an unregistered shader variant is used in the editor.
|
|
||||||
- `Register Variant`: Adds the variant to `Registered Variants` for runtime use.
|
> [!IMPORTANT]
|
||||||
- `LogError`: Outputs a error and adds it to `Unregistered Variants`.
|
> - The legacy prefab-based preset system is deprecated as of v5.8.0.
|
||||||
|
> - If your project contains legacy presets, you can convert them to the new system.
|
||||||
|
> - **Convert All Legacy Presets**: Creates new presets based on the legacy ones.
|
||||||
|
> If the legacy presets are used as runtime presets, they will be replaced with the new ones.
|
||||||
|
> You can load the new preset via the `UIEffect.LoadPreset` method.
|
||||||
|
> - **Delete All Legacy Presets**: Deletes all legacy presets. If any legacy presets are assigned to `UIEffectReplica.target`, those targets will also be removed.
|
||||||
|
> 
|
||||||
|
|
||||||
|
#### Editor
|
||||||
|
|
||||||
|
- **Use HDR Color Picker**: If enabled, the HDR color picker will be used in the inspector.
|
||||||
|
|
||||||
|
#### Shader
|
||||||
|
|
||||||
|
- **Optional Shaders (UIEffect)**: A list of shaders that will be prioritized when a ui-effect shader is
|
||||||
|
requested.
|
||||||
|
- If the shader is included in the list, that shader will be used.
|
||||||
|
- If it is not in the list, the following shaders will be used in order:
|
||||||
|
- If the shader name contains `(UIEffect)`, that shader will be used.
|
||||||
|
- If `Hidden/<shader_name> (UIEffect)` exists, that shader will be used.
|
||||||
|
- As a fallback, `UI/Default (UIEffect)` will be used.
|
||||||
|
- **Registered Variants**: A list of shader variants available at runtime. Use "-" button to remove unused variants,
|
||||||
|
reducing build time and file size.
|
||||||
|
- By default, the used ui-effect shaders will be included in the build. You can remove them if you don't need.
|
||||||
- **Unregistered Variants**: A list of shader variants that are not registered. Use "+" button to add variants.
|
- **Unregistered Variants**: A list of shader variants that are not registered. Use "+" button to add variants.
|
||||||
- **Registered Variants**: A list of shader variants available at runtime. Use "-" button to remove unused variants, reducing build time and file size.
|
- **Error On Unregistered Variant**: If enabled, an error will be displayed when an unregistered shader variant is used.
|
||||||
|
- The shader variant will be automatically added to the `Unregistered Variants` list.
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> - The setting file is usually saved in `Assets/ProjectSettings/UIEffectProjectSettings.asset`. Include this file in your version control system.
|
||||||
|
> - The setting file is automatically added as a preloaded asset in `ProjectSettings/ProjectSettings.asset`.
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
@@ -323,6 +638,8 @@ Here are the limitations of UIEffect:
|
|||||||
- Shader variants used at runtime must be registered in the [Project Settings](#project-settings).
|
- Shader variants used at runtime must be registered in the [Project Settings](#project-settings).
|
||||||
- When using UIEffect with TextMeshProUGUI, `SamplingFilter.BlurMedium` and `SamplingFilter.BlurDetail` are not supported due to performance considerations.
|
- When using UIEffect with TextMeshProUGUI, `SamplingFilter.BlurMedium` and `SamplingFilter.BlurDetail` are not supported due to performance considerations.
|
||||||
- These will automatically fall back to `SamplingFilter.BlurFast`.
|
- These will automatically fall back to `SamplingFilter.BlurFast`.
|
||||||
|
- UIEffect supports default UI components (`Image`, `RawImage`, `Text`) and `TextMeshProUGUI`.
|
||||||
|
- If you want to use UIEffect with other components, create a issue or pull request.
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
@@ -356,7 +673,6 @@ Your support allows me to dedicate more time to development. 😊
|
|||||||
## License
|
## License
|
||||||
|
|
||||||
* MIT
|
* MIT
|
||||||
* © UTJ/UCL
|
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,33 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a9c99c9c4ae6f4d4aa041ad31432e922
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 1
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
- first:
|
||||||
|
Windows Store Apps: WindowsStoreApps
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: AnyCPU
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -2,7 +2,8 @@
|
|||||||
"name": "Coffee.UIEffect",
|
"name": "Coffee.UIEffect",
|
||||||
"rootNamespace": "",
|
"rootNamespace": "",
|
||||||
"references": [
|
"references": [
|
||||||
"GUID:6055be8ebefd69e48b49212b09b47b2f"
|
"GUID:6055be8ebefd69e48b49212b09b47b2f",
|
||||||
|
"GUID:f06555f75b070af458a003d92f9efb00"
|
||||||
],
|
],
|
||||||
"includePlatforms": [],
|
"includePlatforms": [],
|
||||||
"excludePlatforms": [],
|
"excludePlatforms": [],
|
||||||
@@ -21,6 +22,16 @@
|
|||||||
"name": "com.unity.ugui",
|
"name": "com.unity.ugui",
|
||||||
"expression": "2.0.0",
|
"expression": "2.0.0",
|
||||||
"define": "TMP_ENABLE"
|
"define": "TMP_ENABLE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "com.unity.timeline",
|
||||||
|
"expression": "1.0.0",
|
||||||
|
"define": "TIMELINE_ENABLE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "com.unity.textmeshpro",
|
||||||
|
"expression": "[1.0.0,3.2.0-pre.1)",
|
||||||
|
"define": "LEGACY_TMP_ENABLE"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"noEngineReferences": false
|
"noEngineReferences": false
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using UnityEngine.Rendering;
|
using System;
|
||||||
|
using UnityEngine.Rendering;
|
||||||
|
|
||||||
namespace Coffee.UIEffects
|
namespace Coffee.UIEffects
|
||||||
{
|
{
|
||||||
@@ -25,6 +26,17 @@ namespace Coffee.UIEffects
|
|||||||
Contrast = 8
|
Contrast = 8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum GradationColorFilter
|
||||||
|
{
|
||||||
|
None = ColorFilter.None,
|
||||||
|
Multiply = ColorFilter.Multiply,
|
||||||
|
Additive = ColorFilter.Additive,
|
||||||
|
Subtractive = ColorFilter.Subtractive,
|
||||||
|
Replace = ColorFilter.Replace,
|
||||||
|
MultiplyLuminance = ColorFilter.MultiplyLuminance,
|
||||||
|
MultiplyAdditive = ColorFilter.MultiplyAdditive
|
||||||
|
}
|
||||||
|
|
||||||
public enum SamplingFilter
|
public enum SamplingFilter
|
||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
@@ -46,7 +58,9 @@ namespace Coffee.UIEffects
|
|||||||
Shiny = 4,
|
Shiny = 4,
|
||||||
Mask = 5,
|
Mask = 5,
|
||||||
Melt = 6,
|
Melt = 6,
|
||||||
Burn = 7
|
Burn = 7,
|
||||||
|
Blaze = 9,
|
||||||
|
Pattern = 8
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum BlendType
|
public enum BlendType
|
||||||
@@ -76,6 +90,60 @@ namespace Coffee.UIEffects
|
|||||||
Mirror
|
Mirror
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum EdgeMode
|
||||||
|
{
|
||||||
|
None = 0,
|
||||||
|
Plain,
|
||||||
|
Shiny
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum PatternArea
|
||||||
|
{
|
||||||
|
All = 0,
|
||||||
|
Inner = 1,
|
||||||
|
Edge = 2
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum GradationMode
|
||||||
|
{
|
||||||
|
None = 0,
|
||||||
|
Horizontal = 1,
|
||||||
|
HorizontalGradient = 2,
|
||||||
|
Vertical = 3,
|
||||||
|
VerticalGradient = 4,
|
||||||
|
Radial = 5,
|
||||||
|
[Obsolete]
|
||||||
|
RadialFast = 5,
|
||||||
|
[Obsolete]
|
||||||
|
RadialDetail = 6,
|
||||||
|
RadialGradient = 12,
|
||||||
|
Diagonal = 11,
|
||||||
|
DiagonalToRightBottom = 7,
|
||||||
|
DiagonalToLeftBottom = 8,
|
||||||
|
Angle = 9,
|
||||||
|
AngleGradient = 10
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum DetailFilter
|
||||||
|
{
|
||||||
|
None = 0,
|
||||||
|
Masking = 1,
|
||||||
|
Multiply = 2,
|
||||||
|
Additive = 3,
|
||||||
|
Subtractive = 6,
|
||||||
|
Replace = 4,
|
||||||
|
MultiplyAdditive = 5
|
||||||
|
}
|
||||||
|
|
||||||
|
[Flags]
|
||||||
|
public enum Flip
|
||||||
|
{
|
||||||
|
Horizontal = 1 << 0,
|
||||||
|
Vertical = 1 << 1,
|
||||||
|
Effect = 1 << 2,
|
||||||
|
Shadow = 1 << 3
|
||||||
|
}
|
||||||
|
|
||||||
internal static class BlendTypeConverter
|
internal static class BlendTypeConverter
|
||||||
{
|
{
|
||||||
public static (BlendMode, BlendMode) Convert(this (BlendType type, BlendMode src, BlendMode dst) self)
|
public static (BlendMode, BlendMode) Convert(this (BlendType type, BlendMode src, BlendMode dst) self)
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ namespace Coffee.UIEffectInternal
|
|||||||
public static T[] GetComponentsInChildren<T>(this Component self, int depth)
|
public static T[] GetComponentsInChildren<T>(this Component self, int depth)
|
||||||
where T : Component
|
where T : Component
|
||||||
{
|
{
|
||||||
var results = ListPool<T>.Rent();
|
var results = InternalListPool<T>.Rent();
|
||||||
self.GetComponentsInChildren_Internal(results, depth);
|
self.GetComponentsInChildren_Internal(results, depth);
|
||||||
var array = results.ToArray();
|
var array = results.ToArray();
|
||||||
ListPool<T>.Return(ref results);
|
InternalListPool<T>.Return(ref results);
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -204,7 +204,7 @@ namespace Coffee.UIEffectInternal
|
|||||||
target.enabled = false;
|
target.enabled = false;
|
||||||
|
|
||||||
// Find MonoScript of the specified component.
|
// Find MonoScript of the specified component.
|
||||||
foreach (var script in Resources.FindObjectsOfTypeAll<MonoScript>())
|
foreach (var script in MonoImporter.GetAllRuntimeMonoScripts())
|
||||||
{
|
{
|
||||||
if (script.GetClass() != typeof(T))
|
if (script.GetClass() != typeof(T))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
@@ -5,7 +6,7 @@ namespace Coffee.UIEffectInternal
|
|||||||
{
|
{
|
||||||
internal static class MeshExtensions
|
internal static class MeshExtensions
|
||||||
{
|
{
|
||||||
internal static readonly ObjectPool<Mesh> s_MeshPool = new ObjectPool<Mesh>(
|
internal static readonly InternalObjectPool<Mesh> s_MeshPool = new InternalObjectPool<Mesh>(
|
||||||
() =>
|
() =>
|
||||||
{
|
{
|
||||||
var mesh = new Mesh
|
var mesh = new Mesh
|
||||||
@@ -38,10 +39,10 @@ namespace Coffee.UIEffectInternal
|
|||||||
{
|
{
|
||||||
if (!self || !dst) return;
|
if (!self || !dst) return;
|
||||||
|
|
||||||
var vector3List = ListPool<Vector3>.Rent();
|
var vector3List = InternalListPool<Vector3>.Rent();
|
||||||
var vector4List = ListPool<Vector4>.Rent();
|
var vector4List = InternalListPool<Vector4>.Rent();
|
||||||
var color32List = ListPool<Color32>.Rent();
|
var color32List = InternalListPool<Color32>.Rent();
|
||||||
var intList = ListPool<int>.Rent();
|
var intList = InternalListPool<int>.Rent();
|
||||||
|
|
||||||
dst.Clear(false);
|
dst.Clear(false);
|
||||||
|
|
||||||
@@ -73,10 +74,10 @@ namespace Coffee.UIEffectInternal
|
|||||||
dst.SetUVs(3, vector4List);
|
dst.SetUVs(3, vector4List);
|
||||||
|
|
||||||
dst.RecalculateBounds();
|
dst.RecalculateBounds();
|
||||||
ListPool<Vector3>.Return(ref vector3List);
|
InternalListPool<Vector3>.Return(ref vector3List);
|
||||||
ListPool<Vector4>.Return(ref vector4List);
|
InternalListPool<Vector4>.Return(ref vector4List);
|
||||||
ListPool<Color32>.Return(ref color32List);
|
InternalListPool<Color32>.Return(ref color32List);
|
||||||
ListPool<int>.Return(ref intList);
|
InternalListPool<int>.Return(ref intList);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void CopyTo(this Mesh self, VertexHelper dst)
|
public static void CopyTo(this Mesh self, VertexHelper dst)
|
||||||
@@ -92,13 +93,13 @@ namespace Coffee.UIEffectInternal
|
|||||||
{
|
{
|
||||||
if (!self || dst == null) return;
|
if (!self || dst == null) return;
|
||||||
|
|
||||||
var positions = ListPool<Vector3>.Rent();
|
var positions = InternalListPool<Vector3>.Rent();
|
||||||
var normals = ListPool<Vector3>.Rent();
|
var normals = InternalListPool<Vector3>.Rent();
|
||||||
var uv0 = ListPool<Vector4>.Rent();
|
var uv0 = InternalListPool<Vector4>.Rent();
|
||||||
var uv1 = ListPool<Vector4>.Rent();
|
var uv1 = InternalListPool<Vector4>.Rent();
|
||||||
var tangents = ListPool<Vector4>.Rent();
|
var tangents = InternalListPool<Vector4>.Rent();
|
||||||
var colors = ListPool<Color32>.Rent();
|
var colors = InternalListPool<Color32>.Rent();
|
||||||
var indices = ListPool<int>.Rent();
|
var indices = InternalListPool<int>.Rent();
|
||||||
self.GetVertices(positions);
|
self.GetVertices(positions);
|
||||||
self.GetColors(colors);
|
self.GetColors(colors);
|
||||||
self.GetUVs(0, uv0);
|
self.GetUVs(0, uv0);
|
||||||
@@ -110,21 +111,30 @@ namespace Coffee.UIEffectInternal
|
|||||||
dst.Clear();
|
dst.Clear();
|
||||||
for (var i = 0; i < vertexCount; i++)
|
for (var i = 0; i < vertexCount; i++)
|
||||||
{
|
{
|
||||||
dst.AddVert(positions[i], colors[i], uv0[i], uv1[i], normals[i], tangents[i]);
|
dst.AddVert(positions.GetOrDefault(i), colors.GetOrDefault(i), uv0.GetOrDefault(i), uv1.GetOrDefault(i),
|
||||||
|
normals.GetOrDefault(i), tangents.GetOrDefault(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < indexCount; i += 3)
|
var count = Mathf.Clamp(indexCount, 0, indices.Count);
|
||||||
|
for (var i = 0; i < count - 2; i += 3)
|
||||||
{
|
{
|
||||||
dst.AddTriangle(indices[i], indices[i + 1], indices[i + 2]);
|
dst.AddTriangle(indices[i], indices[i + 1], indices[i + 2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
ListPool<Vector3>.Return(ref positions);
|
InternalListPool<Vector3>.Return(ref positions);
|
||||||
ListPool<Vector3>.Return(ref normals);
|
InternalListPool<Vector3>.Return(ref normals);
|
||||||
ListPool<Vector4>.Return(ref uv0);
|
InternalListPool<Vector4>.Return(ref uv0);
|
||||||
ListPool<Vector4>.Return(ref uv1);
|
InternalListPool<Vector4>.Return(ref uv1);
|
||||||
ListPool<Vector4>.Return(ref tangents);
|
InternalListPool<Vector4>.Return(ref tangents);
|
||||||
ListPool<Color32>.Return(ref colors);
|
InternalListPool<Color32>.Return(ref colors);
|
||||||
ListPool<int>.Return(ref indices);
|
InternalListPool<int>.Return(ref indices);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static T GetOrDefault<T>(this List<T> self, int index)
|
||||||
|
{
|
||||||
|
return 0 <= index && index < self.Count
|
||||||
|
? self[index]
|
||||||
|
: default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,144 +0,0 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using UnityEngine.Profiling;
|
|
||||||
|
|
||||||
namespace Coffee.UIEffectInternal
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Extension methods for Transform class.
|
|
||||||
/// </summary>
|
|
||||||
internal static class TransformExtensions
|
|
||||||
{
|
|
||||||
private const float k_DefaultEpsilon = 1f / (2 ^ 8);
|
|
||||||
private static readonly Vector3[] s_Corners = new Vector3[4];
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Compare the hierarchy index of one transform with another transform.
|
|
||||||
/// </summary>
|
|
||||||
public static int CompareHierarchyIndex(this Transform self, Transform other, Transform stopAt)
|
|
||||||
{
|
|
||||||
if (self == other) return 0;
|
|
||||||
|
|
||||||
Profiler.BeginSample("(COF)[TransformExt] CompareHierarchyIndex > GetTransforms");
|
|
||||||
var lTrs = self.GetTransforms(stopAt, ListPool<Transform>.Rent());
|
|
||||||
var rTrs = other.GetTransforms(stopAt, ListPool<Transform>.Rent());
|
|
||||||
Profiler.EndSample();
|
|
||||||
|
|
||||||
Profiler.BeginSample("(COF)[TransformExt] CompareHierarchyIndex > Calc");
|
|
||||||
var loop = Mathf.Max(lTrs.Count, rTrs.Count);
|
|
||||||
var result = 0;
|
|
||||||
for (var i = 0; i < loop; ++i)
|
|
||||||
{
|
|
||||||
var selfIndex = 0 <= lTrs.Count - i - 1 ? lTrs[lTrs.Count - i - 1].GetSiblingIndex() : -1;
|
|
||||||
var otherIndex = 0 <= rTrs.Count - i - 1 ? rTrs[rTrs.Count - i - 1].GetSiblingIndex() : -1;
|
|
||||||
if (selfIndex == otherIndex) continue;
|
|
||||||
|
|
||||||
result = selfIndex - otherIndex;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
Profiler.EndSample();
|
|
||||||
|
|
||||||
Profiler.BeginSample("(COF)[TransformExt] CompareHierarchyIndex > Return");
|
|
||||||
ListPool<Transform>.Return(ref lTrs);
|
|
||||||
ListPool<Transform>.Return(ref rTrs);
|
|
||||||
Profiler.EndSample();
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static List<Transform> GetTransforms(this Transform self, Transform stopAt, List<Transform> results)
|
|
||||||
{
|
|
||||||
results.Clear();
|
|
||||||
while (self != stopAt)
|
|
||||||
{
|
|
||||||
results.Add(self);
|
|
||||||
self = self.parent;
|
|
||||||
}
|
|
||||||
|
|
||||||
return results;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check if a transform has changed.
|
|
||||||
/// </summary>
|
|
||||||
public static bool HasChanged(this Transform self, ref Matrix4x4 prev, float epsilon = k_DefaultEpsilon)
|
|
||||||
{
|
|
||||||
return self.HasChanged(null, ref prev, epsilon);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check if a transform has changed.
|
|
||||||
/// </summary>
|
|
||||||
public static bool HasChanged(this Transform self, Transform baseTransform, ref Matrix4x4 prev,
|
|
||||||
float epsilon = k_DefaultEpsilon)
|
|
||||||
{
|
|
||||||
if (!self) return false;
|
|
||||||
|
|
||||||
var hash = baseTransform ? baseTransform.GetHashCode() : 0;
|
|
||||||
if (FrameCache.TryGet(self, nameof(HasChanged), hash, out bool result)) return result;
|
|
||||||
|
|
||||||
var matrix = baseTransform
|
|
||||||
? baseTransform.worldToLocalMatrix * self.localToWorldMatrix
|
|
||||||
: self.localToWorldMatrix;
|
|
||||||
var current = matrix * Matrix4x4.Scale(Vector3.one * 10000);
|
|
||||||
result = !Approximately(current, prev, epsilon);
|
|
||||||
FrameCache.Set(self, nameof(HasChanged), hash, result);
|
|
||||||
if (result)
|
|
||||||
{
|
|
||||||
prev = current;
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static bool Approximately(Matrix4x4 self, Matrix4x4 other, float epsilon = k_DefaultEpsilon)
|
|
||||||
{
|
|
||||||
for (var i = 0; i < 16; i++)
|
|
||||||
{
|
|
||||||
if (epsilon < Mathf.Abs(self[i] - other[i]))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Bounds GetRelativeBounds(this Transform self, Transform child)
|
|
||||||
{
|
|
||||||
if (!self || !child)
|
|
||||||
{
|
|
||||||
return new Bounds(Vector3.zero, Vector3.zero);
|
|
||||||
}
|
|
||||||
|
|
||||||
var list = ListPool<RectTransform>.Rent();
|
|
||||||
child.GetComponentsInChildren(false, list);
|
|
||||||
if (list.Count == 0)
|
|
||||||
{
|
|
||||||
ListPool<RectTransform>.Return(ref list);
|
|
||||||
return new Bounds(Vector3.zero, Vector3.zero);
|
|
||||||
}
|
|
||||||
|
|
||||||
var max = new Vector3(float.MaxValue, float.MaxValue, float.MaxValue);
|
|
||||||
var min = new Vector3(float.MinValue, float.MinValue, float.MinValue);
|
|
||||||
var worldToLocalMatrix = self.worldToLocalMatrix;
|
|
||||||
for (var i = 0; i < list.Count; i++)
|
|
||||||
{
|
|
||||||
list[i].GetWorldCorners(s_Corners);
|
|
||||||
for (var j = 0; j < 4; j++)
|
|
||||||
{
|
|
||||||
var lhs = worldToLocalMatrix.MultiplyPoint3x4(s_Corners[j]);
|
|
||||||
max = Vector3.Min(lhs, max);
|
|
||||||
min = Vector3.Max(lhs, min);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ListPool<RectTransform>.Return(ref list);
|
|
||||||
|
|
||||||
var rectTransformBounds = new Bounds(max, Vector3.zero);
|
|
||||||
rectTransformBounds.Encapsulate(min);
|
|
||||||
return rectTransformBounds;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -14,7 +14,7 @@ namespace Coffee.UIEffectInternal
|
|||||||
public abstract class PreloadedProjectSettings : ScriptableObject
|
public abstract class PreloadedProjectSettings : ScriptableObject
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
{
|
{
|
||||||
private class MyAllPostprocessor : AssetPostprocessor
|
private class Postprocessor : AssetPostprocessor
|
||||||
{
|
{
|
||||||
private static void OnPostprocessAllAssets(string[] _, string[] __, string[] ___, string[] ____)
|
private static void OnPostprocessAllAssets(string[] _, string[] __, string[] ___, string[] ____)
|
||||||
{
|
{
|
||||||
@@ -47,6 +47,11 @@ namespace Coffee.UIEffectInternal
|
|||||||
{
|
{
|
||||||
SetDefaultSettings(defaultSettings);
|
SetDefaultSettings(defaultSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (defaultSettings)
|
||||||
|
{
|
||||||
|
defaultSettings.OnInitialize();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,6 +115,10 @@ namespace Coffee.UIEffectInternal
|
|||||||
protected virtual void OnCreateAsset()
|
protected virtual void OnCreateAsset()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected virtual void OnInitialize()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
@@ -124,6 +133,8 @@ namespace Coffee.UIEffectInternal
|
|||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
private string _jsonText;
|
private string _jsonText;
|
||||||
|
|
||||||
|
public static bool hasInstance => s_Instance;
|
||||||
|
|
||||||
public static T instance
|
public static T instance
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
@@ -0,0 +1,75 @@
|
|||||||
|
#if UNITY_EDITOR
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Coffee.UIEffectInternal
|
||||||
|
{
|
||||||
|
public class CgincPathSync : AssetPostprocessor
|
||||||
|
{
|
||||||
|
private static string[] s_ShaderNames = null;
|
||||||
|
private static string s_CgincPattern = null;
|
||||||
|
|
||||||
|
public static void RegisterShaders(string cgincPattern, string[] shaderNames)
|
||||||
|
{
|
||||||
|
s_CgincPattern = cgincPattern;
|
||||||
|
s_ShaderNames = shaderNames;
|
||||||
|
UpdateTmpCgincPath();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void OnPostprocessAllAssets(string[] imported, string[] __, string[] ___, string[] ____)
|
||||||
|
{
|
||||||
|
if (imported.Any(x => x.EndsWith(".cginc") || x.EndsWith(".shader")))
|
||||||
|
{
|
||||||
|
UpdateTmpCgincPath();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void UpdateTmpCgincPath()
|
||||||
|
{
|
||||||
|
if (s_CgincPattern == null || s_ShaderNames == null || s_ShaderNames.Length == 0) return;
|
||||||
|
|
||||||
|
string[] cgincs = null;
|
||||||
|
foreach (var shaderName in s_ShaderNames)
|
||||||
|
{
|
||||||
|
var shader = Shader.Find(shaderName);
|
||||||
|
if (!shader) continue;
|
||||||
|
|
||||||
|
var hasCgincError = ShaderUtil.GetShaderMessages(shader)
|
||||||
|
.Any(x => Regex.IsMatch(x.message, $"Couldn't open include file.*{s_CgincPattern}"));
|
||||||
|
if (!hasCgincError) continue;
|
||||||
|
|
||||||
|
cgincs = cgincs ?? AssetDatabase.FindAssets("t:ShaderInclude")
|
||||||
|
.Select(AssetDatabase.GUIDToAssetPath)
|
||||||
|
.Where(x => Regex.IsMatch(x, s_CgincPattern))
|
||||||
|
.ToArray();
|
||||||
|
|
||||||
|
UpdateTmpCgincPath(shader, cgincs);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void UpdateTmpCgincPath(Shader shader, string[] cgincs)
|
||||||
|
{
|
||||||
|
var path = AssetDatabase.GetAssetPath(shader);
|
||||||
|
var text = File.ReadAllText(path);
|
||||||
|
var hash = text.GetHashCode();
|
||||||
|
|
||||||
|
foreach (var cginc in cgincs)
|
||||||
|
{
|
||||||
|
var file = Path.GetFileName(cginc);
|
||||||
|
text = Regex.Replace(text, $"#include.*\"[^\"]*{file}\"", $"#include \"{cginc}\"",
|
||||||
|
RegexOptions.Multiline);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hash == text.GetHashCode()) return;
|
||||||
|
|
||||||
|
Debug.Log($"Update Shader: '{path}'");
|
||||||
|
File.WriteAllText(path, text, Encoding.UTF8);
|
||||||
|
AssetDatabase.ImportAsset(path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b39275b24ae5648d5a67a308a9127e81
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -10,8 +10,9 @@ namespace Coffee.UIEffectInternal
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal class FastActionBase<T>
|
internal class FastActionBase<T>
|
||||||
{
|
{
|
||||||
private static readonly ObjectPool<LinkedListNode<T>> s_NodePool =
|
private static readonly InternalObjectPool<LinkedListNode<T>> s_NodePool =
|
||||||
new ObjectPool<LinkedListNode<T>>(() => new LinkedListNode<T>(default), _ => true, x => x.Value = default);
|
new InternalObjectPool<LinkedListNode<T>>(() => new LinkedListNode<T>(default), _ => true,
|
||||||
|
x => x.Value = default);
|
||||||
|
|
||||||
private readonly LinkedList<T> _delegates = new LinkedList<T>();
|
private readonly LinkedList<T> _delegates = new LinkedList<T>();
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace Coffee.UIEffectInternal
|
|||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
|
||||||
private static void Clear()
|
public static void Clear()
|
||||||
{
|
{
|
||||||
s_Repository.Clear();
|
s_Repository.Clear();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,144 @@
|
|||||||
|
using System;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Coffee.UIEffectInternal
|
||||||
|
{
|
||||||
|
[Serializable]
|
||||||
|
public struct MinMax01
|
||||||
|
{
|
||||||
|
[SerializeField]
|
||||||
|
private float m_Min;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private float m_Max;
|
||||||
|
|
||||||
|
public MinMax01(float min, float max)
|
||||||
|
{
|
||||||
|
m_Min = Mathf.Clamp01(Mathf.Min(min, max));
|
||||||
|
m_Max = Mathf.Clamp01(Mathf.Max(min, max));
|
||||||
|
}
|
||||||
|
|
||||||
|
public float min
|
||||||
|
{
|
||||||
|
get => m_Min;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
m_Min = Mathf.Clamp01(value);
|
||||||
|
m_Max = Mathf.Max(value, m_Max);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public float max
|
||||||
|
{
|
||||||
|
get => m_Max;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
m_Max = Mathf.Clamp01(value);
|
||||||
|
m_Min = Mathf.Min(value, m_Min);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public float average => (m_Max + m_Min) * 0.5f;
|
||||||
|
|
||||||
|
public bool Approximately(MinMax01 other)
|
||||||
|
{
|
||||||
|
return Mathf.Approximately(m_Min, other.m_Min) && Mathf.Approximately(m_Max, other.m_Max);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
[CustomPropertyDrawer(typeof(MinMax01))]
|
||||||
|
public class MinMaxRangeDrawer : PropertyDrawer
|
||||||
|
{
|
||||||
|
private const float k_NumWidth = 50;
|
||||||
|
private const float k_Space = 5;
|
||||||
|
private SerializedProperty _max;
|
||||||
|
private SerializedProperty _min;
|
||||||
|
|
||||||
|
private static bool IsSingleLine(GUIContent label)
|
||||||
|
{
|
||||||
|
return EditorGUIUtility.wideMode || label == null || string.IsNullOrEmpty(label.text);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
|
||||||
|
{
|
||||||
|
return IsSingleLine(label) ? 18 : 36;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnGUI(Rect position, SerializedProperty prop, GUIContent label)
|
||||||
|
{
|
||||||
|
EditorGUI.BeginProperty(position, label, prop);
|
||||||
|
|
||||||
|
if (_min == null)
|
||||||
|
{
|
||||||
|
prop.Next(true);
|
||||||
|
_min = prop.Copy();
|
||||||
|
prop.Next(true);
|
||||||
|
_max = prop.Copy();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (IsSingleLine(label))
|
||||||
|
{
|
||||||
|
position = EditorGUI.PrefixLabel(position, GUIUtility.GetControlID(FocusType.Passive), label);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
EditorGUI.PrefixLabel(position, GUIUtility.GetControlID(FocusType.Passive), label);
|
||||||
|
var indent = (EditorGUI.indentLevel + 1) * 15f;
|
||||||
|
position = new Rect(position.x + indent, position.y + 18, position.width - indent, 16);
|
||||||
|
}
|
||||||
|
|
||||||
|
var min = _min.floatValue;
|
||||||
|
var max = _max.floatValue;
|
||||||
|
if (Draw(position, ref min, ref max))
|
||||||
|
{
|
||||||
|
_min.floatValue = min;
|
||||||
|
_max.floatValue = max;
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUI.EndProperty();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool Draw(Rect position, ref float minValue, ref float maxValue)
|
||||||
|
{
|
||||||
|
var indentLevel = EditorGUI.indentLevel;
|
||||||
|
EditorGUI.indentLevel = 0;
|
||||||
|
EditorGUI.BeginChangeCheck();
|
||||||
|
|
||||||
|
var rect = new Rect(position.x, position.y, k_NumWidth, position.height);
|
||||||
|
minValue = Mathf.Clamp(EditorGUI.FloatField(rect, minValue), 0, maxValue);
|
||||||
|
|
||||||
|
rect.x += rect.width + k_Space;
|
||||||
|
rect.width = position.width - k_NumWidth * 2 - k_Space * 2;
|
||||||
|
EditorGUI.MinMaxSlider(rect, ref minValue, ref maxValue, 0, 1);
|
||||||
|
|
||||||
|
rect.x += rect.width + k_Space;
|
||||||
|
rect.width = k_NumWidth;
|
||||||
|
maxValue = Mathf.Clamp(EditorGUI.FloatField(rect, maxValue), minValue, 1);
|
||||||
|
|
||||||
|
EditorGUI.indentLevel = indentLevel;
|
||||||
|
return EditorGUI.EndChangeCheck();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool DrawLayout(GUIContent label, ref float minValue, ref float maxValue)
|
||||||
|
{
|
||||||
|
Rect position;
|
||||||
|
if (IsSingleLine(label))
|
||||||
|
{
|
||||||
|
position = EditorGUILayout.GetControlRect(true, 18f);
|
||||||
|
position = EditorGUI.PrefixLabel(position, GUIUtility.GetControlID(FocusType.Passive), label);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
position = EditorGUILayout.GetControlRect(true, 36f);
|
||||||
|
EditorGUI.PrefixLabel(position, GUIUtility.GetControlID(FocusType.Passive), label);
|
||||||
|
var indent = (EditorGUI.indentLevel + 1) * 15f;
|
||||||
|
position = new Rect(position.x + indent, position.y + 18, position.width - indent, 16);
|
||||||
|
}
|
||||||
|
|
||||||
|
return Draw(position, ref minValue, ref maxValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: dacf9fb8cdb9a4a62a74b629d84cabd3
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,132 @@
|
|||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
using Object = UnityEngine.Object;
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
#if UNITY_2021_2_OR_NEWER
|
||||||
|
using UnityEditor.SceneManagement;
|
||||||
|
#else
|
||||||
|
using UnityEditor.Experimental.SceneManagement;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace Coffee.UIEffectInternal
|
||||||
|
{
|
||||||
|
internal static class Misc
|
||||||
|
{
|
||||||
|
public static T[] FindObjectsOfType<T>() where T : Object
|
||||||
|
{
|
||||||
|
#if UNITY_2023_1_OR_NEWER
|
||||||
|
return Object.FindObjectsByType<T>(FindObjectsInactive.Include, FindObjectsSortMode.None);
|
||||||
|
#else
|
||||||
|
return Object.FindObjectsOfType<T>();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Destroy(Object obj)
|
||||||
|
{
|
||||||
|
if (!obj) return;
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
if (!Application.isPlaying)
|
||||||
|
{
|
||||||
|
Object.DestroyImmediate(obj);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
Object.Destroy(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void DestroyImmediate(Object obj)
|
||||||
|
{
|
||||||
|
if (!obj) return;
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
if (Application.isEditor)
|
||||||
|
{
|
||||||
|
Object.DestroyImmediate(obj);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
Object.Destroy(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[Conditional("UNITY_EDITOR")]
|
||||||
|
public static void SetDirty(Object obj)
|
||||||
|
{
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
if (!obj) return;
|
||||||
|
EditorUtility.SetDirty(obj);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
public static T[] GetAllComponentsInPrefabStage<T>() where T : Component
|
||||||
|
{
|
||||||
|
var prefabStage = PrefabStageUtility.GetCurrentPrefabStage();
|
||||||
|
if (prefabStage == null) return Array.Empty<T>();
|
||||||
|
|
||||||
|
return prefabStage.prefabContentsRoot.GetComponentsInChildren<T>(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool isBatchOrBuilding => Application.isBatchMode || BuildPipeline.isBuildingPlayer;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
[Conditional("UNITY_EDITOR")]
|
||||||
|
public static void QueuePlayerLoopUpdate()
|
||||||
|
{
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
if (!EditorApplication.isPlaying)
|
||||||
|
{
|
||||||
|
EditorApplication.QueuePlayerLoopUpdate();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !UNITY_2021_2_OR_NEWER
|
||||||
|
[AttributeUsage(AttributeTargets.Class)]
|
||||||
|
[Conditional("UNITY_EDITOR")]
|
||||||
|
internal class IconAttribute : Attribute
|
||||||
|
{
|
||||||
|
private readonly string _path;
|
||||||
|
|
||||||
|
public IconAttribute(string path)
|
||||||
|
{
|
||||||
|
_path = path;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
private static Action<Object, Texture2D> s_SetIconForObject = typeof(EditorGUIUtility)
|
||||||
|
.GetMethod("SetIconForObject", BindingFlags.Static | BindingFlags.NonPublic)
|
||||||
|
.CreateDelegate(typeof(Action<Object, Texture2D>), null) as Action<Object, Texture2D>;
|
||||||
|
|
||||||
|
[InitializeOnLoadMethod]
|
||||||
|
private static void InitializeOnLoadMethod()
|
||||||
|
{
|
||||||
|
if (Misc.isBatchOrBuilding) return;
|
||||||
|
|
||||||
|
var types = TypeCache.GetTypesWithAttribute<IconAttribute>();
|
||||||
|
var scripts = MonoImporter.GetAllRuntimeMonoScripts();
|
||||||
|
foreach (var type in types)
|
||||||
|
{
|
||||||
|
var script = scripts.FirstOrDefault(x => x.GetClass() == type);
|
||||||
|
if (!script) continue;
|
||||||
|
|
||||||
|
var path = type.GetCustomAttribute<IconAttribute>()?._path;
|
||||||
|
var icon = AssetDatabase.LoadAssetAtPath<Texture2D>(path);
|
||||||
|
if (!icon) continue;
|
||||||
|
|
||||||
|
s_SetIconForObject(script, icon);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b516f6b0a2e2542dab543c7ab4026245
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user