mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-21 10:22:37 +08:00
Compare commits
179 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| afbfcdd40c | |||
| c34c2ec0c2 | |||
| da6651ae65 | |||
| 255d600275 | |||
| d359086ed4 | |||
| 6e8aaf36f0 | |||
| 27629cdd7c | |||
| bb2efc0790 | |||
| d41d1ad21f | |||
| 739ae50549 | |||
| 3ca1214233 | |||
| fb75fd4817 | |||
| 2c1d857119 | |||
| e856b0b939 | |||
| 6cbb793d8d | |||
| 485e2df9fc | |||
| 4a49e9a8b2 | |||
| af0ae7bdf7 | |||
| d1fa0d143f | |||
| 55a7f27204 | |||
| ff824c2341 | |||
| 014bba3f56 | |||
| f533d02977 | |||
| 8bb782c90a | |||
| 2617f77c6a | |||
| 1f4427c3d5 | |||
| 2dcb7f7e86 | |||
| 0a4229907d | |||
| dbf8ae00f5 | |||
| cacb9fde45 | |||
| 9d980961d6 | |||
| 399f25db2a | |||
| 161fc546ca | |||
| 96f9d09ac7 | |||
| cb07e1f25e | |||
| 7525c782ef | |||
| 9aaa0de59d | |||
| a556c28221 | |||
| 0fb08bf202 | |||
| 55e3030dd2 | |||
| d2c0789375 | |||
| a373cf772b | |||
| ec3fb13c11 | |||
| 514d5f0347 | |||
| dfe91edac1 | |||
| 8f3c990a3a | |||
| e8b1b5f89e | |||
| ae7ffad789 | |||
| c7696c09c0 | |||
| b6b538f64f | |||
| 730aa2bb4d | |||
| 546d603674 | |||
| e955715c99 | |||
| 72bb1c5131 | |||
| f538ef2cba | |||
| ae483ec577 | |||
| facb78262c | |||
| a2c550c523 | |||
| 44cf12173f | |||
| d7abcc47f1 | |||
| 57031c3e3c | |||
| cd68b364c4 | |||
| f3da972c0c | |||
| 2d6f7ed63d | |||
| 70937d2ce3 | |||
| 4a4e50e01f | |||
| 815162eab9 | |||
| 7fc0c7364d | |||
| 20e7f2fa61 | |||
| 1b292febb7 | |||
| 6b79864a39 | |||
| 4e30651290 | |||
| 87760570ec | |||
| ef7ac0aaad | |||
| 2fd87e909a | |||
| 2cc5c5b68e | |||
| 4a8d341625 | |||
| a885fc5bc1 | |||
| 4fdd9636fa | |||
| 06a280ec5a | |||
| e6fb78a0f6 | |||
| 451cbe4302 | |||
| 3cae638bdd | |||
| 533d7b8c0a | |||
| 9380f96572 | |||
| b4adb32512 | |||
| 59874ddffe | |||
| c4202b45d2 | |||
| ce692580a3 | |||
| 6c808aa341 | |||
| a975cf347a | |||
| 3207105a06 | |||
| 4cca2fb5ab | |||
| d1adb33884 | |||
| b077d97ed7 | |||
| 6f90044ec8 | |||
| 83128ebb09 | |||
| 9dffdb0ed8 | |||
| 16be53e145 | |||
| fd2d1b8059 | |||
| cf43bfffb9 | |||
| a2f4a2d5c9 | |||
| 0d7fb1eb63 | |||
| 145f56968a | |||
| cadbb8d68d | |||
| a0c3e4997a | |||
| 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 |
@@ -22,7 +22,7 @@ jobs:
|
|||||||
find _site -name __MACOSX | xargs rm -rf
|
find _site -name __MACOSX | xargs rm -rf
|
||||||
|
|
||||||
- name: 📦 Upload '_site'
|
- name: 📦 Upload '_site'
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v5
|
||||||
|
|
||||||
- name: 🚀 Deploy To GitHub Pages
|
- name: 🚀 Deploy To GitHub Pages
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v5
|
||||||
|
|||||||
@@ -25,18 +25,19 @@ jobs:
|
|||||||
tag: ${{ steps.release.outputs.new_release_git_tag }}
|
tag: ${{ steps.release.outputs.new_release_git_tag }}
|
||||||
steps:
|
steps:
|
||||||
- name: 🚚 Checkout (${{ github.ref_name }})
|
- name: 🚚 Checkout (${{ github.ref_name }})
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
- name: 🔖 Run semantic release
|
- name: 🔖 Run semantic release
|
||||||
uses: cycjimmy/semantic-release-action@v4
|
uses: cycjimmy/semantic-release-action@v6
|
||||||
id: release
|
id: release
|
||||||
with:
|
with:
|
||||||
working_directory: Packages/src
|
working_directory: Packages/src
|
||||||
extra_plugins: |
|
extra_plugins: |
|
||||||
@semantic-release/changelog
|
@semantic-release/changelog
|
||||||
|
@semantic-release/exec
|
||||||
@semantic-release/git
|
@semantic-release/git
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
echo "🔖 New release published: '${{ steps.release.outputs.new_release_published }}'" | tee -a $GITHUB_STEP_SUMMARY
|
echo "🔖 New release published: '${{ steps.release.outputs.new_release_published }}'" | tee -a $GITHUB_STEP_SUMMARY
|
||||||
|
|||||||
@@ -0,0 +1,155 @@
|
|||||||
|
# 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
|
||||||
|
MAXIMUM_VERSION:
|
||||||
|
# EXCLUDE_FILTER: The excluded versions of Unity.
|
||||||
|
EXCLUDE_FILTER: "(2017|2018|2023.3)"
|
||||||
|
IGNORE_ALPHA: false
|
||||||
|
IGNORE_BETA: false
|
||||||
|
PROJECT_PATH: UIEffectURP
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
unityVersions:
|
||||||
|
description: 'Specify the Unity versions to test. (eg. [ "2019.4.41f2", "2020.3.15f2" ])'
|
||||||
|
required: false
|
||||||
|
default: '[ "6000.0.0f1", "6000.1.0f1" ]'
|
||||||
|
usePeriodVersions:
|
||||||
|
description: 'Use the period versions (.0f1, .10f1, 20f1, ...).'
|
||||||
|
required: false
|
||||||
|
default: "true"
|
||||||
|
overrideFindOptions:
|
||||||
|
description: 'Specify options for unity-changeset. (eg. --ignore-alpha --max 2020.3 )'
|
||||||
|
required: false
|
||||||
|
default: '--min 6000.0 --max 9999.9 --ignore-alpha --ignore-beta'
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
- "develop-*"
|
||||||
|
tags:
|
||||||
|
- "!*"
|
||||||
|
paths-ignore:
|
||||||
|
- "**.md"
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
paths-ignore:
|
||||||
|
- "**.md"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
setup:
|
||||||
|
name: ⚙️ Setup
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions: {} # No permissions needed for setup job
|
||||||
|
outputs:
|
||||||
|
unityVersions: ${{ steps.setup.outputs.unityVersions }}
|
||||||
|
steps:
|
||||||
|
- name: 🔑 Secrets check
|
||||||
|
run: |
|
||||||
|
echo "Checking secrets for ${{ github.actor }} ..."
|
||||||
|
if [ -z "$UNITY_EMAIL" ] || [ -z "$UNITY_PASSWORD" ] || [ -z "$UNITY_LICENSE" ]; then
|
||||||
|
echo "Error: UNITY_EMAIL, UNITY_PASSWORD, and UNITY_LICENSE secrets must be set." | tee -a $GITHUB_STEP_SUMMARY >&2
|
||||||
|
echo "Error: See https://game.ci/docs/github/test-runner#basic-setup" | tee -a $GITHUB_STEP_SUMMARY >&2
|
||||||
|
echo "Error: Set the secrets at ${{ github.server_url }}/${{ github.repository }}/settings/secrets/actions" | tee -a $GITHUB_STEP_SUMMARY >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
env:
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
- name: ⚙️ Find target Unity versions
|
||||||
|
id: setup
|
||||||
|
run: |
|
||||||
|
echo "==== Target Unity Versions ===="
|
||||||
|
|
||||||
|
# Check if specific Unity versions are provided via inputs (for workflow_dispatch)
|
||||||
|
if [ -n "${{ inputs.unityVersions }}" ]; then
|
||||||
|
echo "* Using specified Unity versions" | tee $GITHUB_OUTPUT
|
||||||
|
echo 'unityVersions=${{ inputs.unityVersions }}' | tee $GITHUB_OUTPUT
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Formulate find options based on inputs and environment variables
|
||||||
|
FIND_OPTIONS=""
|
||||||
|
[ "${{ env.IGNORE_ALPHA }}" = "true" ] && FIND_OPTIONS+=" --ignore-alpha"
|
||||||
|
[ "${{ env.IGNORE_BETA }}" = "true" ] && FIND_OPTIONS+=" --ignore-beta"
|
||||||
|
[ -n "${{ env.MINIMUM_VERSION }}" ] && FIND_OPTIONS+=" --min ${MINIMUM_VERSION}"
|
||||||
|
[ -n "${{ env.MAXIMUM_VERSION }}" ] && FIND_OPTIONS+=" --max ${MAXIMUM_VERSION}"
|
||||||
|
[ -n "${{ inputs.overrideFindOptions }}" ] && FIND_OPTIONS="${inputs.overrideFindOptions}"
|
||||||
|
echo "find options: $FIND_OPTIONS"
|
||||||
|
|
||||||
|
# Find the latest Unity versions if no specific versions are provided
|
||||||
|
LATEST_VERSIONS=`npx -y unity-changeset@latest list --json --versions --all --latest-patch $FIND_OPTIONS`
|
||||||
|
if [ "${{ inputs.usePeriodVersions }}" = "true" ]; then
|
||||||
|
ADDITIONAL_VERSIONS=`npx -y unity-changeset@latest list --json --versions $FIND_OPTIONS --grep '0f'`
|
||||||
|
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: 8
|
||||||
|
matrix:
|
||||||
|
unityVersion: ${{ fromJson(needs.setup.outputs.unityVersions) }}
|
||||||
|
steps:
|
||||||
|
- name: 🚚 Checkout ($${{ github.ref }})
|
||||||
|
uses: actions/checkout@v7
|
||||||
|
|
||||||
|
- name: 📥 Cache library
|
||||||
|
uses: actions/cache@v6
|
||||||
|
with:
|
||||||
|
path: ${{ env.PROJECT_PATH }}/Library
|
||||||
|
key: ${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}-
|
||||||
|
${{ env.PROJECT_PATH }}-Library-
|
||||||
|
|
||||||
|
- name: 🛠️ Build Unity Project (Test)
|
||||||
|
uses: mob-sakai/unity-builder@fix/support-unity6.6
|
||||||
|
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: mob-sakai/unity-test-runner@fix/support-unity6.6
|
||||||
|
# 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 }}
|
||||||
|
# projectPath: ${{ env.PROJECT_PATH }}
|
||||||
|
# env:
|
||||||
|
# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
+60
-29
@@ -8,16 +8,28 @@ 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
|
||||||
|
MAXIMUM_VERSION: 6000.7.99
|
||||||
# EXCLUDE_FILTER: The excluded versions of Unity.
|
# EXCLUDE_FILTER: The excluded versions of Unity.
|
||||||
EXCLUDE_FILTER: "(2020.2.0|2021.1|2023.2|2023.3)"
|
EXCLUDE_FILTER: "(2017|2018|2023.3)"
|
||||||
|
IGNORE_ALPHA: false
|
||||||
|
IGNORE_BETA: false
|
||||||
|
PROJECT_PATH: .
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
unityVersions:
|
||||||
|
description: 'Specify the Unity versions to test. (eg. [ "2019.4.41f2", "2020.3.15f2" ])'
|
||||||
|
required: false
|
||||||
|
default: '[ "2019.4.41f2", "2020.3.15f2" ]'
|
||||||
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"
|
||||||
|
overrideFindOptions:
|
||||||
|
description: 'Specify options for unity-changeset. (eg. --ignore-alpha --max 2020.3 )'
|
||||||
|
required: false
|
||||||
|
default: '--min 2019.4 --max 9999.9 --ignore-alpha --ignore-beta'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
@@ -26,7 +38,7 @@ on:
|
|||||||
- "!*"
|
- "!*"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**.md"
|
- "**.md"
|
||||||
pull_request_target:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
- reopened
|
- reopened
|
||||||
@@ -38,16 +50,48 @@ jobs:
|
|||||||
setup:
|
setup:
|
||||||
name: ⚙️ Setup
|
name: ⚙️ Setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions: {} # No permissions needed for setup job
|
||||||
outputs:
|
outputs:
|
||||||
unityVersions: ${{ steps.setup.outputs.unityVersions }}
|
unityVersions: ${{ steps.setup.outputs.unityVersions }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: 🔑 Secrets check
|
||||||
|
run: |
|
||||||
|
echo "Checking secrets for ${{ github.actor }} ..."
|
||||||
|
if [ -z "$UNITY_EMAIL" ] || [ -z "$UNITY_PASSWORD" ] || [ -z "$UNITY_LICENSE" ]; then
|
||||||
|
echo "Error: UNITY_EMAIL, UNITY_PASSWORD, and UNITY_LICENSE secrets must be set." | tee -a $GITHUB_STEP_SUMMARY >&2
|
||||||
|
echo "Error: See https://game.ci/docs/github/test-runner#basic-setup" | tee -a $GITHUB_STEP_SUMMARY >&2
|
||||||
|
echo "Error: Set the secrets at ${{ github.server_url }}/${{ github.repository }}/settings/secrets/actions" | tee -a $GITHUB_STEP_SUMMARY >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
env:
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
- name: ⚙️ Find target Unity versions
|
- name: ⚙️ Find target Unity versions
|
||||||
id: setup
|
id: setup
|
||||||
run: |
|
run: |
|
||||||
echo "==== Target Unity Versions ===="
|
echo "==== Target Unity Versions ===="
|
||||||
LATEST_VERSIONS=`npx unity-changeset list --versions --latest-patch --min ${MINIMUM_VERSION} --json --all`
|
|
||||||
|
# Check if specific Unity versions are provided via inputs (for workflow_dispatch)
|
||||||
|
if [ -n "${{ inputs.unityVersions }}" ]; then
|
||||||
|
echo "* Using specified Unity versions" | tee $GITHUB_OUTPUT
|
||||||
|
echo 'unityVersions=${{ inputs.unityVersions }}' | tee $GITHUB_OUTPUT
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Formulate find options based on inputs and environment variables
|
||||||
|
FIND_OPTIONS=""
|
||||||
|
[ "${{ env.IGNORE_ALPHA }}" = "true" ] && FIND_OPTIONS+=" --ignore-alpha"
|
||||||
|
[ "${{ env.IGNORE_BETA }}" = "true" ] && FIND_OPTIONS+=" --ignore-beta"
|
||||||
|
[ -n "${{ env.MINIMUM_VERSION }}" ] && FIND_OPTIONS+=" --min ${MINIMUM_VERSION}"
|
||||||
|
[ -n "${{ env.MAXIMUM_VERSION }}" ] && FIND_OPTIONS+=" --max ${MAXIMUM_VERSION}"
|
||||||
|
[ -n "${{ inputs.overrideFindOptions }}" ] && FIND_OPTIONS="${inputs.overrideFindOptions}"
|
||||||
|
echo "find options: $FIND_OPTIONS"
|
||||||
|
|
||||||
|
# Find the latest Unity versions if no specific versions are provided
|
||||||
|
LATEST_VERSIONS=`npx -y unity-changeset@latest list --json --versions --all --latest-patch $FIND_OPTIONS`
|
||||||
if [ "${{ inputs.usePeriodVersions }}" = "true" ]; then
|
if [ "${{ inputs.usePeriodVersions }}" = "true" ]; then
|
||||||
ADDITIONAL_VERSIONS=`npx unity-changeset list --versions --grep '0f' --min ${MINIMUM_VERSION} --json`
|
ADDITIONAL_VERSIONS=`npx -y unity-changeset@latest list --json --versions $FIND_OPTIONS --grep '0f'`
|
||||||
else
|
else
|
||||||
ADDITIONAL_VERSIONS=[]
|
ADDITIONAL_VERSIONS=[]
|
||||||
fi
|
fi
|
||||||
@@ -65,52 +109,38 @@ jobs:
|
|||||||
needs: setup
|
needs: setup
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
max-parallel: 6
|
max-parallel: 8
|
||||||
matrix:
|
matrix:
|
||||||
unityVersion: ${{ fromJson(needs.setup.outputs.unityVersions) }}
|
unityVersion: ${{ fromJson(needs.setup.outputs.unityVersions) }}
|
||||||
steps:
|
steps:
|
||||||
- name: 🚚 Checkout ($${{ github.ref }})
|
- name: 🚚 Checkout ($${{ github.ref }})
|
||||||
if: github.event_name == 'push'
|
uses: actions/checkout@v7
|
||||||
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
|
- name: 📥 Cache library
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v6
|
||||||
with:
|
with:
|
||||||
path: Library
|
path: ${{ env.PROJECT_PATH }}/Library
|
||||||
key: Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
|
key: ${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}-${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
Library-${{ matrix.unityVersion }}-
|
${{ env.PROJECT_PATH }}-Library-${{ matrix.unityVersion }}-
|
||||||
Library-
|
${{ env.PROJECT_PATH }}-Library-
|
||||||
|
|
||||||
- name: 🛠️ Build Unity Project (Test)
|
- name: 🛠️ Build Unity Project (Test)
|
||||||
uses: game-ci/unity-builder@v4
|
uses: mob-sakai/unity-builder@fix/support-unity6.6
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
with:
|
with:
|
||||||
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
||||||
targetPlatform: StandaloneLinux64
|
targetPlatform: StandaloneLinux64
|
||||||
allowDirtyBuild: true
|
allowDirtyBuild: true
|
||||||
customParameters: -nographics
|
customParameters: -nographics
|
||||||
|
projectPath: ${{ env.PROJECT_PATH }}
|
||||||
env:
|
env:
|
||||||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
|
||||||
- name: 🧪 Run tests
|
- name: 🧪 Run tests
|
||||||
uses: game-ci/unity-test-runner@v4
|
uses: mob-sakai/unity-test-runner@fix/support-unity6.6
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
with:
|
with:
|
||||||
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
||||||
@@ -118,6 +148,7 @@ jobs:
|
|||||||
customParameters: -nographics
|
customParameters: -nographics
|
||||||
checkName: ${{ matrix.unityVersion }} Test Results
|
checkName: ${{ matrix.unityVersion }} Test Results
|
||||||
githubToken: ${{ github.token }}
|
githubToken: ${{ github.token }}
|
||||||
|
projectPath: ${{ env.PROJECT_PATH }}
|
||||||
env:
|
env:
|
||||||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
|||||||
+2
-1
@@ -26,4 +26,5 @@ bin/
|
|||||||
UserSettings/
|
UserSettings/
|
||||||
*.app/
|
*.app/
|
||||||
Build/
|
Build/
|
||||||
Assets/TextMeshPro Support*
|
Assets/Samples*
|
||||||
|
Packages/src/Samples~/*.meta
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: ebc947de92b024b329663fe914a7d168
|
guid: 809b2c417b0714d479b9ccf131d24bda
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: 468a46d0ae32c3544b7d98094e6448a9, type: 3}
|
||||||
|
m_Name: AddressableAssetSettings
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_DefaultGroup: 78c1e50bdf28744fc9af8aedb47f2517
|
||||||
|
m_OptimizeCatalogSize: 0
|
||||||
|
m_BuildRemoteCatalog: 0
|
||||||
|
m_BundleLocalCatalog: 0
|
||||||
|
m_CatalogRequestsTimeout: 0
|
||||||
|
m_DisableCatalogUpdateOnStart: 0
|
||||||
|
m_IgnoreUnsupportedFilesInBuild: 0
|
||||||
|
m_UniqueBundleIds: 0
|
||||||
|
m_NonRecursiveBuilding: 0
|
||||||
|
m_CCDEnabled: 0
|
||||||
|
m_maxConcurrentWebRequests: 3
|
||||||
|
m_ContiguousBundles: 0
|
||||||
|
m_StripUnityVersionFromBundleBuild: 0
|
||||||
|
m_DisableVisibleSubAssetRepresentations: 0
|
||||||
|
m_ShaderBundleNaming: 0
|
||||||
|
m_ShaderBundleCustomNaming:
|
||||||
|
m_MonoScriptBundleNaming: 0
|
||||||
|
m_CheckForContentUpdateRestrictionsOption: 0
|
||||||
|
m_MonoScriptBundleCustomNaming:
|
||||||
|
m_RemoteCatalogBuildPath:
|
||||||
|
m_Id: e92f87e9fe51b4b0b8a9a47cf7cab399
|
||||||
|
m_RemoteCatalogLoadPath:
|
||||||
|
m_Id: f077767d1bbbf451db919d7819556f80
|
||||||
|
m_ContentStateBuildPathProfileVariableName: <default settings path>
|
||||||
|
m_CustomContentStateBuildPath:
|
||||||
|
m_ContentStateBuildPath:
|
||||||
|
m_BuildAddressablesWithPlayerBuild: 0
|
||||||
|
m_overridePlayerVersion: '[UnityEditor.PlayerSettings.bundleVersion]'
|
||||||
|
m_GroupAssets:
|
||||||
|
- {fileID: 11400000, guid: d990055319c2b44b0b81ce4e3045db49, type: 2}
|
||||||
|
- {fileID: 11400000, guid: cb582cfe3736847f09b83adf8d15c36a, type: 2}
|
||||||
|
m_BuildSettings:
|
||||||
|
m_CompileScriptsInVirtualMode: 0
|
||||||
|
m_CleanupStreamingAssetsAfterBuilds: 1
|
||||||
|
m_LogResourceManagerExceptions: 1
|
||||||
|
m_BundleBuildPath: Temp/com.unity.addressables/AssetBundles
|
||||||
|
m_ProfileSettings:
|
||||||
|
m_Profiles:
|
||||||
|
- m_InheritedParent:
|
||||||
|
m_Id: f0c1919924e394e59af6bca6c9c911f0
|
||||||
|
m_ProfileName: Default
|
||||||
|
m_Values:
|
||||||
|
- m_Id: 45c7a530ddf2f4d138f32bf67335f91b
|
||||||
|
m_Value: '{UnityEngine.AddressableAssets.Addressables.RuntimePath}/[BuildTarget]'
|
||||||
|
- m_Id: c903326cd5c18420c8e3c894b1648d26
|
||||||
|
m_Value: '[UnityEngine.AddressableAssets.Addressables.BuildPath]/[BuildTarget]'
|
||||||
|
- m_Id: d01b18903c32d4541ac46fd27aeee619
|
||||||
|
m_Value: '[UnityEditor.EditorUserBuildSettings.activeBuildTarget]'
|
||||||
|
- m_Id: e92f87e9fe51b4b0b8a9a47cf7cab399
|
||||||
|
m_Value: ServerData/[BuildTarget]
|
||||||
|
- m_Id: f077767d1bbbf451db919d7819556f80
|
||||||
|
m_Value: http://[PrivateIpAddress]:[HostingServicePort]
|
||||||
|
m_ProfileEntryNames:
|
||||||
|
- m_Id: 45c7a530ddf2f4d138f32bf67335f91b
|
||||||
|
m_Name: Local.LoadPath
|
||||||
|
m_InlineUsage: 0
|
||||||
|
- m_Id: c903326cd5c18420c8e3c894b1648d26
|
||||||
|
m_Name: Local.BuildPath
|
||||||
|
m_InlineUsage: 0
|
||||||
|
- m_Id: d01b18903c32d4541ac46fd27aeee619
|
||||||
|
m_Name: BuildTarget
|
||||||
|
m_InlineUsage: 0
|
||||||
|
- m_Id: e92f87e9fe51b4b0b8a9a47cf7cab399
|
||||||
|
m_Name: Remote.BuildPath
|
||||||
|
m_InlineUsage: 0
|
||||||
|
- m_Id: f077767d1bbbf451db919d7819556f80
|
||||||
|
m_Name: Remote.LoadPath
|
||||||
|
m_InlineUsage: 0
|
||||||
|
m_ProfileVersion: 1
|
||||||
|
m_LabelTable:
|
||||||
|
m_LabelNames:
|
||||||
|
- default
|
||||||
|
m_SchemaTemplates: []
|
||||||
|
m_GroupTemplateObjects:
|
||||||
|
- {fileID: 11400000, guid: e03fdb26845f04c75b6fe9288c63a63a, type: 2}
|
||||||
|
m_InitializationObjects: []
|
||||||
|
m_CertificateHandlerType:
|
||||||
|
m_AssemblyName:
|
||||||
|
m_ClassName:
|
||||||
|
m_ActivePlayerDataBuilderIndex: 3
|
||||||
|
m_DataBuilders:
|
||||||
|
- {fileID: 11400000, guid: 797c488c7f2114197a8f18811c5cd128, type: 2}
|
||||||
|
- {fileID: 11400000, guid: 1400420db15a741b5a71c357c678c805, type: 2}
|
||||||
|
- {fileID: 11400000, guid: 96f4fd6856bbb4d5998503b7b5d15151, type: 2}
|
||||||
|
- {fileID: 11400000, guid: afc7e8697497b41f2ac9064294b360eb, type: 2}
|
||||||
|
m_ActiveProfileId: f0c1919924e394e59af6bca6c9c911f0
|
||||||
|
m_HostingServicesManager:
|
||||||
|
m_HostingServiceInfos: []
|
||||||
|
m_Settings: {fileID: 11400000}
|
||||||
|
m_NextInstanceId: 0
|
||||||
|
m_RegisteredServiceTypeRefs: []
|
||||||
|
m_PingTimeoutInMilliseconds: 5000
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 9379b7b2236ab4c0e9f8d9f7db9936a8
|
guid: 43329c4cc56ca415da37a048e434183a
|
||||||
NativeFormatImporter:
|
NativeFormatImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
mainObjectFileID: 11400000
|
mainObjectFileID: 11400000
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: a1b972071582443e2845278a859a1533
|
guid: a0cd82815cf624171bd2e59cf74c4f7d
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &-6130888278409392347
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
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: e5d17a21594effb4e9591490b009e7aa, type: 3}
|
||||||
|
m_Name: BundledAssetGroupSchema
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Group: {fileID: 0}
|
||||||
|
m_InternalBundleIdMode: 1
|
||||||
|
m_Compression: 1
|
||||||
|
m_IncludeAddressInCatalog: 1
|
||||||
|
m_IncludeGUIDInCatalog: 1
|
||||||
|
m_IncludeLabelsInCatalog: 1
|
||||||
|
m_InternalIdNamingMode: 0
|
||||||
|
m_CacheClearBehavior: 0
|
||||||
|
m_IncludeInBuild: 1
|
||||||
|
m_BundledAssetProviderType:
|
||||||
|
m_AssemblyName:
|
||||||
|
m_ClassName:
|
||||||
|
m_ForceUniqueProvider: 0
|
||||||
|
m_UseAssetBundleCache: 1
|
||||||
|
m_UseAssetBundleCrc: 1
|
||||||
|
m_UseAssetBundleCrcForCachedBundles: 1
|
||||||
|
m_UseUWRForLocalBundles: 0
|
||||||
|
m_Timeout: 0
|
||||||
|
m_ChunkedTransfer: 0
|
||||||
|
m_RedirectLimit: -1
|
||||||
|
m_RetryCount: 0
|
||||||
|
m_BuildPath:
|
||||||
|
m_Id:
|
||||||
|
m_LoadPath:
|
||||||
|
m_Id:
|
||||||
|
m_BundleMode: 0
|
||||||
|
m_AssetBundleProviderType:
|
||||||
|
m_AssemblyName:
|
||||||
|
m_ClassName:
|
||||||
|
m_BundleNaming: 0
|
||||||
|
m_AssetLoadMode: 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: 1a3c5d64ac83548c09dd1678b9f6f1cd, type: 3}
|
||||||
|
m_Name: Packed Assets
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_SchemaObjects:
|
||||||
|
- {fileID: -6130888278409392347}
|
||||||
|
- {fileID: 5814898001239217010}
|
||||||
|
m_Description: Pack assets into asset bundles.
|
||||||
|
m_Settings: {fileID: 11400000, guid: 43329c4cc56ca415da37a048e434183a, type: 2}
|
||||||
|
--- !u!114 &5814898001239217010
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
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: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
|
||||||
|
m_Name: ContentUpdateGroupSchema
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Group: {fileID: 0}
|
||||||
|
m_StaticContent: 0
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e03fdb26845f04c75b6fe9288c63a63a
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 69f569585a2b5439b830cc115efdf867
|
guid: 022ed075843094601944a986a7c4ea61
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
|
||||||
|
m_Name: Built In Data
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_GroupName: Built In Data
|
||||||
|
m_Data:
|
||||||
|
m_SerializedData: []
|
||||||
|
m_GUID: 05078fdb0a88640219afbdb7f385d64e
|
||||||
|
m_SerializeEntries:
|
||||||
|
- m_GUID: EditorSceneList
|
||||||
|
m_Address: EditorSceneList
|
||||||
|
m_ReadOnly: 1
|
||||||
|
m_SerializedLabels: []
|
||||||
|
FlaggedDuringContentUpdateRestriction: 0
|
||||||
|
- m_GUID: Resources
|
||||||
|
m_Address: Resources
|
||||||
|
m_ReadOnly: 1
|
||||||
|
m_SerializedLabels: []
|
||||||
|
FlaggedDuringContentUpdateRestriction: 0
|
||||||
|
m_ReadOnly: 1
|
||||||
|
m_Settings: {fileID: 11400000, guid: 43329c4cc56ca415da37a048e434183a, type: 2}
|
||||||
|
m_SchemaSet:
|
||||||
|
m_Schemas:
|
||||||
|
- {fileID: 11400000, guid: b05efeaac5be043d1b4b6fd1077db150, type: 2}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d990055319c2b44b0b81ce4e3045db49
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
|
||||||
|
m_Name: Default Local Group
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_GroupName: Default Local Group
|
||||||
|
m_Data:
|
||||||
|
m_SerializedData: []
|
||||||
|
m_GUID: 78c1e50bdf28744fc9af8aedb47f2517
|
||||||
|
m_SerializeEntries:
|
||||||
|
- m_GUID: d9f8e387c42cf4a6785eb5cf2a94beae
|
||||||
|
m_Address: Assets/ProjectSettings/UIEffectProjectSettings.asset
|
||||||
|
m_ReadOnly: 0
|
||||||
|
m_SerializedLabels: []
|
||||||
|
FlaggedDuringContentUpdateRestriction: 0
|
||||||
|
m_ReadOnly: 0
|
||||||
|
m_Settings: {fileID: 11400000, guid: 43329c4cc56ca415da37a048e434183a, type: 2}
|
||||||
|
m_SchemaSet:
|
||||||
|
m_Schemas:
|
||||||
|
- {fileID: 11400000, guid: 1357ca7896c984ca2bec3ee274fc2b16, type: 2}
|
||||||
|
- {fileID: 11400000, guid: 2796025dd70994899bc32992cf7024c9, type: 2}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cb582cfe3736847f09b83adf8d15c36a
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6f4bdfbde85c84294892ee4118bf99c8
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: b1487f5d688e4f94f828f879d599dbdc, type: 3}
|
||||||
|
m_Name: Built In Data_PlayerDataGroupSchema
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Group: {fileID: 11400000, guid: d990055319c2b44b0b81ce4e3045db49, type: 2}
|
||||||
|
m_IncludeResourcesFolders: 1
|
||||||
|
m_IncludeBuildSettingsScenes: 1
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b05efeaac5be043d1b4b6fd1077db150
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: e5d17a21594effb4e9591490b009e7aa, type: 3}
|
||||||
|
m_Name: Default Local Group_BundledAssetGroupSchema
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Group: {fileID: 11400000, guid: cb582cfe3736847f09b83adf8d15c36a, type: 2}
|
||||||
|
m_InternalBundleIdMode: 1
|
||||||
|
m_Compression: 1
|
||||||
|
m_IncludeAddressInCatalog: 1
|
||||||
|
m_IncludeGUIDInCatalog: 1
|
||||||
|
m_IncludeLabelsInCatalog: 1
|
||||||
|
m_InternalIdNamingMode: 0
|
||||||
|
m_CacheClearBehavior: 0
|
||||||
|
m_IncludeInBuild: 1
|
||||||
|
m_BundledAssetProviderType:
|
||||||
|
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
|
||||||
|
m_ForceUniqueProvider: 0
|
||||||
|
m_UseAssetBundleCache: 1
|
||||||
|
m_UseAssetBundleCrc: 1
|
||||||
|
m_UseAssetBundleCrcForCachedBundles: 1
|
||||||
|
m_UseUWRForLocalBundles: 0
|
||||||
|
m_Timeout: 0
|
||||||
|
m_ChunkedTransfer: 0
|
||||||
|
m_RedirectLimit: -1
|
||||||
|
m_RetryCount: 0
|
||||||
|
m_BuildPath:
|
||||||
|
m_Id: c903326cd5c18420c8e3c894b1648d26
|
||||||
|
m_LoadPath:
|
||||||
|
m_Id: 45c7a530ddf2f4d138f32bf67335f91b
|
||||||
|
m_BundleMode: 0
|
||||||
|
m_AssetBundleProviderType:
|
||||||
|
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
|
||||||
|
m_BundleNaming: 0
|
||||||
|
m_AssetLoadMode: 0
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1357ca7896c984ca2bec3ee274fc2b16
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
|
||||||
|
m_Name: Default Local Group_ContentUpdateGroupSchema
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Group: {fileID: 11400000, guid: cb582cfe3736847f09b83adf8d15c36a, type: 2}
|
||||||
|
m_StaticContent: 0
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2796025dd70994899bc32992cf7024c9
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7c26ed2464c14469b95f5e97b5f2428c
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: 88d21199f5d473f4db36845f2318f180, type: 3}
|
||||||
|
m_Name: BuildScriptFastMode
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
instanceProviderType:
|
||||||
|
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
|
||||||
|
sceneProviderType:
|
||||||
|
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 797c488c7f2114197a8f18811c5cd128
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: 3e2e0ffa088c91d41a086d0b8cb16bdc, type: 3}
|
||||||
|
m_Name: BuildScriptPackedMode
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
instanceProviderType:
|
||||||
|
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
|
||||||
|
sceneProviderType:
|
||||||
|
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: afc7e8697497b41f2ac9064294b360eb
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: ad8c280d42ee0ed41a27db23b43dd2bf, type: 3}
|
||||||
|
m_Name: BuildScriptPackedPlayMode
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
instanceProviderType:
|
||||||
|
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
|
||||||
|
sceneProviderType:
|
||||||
|
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 96f4fd6856bbb4d5998503b7b5d15151
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: bb0e4994b34add1409fd8ccaf4a82de5, type: 3}
|
||||||
|
m_Name: BuildScriptVirtualMode
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
instanceProviderType:
|
||||||
|
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
|
||||||
|
sceneProviderType:
|
||||||
|
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1400420db15a741b5a71c357c678c805
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: 3a189bb168d8d90478a09ea08c2f3d72, type: 3}
|
||||||
|
m_Name: DefaultObject
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_AddressableAssetSettingsGuid: 43329c4cc56ca415da37a048e434183a
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c73d220faf28240f1a28d59807c79b75
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6d68f022c46564bf6ac355588397507a
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 3b09ad143990c4c8795c6e93760e132a
|
guid: 96c707d74b3d841a5a3015029fa74330
|
||||||
PrefabImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !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: 7e3976da977cb49238499ea3b4c237ae, type: 3}
|
||||||
|
m_Name: ProfileDataSourceSettings
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
profileGroupTypes:
|
||||||
|
- m_GroupTypePrefix: Built-In
|
||||||
|
m_Variables:
|
||||||
|
- m_Suffix: BuildPath
|
||||||
|
m_Value: '[UnityEngine.AddressableAssets.Addressables.BuildPath]/[BuildTarget]'
|
||||||
|
- m_Suffix: LoadPath
|
||||||
|
m_Value: '{UnityEngine.AddressableAssets.Addressables.RuntimePath}/[BuildTarget]'
|
||||||
|
- m_GroupTypePrefix: Editor Hosted
|
||||||
|
m_Variables:
|
||||||
|
- m_Suffix: BuildPath
|
||||||
|
m_Value: ServerData/[BuildTarget]
|
||||||
|
- m_Suffix: LoadPath
|
||||||
|
m_Value: http://[PrivateIpAddress]:[HostingServicePort]
|
||||||
|
environments: []
|
||||||
|
currentEnvironment:
|
||||||
|
id:
|
||||||
|
projectId:
|
||||||
|
projectGenesisId:
|
||||||
|
name:
|
||||||
|
isDefault: 0
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4ecf31fe7c4aa4565ad61fab272f22b8
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,14 +1,35 @@
|
|||||||
using Coffee.UIEffects;
|
using Coffee.UIEffects;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
|
[ExecuteAlways]
|
||||||
public class GradationTest : MonoBehaviour
|
public class GradationTest : MonoBehaviour
|
||||||
{
|
{
|
||||||
[SerializeField] private UIEffect m_Target;
|
[Range(-1, 1)]
|
||||||
|
[SerializeField]
|
||||||
|
protected float m_GradationOffset = 0;
|
||||||
|
|
||||||
[SerializeField] private Gradient m_Gradient;
|
[Range(0.01f, 10)]
|
||||||
|
[SerializeField]
|
||||||
|
protected float m_GradationScale = 1;
|
||||||
|
|
||||||
public void SetGradation()
|
[SerializeField]
|
||||||
|
[Range(0, 360)]
|
||||||
|
private float m_GradationRotation = 0;
|
||||||
|
|
||||||
|
private UIEffect[] _uiEffects;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
{
|
{
|
||||||
m_Target.SetGradientKeys(m_Gradient.colorKeys, m_Gradient.alphaKeys, m_Gradient.mode);
|
_uiEffects = GetComponentsInChildren<UIEffect>(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnValidate()
|
||||||
|
{
|
||||||
|
foreach (var uiEffect in _uiEffects)
|
||||||
|
{
|
||||||
|
uiEffect.gradationOffset = m_GradationOffset;
|
||||||
|
uiEffect.gradationScale = m_GradationScale;
|
||||||
|
uiEffect.gradationRotation = m_GradationRotation;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -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:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 481f0900af5824be89c275390a9fa0b4
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Text;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.AddressableAssets;
|
||||||
|
using UnityEngine.ResourceManagement.AsyncOperations;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
public class HotUpdate : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField]
|
||||||
|
private string m_Address;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private Text m_Log;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private bool m_ExecuteOnStart;
|
||||||
|
|
||||||
|
private readonly StringBuilder _sb = new StringBuilder(1024);
|
||||||
|
|
||||||
|
private Coroutine _co;
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
if (m_ExecuteOnStart)
|
||||||
|
{
|
||||||
|
Execute();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AddLog(string message)
|
||||||
|
{
|
||||||
|
Debug.Log(message);
|
||||||
|
_sb.AppendLine(message);
|
||||||
|
if (m_Log)
|
||||||
|
{
|
||||||
|
m_Log.text = _sb.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Execute()
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(m_Address))
|
||||||
|
{
|
||||||
|
AddLog($"*** Address is empty. Please set the address of the asset to load.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_co != null)
|
||||||
|
{
|
||||||
|
AddLog($"*** Execution is already in progress. Please wait until it completes.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
_co = StartCoroutine(Co_Execute());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void LoadNextScene()
|
||||||
|
{
|
||||||
|
SceneManager.LoadScene(gameObject.scene.buildIndex + 1, LoadSceneMode.Single);
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerator Co_Execute()
|
||||||
|
{
|
||||||
|
AddLog($"########################################");
|
||||||
|
AddLog($"Hot update starting...");
|
||||||
|
AddLog($"########################################");
|
||||||
|
AddLog("");
|
||||||
|
|
||||||
|
AddLog($"Loading '{m_Address}'...");
|
||||||
|
var handle = Addressables.LoadAssetAsync<Object>(m_Address);
|
||||||
|
|
||||||
|
while (handle.IsDone == false)
|
||||||
|
{
|
||||||
|
yield return new WaitForSeconds(0.1f);
|
||||||
|
AddLog($" Progress: {handle.PercentComplete:P}");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (handle.Status == AsyncOperationStatus.Succeeded)
|
||||||
|
{
|
||||||
|
AddLog($" Loaded '{m_Address}' successfully.");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
AddLog($" *** Failed to load '{m_Address}'.");
|
||||||
|
AddLog($" *** {handle.OperationException.Message}");
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
|
||||||
|
AddLog("");
|
||||||
|
AddLog($"Hot-Update complete !");
|
||||||
|
AddLog("");
|
||||||
|
|
||||||
|
AddLog($" -> Load next scene in: 3");
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
AddLog($" -> Load next scene in: 2");
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
AddLog($" -> Load next scene in: 1");
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
|
||||||
|
LoadNextScene();
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 23cc1f211cd264050a641c01c4a6d77a
|
guid: 0fd13d911290d4262ad39fa2c45e030c
|
||||||
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: 7ec916ecedc5e41a1896062381cbd257
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7b8df35684c964c1da889d4128ed94ed
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -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: 7f0dee01a862040a58ac6b6057944cd3
|
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:
|
||||||
@@ -38,7 +38,6 @@ 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.37311924, g: 0.38073963, b: 0.3587269, a: 1}
|
|
||||||
m_UseRadianceAmbientProbe: 0
|
m_UseRadianceAmbientProbe: 0
|
||||||
--- !u!157 &3
|
--- !u!157 &3
|
||||||
LightmapSettings:
|
LightmapSettings:
|
||||||
@@ -253,6 +252,7 @@ MonoBehaviour:
|
|||||||
m_UseTargetTransform: 1
|
m_UseTargetTransform: 1
|
||||||
m_SamplingScale: 1
|
m_SamplingScale: 1
|
||||||
m_AllowToModifyMeshShape: 1
|
m_AllowToModifyMeshShape: 1
|
||||||
|
m_CustomRoot: {fileID: 0}
|
||||||
--- !u!114 &571623417
|
--- !u!114 &571623417
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -395,6 +395,7 @@ Canvas:
|
|||||||
m_OverrideSorting: 0
|
m_OverrideSorting: 0
|
||||||
m_OverridePixelPerfect: 0
|
m_OverridePixelPerfect: 0
|
||||||
m_SortingBucketNormalizedSize: 0
|
m_SortingBucketNormalizedSize: 0
|
||||||
|
m_VertexColorAlwaysGammaSpace: 0
|
||||||
m_AdditionalShaderChannelsFlag: 27
|
m_AdditionalShaderChannelsFlag: 27
|
||||||
m_SortingLayerID: 0
|
m_SortingLayerID: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
@@ -476,7 +477,7 @@ GameObject:
|
|||||||
- component: {fileID: 1120943173}
|
- component: {fileID: 1120943173}
|
||||||
- component: {fileID: 1120943172}
|
- component: {fileID: 1120943172}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: UIEffect (1)
|
m_Name: UIEffect_KeyFeature
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@@ -491,16 +492,16 @@ RectTransform:
|
|||||||
m_GameObject: {fileID: 1120943170}
|
m_GameObject: {fileID: 1120943170}
|
||||||
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: 2, y: 2, z: 2}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 1
|
||||||
m_Children: []
|
m_Children: []
|
||||||
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.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 125, y: -57}
|
m_AnchoredPosition: {x: 0, y: -12.107}
|
||||||
m_SizeDelta: {x: 627.607, y: 970.6}
|
m_SizeDelta: {x: 404, y: 512}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &1120943172
|
--- !u!114 &1120943172
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@@ -515,93 +516,111 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_ToneFilter: 1
|
m_ToneFilter: 1
|
||||||
m_ToneIntensity: 0.875
|
m_ToneIntensity: 0.5
|
||||||
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: 6
|
||||||
m_ColorIntensity: 0.7
|
m_ColorIntensity: 0.5
|
||||||
m_Color: {r: 0.745283, g: 0, b: 0.11693734, a: 1}
|
m_Color: {r: 0.5377358, g: 0, b: 0.09190052, a: 1}
|
||||||
m_ColorGlow: 0
|
m_ColorGlow: 0
|
||||||
m_SamplingFilter: 5
|
m_SamplingFilter: 1
|
||||||
m_SamplingIntensity: 0.197
|
m_SamplingIntensity: 0
|
||||||
m_SamplingWidth: 1
|
m_SamplingWidth: 1
|
||||||
m_SamplingScale: 1
|
m_SamplingScale: 1
|
||||||
m_TransitionFilter: 3
|
m_TransitionFilter: 8
|
||||||
m_TransitionRate: 0.411
|
m_TransitionRate: 0
|
||||||
m_TransitionReverse: 0
|
m_TransitionReverse: 0
|
||||||
m_TransitionTex: {fileID: 2800000, guid: 5a9e7b253d8344331a9ef15185eaa629, type: 3}
|
m_TransitionTex: {fileID: 2800000, guid: 51cf4ae69d327428fbac4ee73e8587fe, 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: 120
|
m_TransitionTexSpeed: {x: 0, y: 0}
|
||||||
|
m_TransitionRotation: 45
|
||||||
m_TransitionKeepAspectRatio: 1
|
m_TransitionKeepAspectRatio: 1
|
||||||
m_TransitionWidth: 0.071
|
m_TransitionWidth: 0.5
|
||||||
m_TransitionSoftness: 0.401
|
m_TransitionSoftness: 0.475
|
||||||
m_TransitionRange:
|
m_TransitionRange:
|
||||||
m_Min: 0
|
m_Min: 0.5
|
||||||
m_Max: 1
|
m_Max: 0.85
|
||||||
m_TransitionColorFilter: 6
|
m_TransitionColorFilter: 1
|
||||||
m_TransitionColor: {r: 0, g: 0.5019608, b: 1.0039216, a: 1}
|
m_TransitionColor: {r: 0, g: 0, b: 0, a: 0.5019608}
|
||||||
m_TransitionColorGlow: 0
|
m_TransitionColorGlow: 0
|
||||||
m_TransitionPatternReverse: 0
|
m_TransitionPatternReverse: 0
|
||||||
m_TransitionAutoPlaySpeed: 0
|
m_TransitionAutoPlaySpeed: 0
|
||||||
m_TargetMode: 0
|
m_TargetMode: 0
|
||||||
m_TargetColor: {r: 0.22352943, g: 0.87843144, b: 0.9450981, a: 1}
|
m_TargetColor: {r: 0.15686275, g: 0.72156864, b: 0.8509804, a: 1}
|
||||||
m_TargetRange: 0.118
|
m_TargetRange: 0.033
|
||||||
m_TargetSoftness: 0.5
|
m_TargetSoftness: 0.5
|
||||||
m_BlendType: 1
|
m_BlendType: 1
|
||||||
m_SrcBlendMode: 1
|
m_SrcBlendMode: 1
|
||||||
m_DstBlendMode: 10
|
m_DstBlendMode: 10
|
||||||
m_ShadowMode: 0
|
m_ShadowMode: 4
|
||||||
m_ShadowDistance: {x: 5, y: -5}
|
m_ShadowDistance: {x: 3, y: -3}
|
||||||
m_ShadowIteration: 4
|
m_ShadowIteration: 2
|
||||||
m_ShadowFade: 0.9
|
m_ShadowFade: 0.1
|
||||||
m_ShadowMirrorScale: 0.5
|
m_ShadowMirrorScale: 0.5
|
||||||
m_ShadowBlurIntensity: 1
|
m_ShadowBlurIntensity: 1
|
||||||
m_ShadowColorFilter: 4
|
m_ShadowColorFilter: 4
|
||||||
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
|
m_ShadowColor: {r: 0, g: 1, b: 1, a: 1}
|
||||||
m_ShadowColorGlow: 0
|
m_ShadowColorGlow: 1
|
||||||
m_GradationMode: 0
|
m_GradationMode: 10
|
||||||
|
m_GradationIntensity: 0.75
|
||||||
|
m_GradationColorFilter: 1
|
||||||
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
|
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_GradationColor2: {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:
|
m_GradationGradient:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
key0: {r: 1, g: 0, b: 0, a: 1}
|
key0: {r: 1, g: 1, b: 1, a: 1}
|
||||||
key1: {r: 1, g: 0.8571428, b: 0, a: 1}
|
key1: {r: 0.2857144, g: 1, b: 0, a: 1}
|
||||||
key2: {r: 0.2857144, g: 1, b: 0, a: 0}
|
key2: {r: 1, g: 1, b: 1, a: 1}
|
||||||
key3: {r: 0, g: 1, b: 0.57142854, a: 0}
|
key3: {r: 0, g: 0.5714288, b: 1, a: 0}
|
||||||
key4: {r: 0, g: 0.5714288, b: 1, a: 0}
|
key4: {r: 1, g: 1, b: 1, a: 0}
|
||||||
key5: {r: 0.28571415, g: 0, b: 1, a: 0}
|
key5: {r: 1, g: 0, b: 0.8571429, a: 0}
|
||||||
key6: {r: 1, g: 0, b: 0.8571429, a: 0}
|
key6: {r: 1, g: 0, b: 0.8571429, a: 0}
|
||||||
key7: {r: 1, g: 0, b: 0, a: 0}
|
key7: {r: 1, g: 0, b: 0, a: 0}
|
||||||
ctime0: 0
|
ctime0: 10879
|
||||||
ctime1: 9830
|
ctime1: 21823
|
||||||
ctime2: 18724
|
ctime2: 32768
|
||||||
ctime3: 28720
|
ctime3: 43646
|
||||||
ctime4: 38165
|
ctime4: 54591
|
||||||
ctime5: 46838
|
ctime5: 65535
|
||||||
ctime6: 56173
|
ctime6: 56173
|
||||||
ctime7: 65535
|
ctime7: 65535
|
||||||
atime0: 0
|
atime0: 0
|
||||||
atime1: 65535
|
atime1: 65535
|
||||||
atime2: 0
|
atime2: 65535
|
||||||
atime3: 0
|
atime3: 0
|
||||||
atime4: 0
|
atime4: 0
|
||||||
atime5: 0
|
atime5: 0
|
||||||
atime6: 0
|
atime6: 0
|
||||||
atime7: 0
|
atime7: 0
|
||||||
m_Mode: 0
|
m_Mode: 1
|
||||||
m_NumColorKeys: 8
|
m_NumColorKeys: 6
|
||||||
m_NumAlphaKeys: 2
|
m_NumAlphaKeys: 2
|
||||||
m_GradationOffset: -0.349
|
m_GradationOffset: 0
|
||||||
m_GradationScale: 0.62374645
|
m_GradationScale: 0.15
|
||||||
m_GradationRotation: 0
|
m_GradationRotation: 135
|
||||||
m_AllowToModifyMeshShape: 1
|
m_AllowToModifyMeshShape: 1
|
||||||
m_EdgeMode: 0
|
m_EdgeMode: 2
|
||||||
m_EdgeWidth: 0.5
|
m_EdgeWidth: 0.05
|
||||||
m_EdgeColorFilter: 4
|
m_EdgeColorFilter: 4
|
||||||
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
m_EdgeColor: {r: 1, g: 0.2688679, b: 0.76984084, a: 1}
|
||||||
|
m_EdgeColorGlow: 0
|
||||||
|
m_EdgeShinyRate: 0.75
|
||||||
m_EdgeShinyWidth: 0.5
|
m_EdgeShinyWidth: 0.5
|
||||||
m_EdgeShinySpeed: 1
|
m_EdgeShinyAutoPlaySpeed: 0
|
||||||
m_PatternArea: 1
|
m_PatternArea: 1
|
||||||
|
m_DetailFilter: 0
|
||||||
|
m_DetailIntensity: 1
|
||||||
|
m_DetailThreshold:
|
||||||
|
m_Min: 0
|
||||||
|
m_Max: 1
|
||||||
|
m_DetailTex: {fileID: 0}
|
||||||
|
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 &1120943173
|
--- !u!114 &1120943173
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -654,7 +673,7 @@ GameObject:
|
|||||||
- component: {fileID: 1242517206}
|
- component: {fileID: 1242517206}
|
||||||
- component: {fileID: 1242517205}
|
- component: {fileID: 1242517205}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: UIEffect
|
m_Name: UIEffect_Inspector
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@@ -671,7 +690,8 @@ RectTransform:
|
|||||||
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_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children:
|
||||||
|
- {fileID: 2125393230}
|
||||||
m_Father: {fileID: 986199155}
|
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}
|
||||||
@@ -718,6 +738,31 @@ MonoBehaviour:
|
|||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
|
m_SeparateReverseCurve: 0
|
||||||
|
m_ReverseCurve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 1
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 1
|
||||||
|
value: 1
|
||||||
|
inSlope: 1
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
m_Delay: 0.5
|
m_Delay: 0.5
|
||||||
m_Duration: 1
|
m_Duration: 1
|
||||||
m_Interval: 0.5
|
m_Interval: 0.5
|
||||||
@@ -728,6 +773,9 @@ MonoBehaviour:
|
|||||||
m_OnComplete:
|
m_OnComplete:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
|
m_OnChangedRate:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
--- !u!114 &1242517206
|
--- !u!114 &1242517206
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -748,7 +796,7 @@ MonoBehaviour:
|
|||||||
m_Color: {r: 1, g: 0.08701122, b: 0, a: 1}
|
m_Color: {r: 1, g: 0.08701122, b: 0, a: 1}
|
||||||
m_ColorGlow: 0
|
m_ColorGlow: 0
|
||||||
m_SamplingFilter: 1
|
m_SamplingFilter: 1
|
||||||
m_SamplingIntensity: 1
|
m_SamplingIntensity: 0.7
|
||||||
m_SamplingWidth: 1
|
m_SamplingWidth: 1
|
||||||
m_SamplingScale: 1
|
m_SamplingScale: 1
|
||||||
m_TransitionFilter: 3
|
m_TransitionFilter: 3
|
||||||
@@ -757,6 +805,7 @@ MonoBehaviour:
|
|||||||
m_TransitionTex: {fileID: 2800000, guid: 5a9e7b253d8344331a9ef15185eaa629, type: 3}
|
m_TransitionTex: {fileID: 2800000, guid: 5a9e7b253d8344331a9ef15185eaa629, 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_TransitionTexSpeed: {x: 0, y: 0}
|
||||||
m_TransitionRotation: 120
|
m_TransitionRotation: 120
|
||||||
m_TransitionKeepAspectRatio: 1
|
m_TransitionKeepAspectRatio: 1
|
||||||
m_TransitionWidth: 0.074
|
m_TransitionWidth: 0.074
|
||||||
@@ -773,7 +822,7 @@ MonoBehaviour:
|
|||||||
m_TargetColor: {r: 0.22352943, g: 0.87843144, b: 0.9450981, a: 1}
|
m_TargetColor: {r: 0.22352943, g: 0.87843144, b: 0.9450981, a: 1}
|
||||||
m_TargetRange: 0.118
|
m_TargetRange: 0.118
|
||||||
m_TargetSoftness: 0.5
|
m_TargetSoftness: 0.5
|
||||||
m_BlendType: 1
|
m_BlendType: 0
|
||||||
m_SrcBlendMode: 1
|
m_SrcBlendMode: 1
|
||||||
m_DstBlendMode: 10
|
m_DstBlendMode: 10
|
||||||
m_ShadowMode: 4
|
m_ShadowMode: 4
|
||||||
@@ -783,11 +832,15 @@ MonoBehaviour:
|
|||||||
m_ShadowMirrorScale: 0.5
|
m_ShadowMirrorScale: 0.5
|
||||||
m_ShadowBlurIntensity: 1
|
m_ShadowBlurIntensity: 1
|
||||||
m_ShadowColorFilter: 4
|
m_ShadowColorFilter: 4
|
||||||
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
|
m_ShadowColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
m_ShadowColorGlow: 0
|
m_ShadowColorGlow: 0
|
||||||
m_GradationMode: 2
|
m_GradationMode: 10
|
||||||
|
m_GradationIntensity: 1
|
||||||
|
m_GradationColorFilter: 1
|
||||||
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
|
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_GradationColor2: {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:
|
m_GradationGradient:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
key0: {r: 1, g: 0, b: 0, a: 1}
|
key0: {r: 1, g: 0, b: 0, a: 1}
|
||||||
@@ -817,17 +870,30 @@ MonoBehaviour:
|
|||||||
m_Mode: 0
|
m_Mode: 0
|
||||||
m_NumColorKeys: 8
|
m_NumColorKeys: 8
|
||||||
m_NumAlphaKeys: 2
|
m_NumAlphaKeys: 2
|
||||||
m_GradationOffset: -0.349
|
m_GradationOffset: 0
|
||||||
m_GradationScale: 0.62374645
|
m_GradationScale: 1
|
||||||
m_GradationRotation: 0
|
m_GradationRotation: 60
|
||||||
m_AllowToModifyMeshShape: 1
|
m_AllowToModifyMeshShape: 1
|
||||||
m_EdgeMode: 2
|
m_EdgeMode: 2
|
||||||
m_EdgeWidth: 0.5
|
m_EdgeWidth: 0.5
|
||||||
m_EdgeColorFilter: 6
|
m_EdgeColorFilter: 6
|
||||||
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_EdgeColorGlow: 0
|
||||||
|
m_EdgeShinyRate: 0.5
|
||||||
m_EdgeShinyWidth: 0.5
|
m_EdgeShinyWidth: 0.5
|
||||||
m_EdgeShinySpeed: 1
|
m_EdgeShinyAutoPlaySpeed: 1
|
||||||
m_PatternArea: 1
|
m_PatternArea: 1
|
||||||
|
m_DetailFilter: 1
|
||||||
|
m_DetailIntensity: 1
|
||||||
|
m_DetailThreshold:
|
||||||
|
m_Min: 0.25
|
||||||
|
m_Max: 0.5
|
||||||
|
m_DetailTex: {fileID: 2800000, guid: dee1cb6c2ee294c6087ea9d89d368417, type: 3}
|
||||||
|
m_DetailTexScale: {x: 1, y: 1}
|
||||||
|
m_DetailTexOffset: {x: 0, y: 0}
|
||||||
|
m_DetailTexSpeed: {x: 0, y: 0}
|
||||||
|
m_CustomRoot: {fileID: 2125393230}
|
||||||
|
m_Flip: 1
|
||||||
--- !u!114 &1242517207
|
--- !u!114 &1242517207
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -935,6 +1001,7 @@ MonoBehaviour:
|
|||||||
m_TransitionTex: {fileID: 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_TransitionTexSpeed: {x: 0, y: 0}
|
||||||
m_TransitionRotation: 0
|
m_TransitionRotation: 0
|
||||||
m_TransitionKeepAspectRatio: 1
|
m_TransitionKeepAspectRatio: 1
|
||||||
m_TransitionWidth: 0.2
|
m_TransitionWidth: 0.2
|
||||||
@@ -964,8 +1031,12 @@ MonoBehaviour:
|
|||||||
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
|
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_ShadowColorGlow: 0
|
m_ShadowColorGlow: 0
|
||||||
m_GradationMode: 0
|
m_GradationMode: 0
|
||||||
|
m_GradationIntensity: 1
|
||||||
|
m_GradationColorFilter: 1
|
||||||
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
|
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_GradationColor2: {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:
|
m_GradationGradient:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
key0: {r: 1, g: 1, b: 1, a: 1}
|
key0: {r: 1, g: 1, b: 1, a: 1}
|
||||||
@@ -1003,9 +1074,22 @@ MonoBehaviour:
|
|||||||
m_EdgeWidth: 0.5
|
m_EdgeWidth: 0.5
|
||||||
m_EdgeColorFilter: 4
|
m_EdgeColorFilter: 4
|
||||||
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_EdgeColorGlow: 0
|
||||||
|
m_EdgeShinyRate: 0.5
|
||||||
m_EdgeShinyWidth: 0.5
|
m_EdgeShinyWidth: 0.5
|
||||||
m_EdgeShinySpeed: 1
|
m_EdgeShinyAutoPlaySpeed: 1
|
||||||
m_PatternArea: 1
|
m_PatternArea: 1
|
||||||
|
m_DetailFilter: 0
|
||||||
|
m_DetailIntensity: 1
|
||||||
|
m_DetailThreshold:
|
||||||
|
m_Min: 0
|
||||||
|
m_Max: 1
|
||||||
|
m_DetailTex: {fileID: 0}
|
||||||
|
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 &1567169364
|
--- !u!114 &1567169364
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1082,6 +1166,31 @@ MonoBehaviour:
|
|||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
|
m_SeparateReverseCurve: 0
|
||||||
|
m_ReverseCurve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 1
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 1
|
||||||
|
value: 1
|
||||||
|
inSlope: 1
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
m_Delay: 0.5
|
m_Delay: 0.5
|
||||||
m_Duration: 1
|
m_Duration: 1
|
||||||
m_Interval: 0.5
|
m_Interval: 0.5
|
||||||
@@ -1092,3 +1201,42 @@ MonoBehaviour:
|
|||||||
m_OnComplete:
|
m_OnComplete:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
|
m_OnChangedRate:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
--- !u!1 &2125393229
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2125393230}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Root
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &2125393230
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2125393229}
|
||||||
|
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: 1242517204}
|
||||||
|
m_RootOrder: 0
|
||||||
|
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}
|
||||||
|
|||||||
+10651
-17438
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,286 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!28 &-6111546302731763495
|
||||||
|
Texture2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: NotoSansJP-Regular Atlas
|
||||||
|
m_ImageContentsHash:
|
||||||
|
serializedVersion: 2
|
||||||
|
Hash: 00000000000000000000000000000000
|
||||||
|
m_ForcedFallbackFormat: 4
|
||||||
|
m_DownscaleFallback: 0
|
||||||
|
m_IsAlphaChannelOptional: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Width: 0
|
||||||
|
m_Height: 0
|
||||||
|
m_CompleteImageSize: 0
|
||||||
|
m_MipsStripped: 0
|
||||||
|
m_TextureFormat: 1
|
||||||
|
m_MipCount: 1
|
||||||
|
m_IsReadable: 1
|
||||||
|
m_IsPreProcessed: 0
|
||||||
|
m_IgnoreMasterTextureLimit: 0
|
||||||
|
m_StreamingMipmaps: 0
|
||||||
|
m_StreamingMipmapsPriority: 0
|
||||||
|
m_VTOnly: 0
|
||||||
|
m_AlphaIsTransparency: 0
|
||||||
|
m_ImageCount: 1
|
||||||
|
m_TextureDimension: 2
|
||||||
|
m_TextureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_FilterMode: 1
|
||||||
|
m_Aniso: 1
|
||||||
|
m_MipBias: 0
|
||||||
|
m_WrapU: 0
|
||||||
|
m_WrapV: 0
|
||||||
|
m_WrapW: 0
|
||||||
|
m_LightmapFormat: 0
|
||||||
|
m_ColorSpace: 0
|
||||||
|
m_PlatformBlob:
|
||||||
|
image data: 0
|
||||||
|
_typelessdata:
|
||||||
|
m_StreamData:
|
||||||
|
serializedVersion: 2
|
||||||
|
offset: 0
|
||||||
|
size: 0
|
||||||
|
path:
|
||||||
|
--- !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: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
|
||||||
|
m_Name: NotoSansJP-Regular SDF - Dynamic
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
hashCode: -1410962959
|
||||||
|
material: {fileID: 444162133241932390}
|
||||||
|
materialHashCode: -1336267599
|
||||||
|
m_Version: 1.1.0
|
||||||
|
m_SourceFontFileGUID: 3b86b3f5141924393b3a212d6a5ec9e0
|
||||||
|
m_SourceFontFile_EditorRef: {fileID: 12800000, guid: 3b86b3f5141924393b3a212d6a5ec9e0,
|
||||||
|
type: 3}
|
||||||
|
m_SourceFontFile: {fileID: 12800000, guid: 3b86b3f5141924393b3a212d6a5ec9e0, type: 3}
|
||||||
|
m_AtlasPopulationMode: 1
|
||||||
|
m_FaceInfo:
|
||||||
|
m_FaceIndex: 0
|
||||||
|
m_FamilyName: Noto Sans JP
|
||||||
|
m_StyleName: Regular
|
||||||
|
m_PointSize: 24
|
||||||
|
m_Scale: 1
|
||||||
|
m_LineHeight: 34.752
|
||||||
|
m_AscentLine: 27.839998
|
||||||
|
m_CapLine: 18
|
||||||
|
m_MeanLine: 14
|
||||||
|
m_Baseline: 0
|
||||||
|
m_DescentLine: -6.9119997
|
||||||
|
m_SuperscriptOffset: 27.839998
|
||||||
|
m_SuperscriptSize: 0.5
|
||||||
|
m_SubscriptOffset: -6.9119997
|
||||||
|
m_SubscriptSize: 0.5
|
||||||
|
m_UnderlineOffset: -3.6
|
||||||
|
m_UnderlineThickness: 1.1999999
|
||||||
|
m_StrikethroughOffset: 5.6
|
||||||
|
m_StrikethroughThickness: 1.1999999
|
||||||
|
m_TabWidth: 5
|
||||||
|
m_GlyphTable: []
|
||||||
|
m_CharacterTable: []
|
||||||
|
m_AtlasTextures:
|
||||||
|
- {fileID: -6111546302731763495}
|
||||||
|
m_AtlasTextureIndex: 0
|
||||||
|
m_IsMultiAtlasTexturesEnabled: 0
|
||||||
|
m_ClearDynamicDataOnBuild: 1
|
||||||
|
m_UsedGlyphRects: []
|
||||||
|
m_FreeGlyphRects:
|
||||||
|
- m_X: 0
|
||||||
|
m_Y: 0
|
||||||
|
m_Width: 1023
|
||||||
|
m_Height: 1023
|
||||||
|
m_fontInfo:
|
||||||
|
Name:
|
||||||
|
PointSize: 0
|
||||||
|
Scale: 0
|
||||||
|
CharacterCount: 0
|
||||||
|
LineHeight: 0
|
||||||
|
Baseline: 0
|
||||||
|
Ascender: 0
|
||||||
|
CapHeight: 0
|
||||||
|
Descender: 0
|
||||||
|
CenterLine: 0
|
||||||
|
SuperscriptOffset: 0
|
||||||
|
SubscriptOffset: 0
|
||||||
|
SubSize: 0
|
||||||
|
Underline: 0
|
||||||
|
UnderlineThickness: 0
|
||||||
|
strikethrough: 0
|
||||||
|
strikethroughThickness: 0
|
||||||
|
TabWidth: 0
|
||||||
|
Padding: 0
|
||||||
|
AtlasWidth: 0
|
||||||
|
AtlasHeight: 0
|
||||||
|
atlas: {fileID: 0}
|
||||||
|
m_AtlasWidth: 1024
|
||||||
|
m_AtlasHeight: 1024
|
||||||
|
m_AtlasPadding: 9
|
||||||
|
m_AtlasRenderMode: 4165
|
||||||
|
m_glyphInfoList: []
|
||||||
|
m_KerningTable:
|
||||||
|
kerningPairs: []
|
||||||
|
m_FontFeatureTable:
|
||||||
|
m_GlyphPairAdjustmentRecords: []
|
||||||
|
fallbackFontAssets: []
|
||||||
|
m_FallbackFontAssetTable: []
|
||||||
|
m_CreationSettings:
|
||||||
|
sourceFontFileName:
|
||||||
|
sourceFontFileGUID: 3b86b3f5141924393b3a212d6a5ec9e0
|
||||||
|
pointSizeSamplingMode: 0
|
||||||
|
pointSize: 24
|
||||||
|
padding: 9
|
||||||
|
packingMode: 0
|
||||||
|
atlasWidth: 1024
|
||||||
|
atlasHeight: 1024
|
||||||
|
characterSetSelectionMode: 7
|
||||||
|
characterSequence:
|
||||||
|
referencedFontAssetGUID:
|
||||||
|
referencedTextAssetGUID:
|
||||||
|
fontStyle: 0
|
||||||
|
fontStyleModifier: 0
|
||||||
|
renderMode: 4165
|
||||||
|
includeFontFeatures: 0
|
||||||
|
m_FontWeightTable:
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
- regularTypeface: {fileID: 0}
|
||||||
|
italicTypeface: {fileID: 0}
|
||||||
|
fontWeights: []
|
||||||
|
normalStyle: 0
|
||||||
|
normalSpacingOffset: 0
|
||||||
|
boldStyle: 0.75
|
||||||
|
boldSpacing: 7
|
||||||
|
italicStyle: 35
|
||||||
|
tabSize: 10
|
||||||
|
--- !u!21 &444162133241932390
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: NotoSansJP-Regular Atlas Material
|
||||||
|
m_Shader: {fileID: 4800000, guid: 68e6db2ebdc24f95958faec2be5558d6, type: 3}
|
||||||
|
m_ShaderKeywords:
|
||||||
|
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: -6111546302731763495}
|
||||||
|
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_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: 1
|
||||||
|
- _ScaleRatioB: 1
|
||||||
|
- _ScaleRatioC: 1
|
||||||
|
- _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: 4c1191089341846fcb754b6aab3dd435
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 52ffdb2a86f414090abb93192f599f6f
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
@@ -0,0 +1,21 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3b86b3f5141924393b3a212d6a5ec9e0
|
||||||
|
TrueTypeFontImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 4
|
||||||
|
fontSize: 16
|
||||||
|
forceTextureCase: -2
|
||||||
|
characterSpacing: 0
|
||||||
|
characterPadding: 1
|
||||||
|
includeFontData: 1
|
||||||
|
fontNames:
|
||||||
|
- Noto Sans JP
|
||||||
|
fallbackFontReferences: []
|
||||||
|
customCharacters:
|
||||||
|
fontRenderingMode: 0
|
||||||
|
ascentCalculationMode: 1
|
||||||
|
useLegacyBoundsCalculation: 0
|
||||||
|
shouldRoundAdvanceValue: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -9,7 +9,7 @@ using Debug = UnityEngine.Debug;
|
|||||||
|
|
||||||
internal static class TextMeshProSupport
|
internal static class TextMeshProSupport
|
||||||
{
|
{
|
||||||
private const string k_Version = "userData: v5.6.0";
|
private const string k_Version = "userData: v5.8.0";
|
||||||
private const string k_VersionUnity6 = k_Version + " (Unity 6)";
|
private const string k_VersionUnity6 = k_Version + " (Unity 6)";
|
||||||
|
|
||||||
private static readonly Dictionary<string, string> s_FileGuids = new Dictionary<string, string>()
|
private static readonly Dictionary<string, string> s_FileGuids = new Dictionary<string, string>()
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 064c6ea9a4d6f4cc1938d0878e91e3d6
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -103,7 +103,7 @@ NavMeshSettings:
|
|||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_BuildSettings:
|
m_BuildSettings:
|
||||||
serializedVersion: 3
|
serializedVersion: 2
|
||||||
agentTypeID: 0
|
agentTypeID: 0
|
||||||
agentRadius: 0.5
|
agentRadius: 0.5
|
||||||
agentHeight: 2
|
agentHeight: 2
|
||||||
@@ -116,7 +116,7 @@ NavMeshSettings:
|
|||||||
cellSize: 0.16666667
|
cellSize: 0.16666667
|
||||||
manualTileSize: 0
|
manualTileSize: 0
|
||||||
tileSize: 256
|
tileSize: 256
|
||||||
buildHeightMesh: 0
|
accuratePlacement: 0
|
||||||
maxJobWorkers: 0
|
maxJobWorkers: 0
|
||||||
preserveTilesOutsideBounds: 0
|
preserveTilesOutsideBounds: 0
|
||||||
debug:
|
debug:
|
||||||
@@ -154,6 +154,7 @@ RectTransform:
|
|||||||
m_ConstrainProportionsScale: 1
|
m_ConstrainProportionsScale: 1
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1238718230}
|
m_Father: {fileID: 1238718230}
|
||||||
|
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.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
@@ -272,13 +273,13 @@ Transform:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 216727156}
|
m_GameObject: {fileID: 216727156}
|
||||||
serializedVersion: 2
|
|
||||||
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_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 1
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &853562893
|
--- !u!1 &853562893
|
||||||
GameObject:
|
GameObject:
|
||||||
@@ -358,7 +359,6 @@ Canvas:
|
|||||||
m_SortingBucketNormalizedSize: 0
|
m_SortingBucketNormalizedSize: 0
|
||||||
m_VertexColorAlwaysGammaSpace: 0
|
m_VertexColorAlwaysGammaSpace: 0
|
||||||
m_AdditionalShaderChannelsFlag: 27
|
m_AdditionalShaderChannelsFlag: 27
|
||||||
m_UpdateRectTransformForStandalone: 0
|
|
||||||
m_SortingLayerID: 0
|
m_SortingLayerID: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
m_TargetDisplay: 0
|
m_TargetDisplay: 0
|
||||||
@@ -376,6 +376,7 @@ RectTransform:
|
|||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 974292077}
|
- {fileID: 974292077}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
@@ -415,6 +416,7 @@ RectTransform:
|
|||||||
m_ConstrainProportionsScale: 1
|
m_ConstrainProportionsScale: 1
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1439618203}
|
m_Father: {fileID: 1439618203}
|
||||||
|
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}
|
||||||
@@ -480,6 +482,8 @@ MonoBehaviour:
|
|||||||
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
|
m_ShadowColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_ShadowColorGlow: 0
|
m_ShadowColorGlow: 0
|
||||||
m_GradationMode: 0
|
m_GradationMode: 0
|
||||||
|
m_GradationIntensity: 1
|
||||||
|
m_GradationColorFilter: 1
|
||||||
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
|
m_GradationColor1: {r: 1, g: 1, b: 1, a: 1}
|
||||||
m_GradationColor2: {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_GradationColor3: {r: 1, g: 1, b: 1, a: 1}
|
||||||
@@ -511,7 +515,6 @@ MonoBehaviour:
|
|||||||
atime6: 0
|
atime6: 0
|
||||||
atime7: 0
|
atime7: 0
|
||||||
m_Mode: 0
|
m_Mode: 0
|
||||||
m_ColorSpace: -1
|
|
||||||
m_NumColorKeys: 2
|
m_NumColorKeys: 2
|
||||||
m_NumAlphaKeys: 2
|
m_NumAlphaKeys: 2
|
||||||
m_GradationOffset: 0
|
m_GradationOffset: 0
|
||||||
@@ -522,11 +525,22 @@ MonoBehaviour:
|
|||||||
m_EdgeWidth: 0.5
|
m_EdgeWidth: 0.5
|
||||||
m_EdgeColorFilter: 4
|
m_EdgeColorFilter: 4
|
||||||
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
m_EdgeColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_EdgeColorGlow: 0
|
||||||
m_EdgeShinyRate: 0.5
|
m_EdgeShinyRate: 0.5
|
||||||
m_EdgeShinyWidth: 0.5
|
m_EdgeShinyWidth: 0.5
|
||||||
m_EdgeShinyAutoPlaySpeed: 1
|
m_EdgeShinyAutoPlaySpeed: 1
|
||||||
m_PatternArea: 1
|
m_PatternArea: 1
|
||||||
|
m_DetailFilter: 0
|
||||||
|
m_DetailIntensity: 1
|
||||||
|
m_DetailThreshold:
|
||||||
|
m_Min: 0
|
||||||
|
m_Max: 1
|
||||||
|
m_DetailTex: {fileID: 0}
|
||||||
|
m_DetailTexScale: {x: 1, y: 1}
|
||||||
|
m_DetailTexOffset: {x: 0, y: 0}
|
||||||
|
m_DetailTexSpeed: {x: 0, y: 0}
|
||||||
m_CustomRoot: {fileID: 0}
|
m_CustomRoot: {fileID: 0}
|
||||||
|
m_Flip: 0
|
||||||
--- !u!114 &899451495
|
--- !u!114 &899451495
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -672,6 +686,7 @@ RectTransform:
|
|||||||
- {fileID: 1439618203}
|
- {fileID: 1439618203}
|
||||||
- {fileID: 1238718230}
|
- {fileID: 1238718230}
|
||||||
m_Father: {fileID: 853562897}
|
m_Father: {fileID: 853562897}
|
||||||
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
@@ -750,6 +765,7 @@ RectTransform:
|
|||||||
m_ConstrainProportionsScale: 1
|
m_ConstrainProportionsScale: 1
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1238718230}
|
m_Father: {fileID: 1238718230}
|
||||||
|
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}
|
||||||
@@ -899,6 +915,7 @@ RectTransform:
|
|||||||
- {fileID: 171138033}
|
- {fileID: 171138033}
|
||||||
- {fileID: 1039816999}
|
- {fileID: 1039816999}
|
||||||
m_Father: {fileID: 974292077}
|
m_Father: {fileID: 974292077}
|
||||||
|
m_RootOrder: 1
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
@@ -945,17 +962,9 @@ Camera:
|
|||||||
m_projectionMatrixMode: 1
|
m_projectionMatrixMode: 1
|
||||||
m_GateFitMode: 2
|
m_GateFitMode: 2
|
||||||
m_FOVAxisMode: 0
|
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_SensorSize: {x: 36, y: 24}
|
||||||
m_LensShift: {x: 0, y: 0}
|
m_LensShift: {x: 0, y: 0}
|
||||||
|
m_FocalLength: 50
|
||||||
m_NormalizedViewPortRect:
|
m_NormalizedViewPortRect:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
x: 0
|
x: 0
|
||||||
@@ -989,13 +998,13 @@ Transform:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1419796999}
|
m_GameObject: {fileID: 1419796999}
|
||||||
serializedVersion: 2
|
|
||||||
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_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &1439618202
|
--- !u!1 &1439618202
|
||||||
GameObject:
|
GameObject:
|
||||||
@@ -1028,6 +1037,7 @@ RectTransform:
|
|||||||
- {fileID: 1624967587}
|
- {fileID: 1624967587}
|
||||||
- {fileID: 899451493}
|
- {fileID: 899451493}
|
||||||
m_Father: {fileID: 974292077}
|
m_Father: {fileID: 974292077}
|
||||||
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
@@ -1045,7 +1055,7 @@ GameObject:
|
|||||||
- component: {fileID: 1624967587}
|
- component: {fileID: 1624967587}
|
||||||
- component: {fileID: 1624967590}
|
- component: {fileID: 1624967590}
|
||||||
- component: {fileID: 1624967589}
|
- component: {fileID: 1624967589}
|
||||||
- component: {fileID: 1624967588}
|
- component: {fileID: 1624967592}
|
||||||
- component: {fileID: 1624967591}
|
- component: {fileID: 1624967591}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Unity-Chan
|
m_Name: Unity-Chan
|
||||||
@@ -1067,118 +1077,13 @@ RectTransform:
|
|||||||
m_ConstrainProportionsScale: 1
|
m_ConstrainProportionsScale: 1
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1439618203}
|
m_Father: {fileID: 1439618203}
|
||||||
|
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.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: -72, y: 0}
|
m_AnchoredPosition: {x: -72, y: 0}
|
||||||
m_SizeDelta: {x: 100, y: 100}
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &1624967588
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1624967586}
|
|
||||||
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: 3
|
|
||||||
m_TransitionRate: 0.5
|
|
||||||
m_TransitionReverse: 0
|
|
||||||
m_TransitionTex: {fileID: 2800000, guid: b438fd66429e341d690c1ad9fba13fae, type: 3}
|
|
||||||
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.5
|
|
||||||
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: 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_EdgeShinyRate: 0.5
|
|
||||||
m_EdgeShinyWidth: 0.5
|
|
||||||
m_EdgeShinyAutoPlaySpeed: 1
|
|
||||||
m_PatternArea: 1
|
|
||||||
m_CustomRoot: {fileID: 0}
|
|
||||||
--- !u!114 &1624967589
|
--- !u!114 &1624967589
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1231,10 +1136,30 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Horizontal: 1
|
m_Horizontal: 1
|
||||||
m_Vertical: 1
|
m_Vertical: 1
|
||||||
--- !u!1660057539 &9223372036854775807
|
--- !u!114 &1624967592
|
||||||
SceneRoots:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_Roots:
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
- {fileID: 1419797002}
|
m_PrefabInstance: {fileID: 0}
|
||||||
- {fileID: 216727159}
|
m_PrefabAsset: {fileID: 0}
|
||||||
- {fileID: 853562897}
|
m_GameObject: {fileID: 1624967586}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f19b7e2285c104f6ca47d583f3e5444f, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_EffectFactor: 0.5
|
||||||
|
m_Width: 0.125
|
||||||
|
m_Rotation: 135
|
||||||
|
m_Softness: 1
|
||||||
|
m_Brightness: 0.5
|
||||||
|
m_Gloss: 1
|
||||||
|
m_EffectArea: 0
|
||||||
|
m_Player:
|
||||||
|
play: 0
|
||||||
|
initialPlayDelay: 0
|
||||||
|
duration: 1
|
||||||
|
loop: 0
|
||||||
|
loopDelay: 0
|
||||||
|
updateMode: 0
|
||||||
|
m_TransitionTexture: {fileID: 2800000, guid: 297e4244884ca46788412fdf92bbdb8b, type: 3}
|
||||||
|
|||||||
@@ -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:
|
||||||
@@ -8,32 +8,16 @@ ShaderVariantCollection:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: UIEffectShaderVariants
|
m_Name: UIEffectShaderVariants
|
||||||
m_Shaders:
|
m_Shaders:
|
||||||
- first: {fileID: 4800000, guid: d1cb940e3804b4adcaf9b22083fadfad, type: 3}
|
|
||||||
second:
|
|
||||||
variants:
|
|
||||||
- keywords: SAMPLING_RGB_SHIFT TONE_RETRO TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
|
||||||
TRANSITION_SHINY
|
|
||||||
passType: 0
|
|
||||||
- first: {fileID: 4800000, guid: 63a1dba10bff94661a909d63808a9a3b, type: 3}
|
|
||||||
second:
|
|
||||||
variants:
|
|
||||||
- keywords: SAMPLING_RGB_SHIFT TONE_RETRO TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
|
||||||
TRANSITION_SHINY
|
|
||||||
passType: 0
|
|
||||||
- first: {fileID: 4800000, guid: e65241fa80a374114b3f55ed746c04d9, type: 3}
|
|
||||||
second:
|
|
||||||
variants:
|
|
||||||
- keywords: SAMPLING_RGB_SHIFT TONE_RETRO TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
|
||||||
TRANSITION_SHINY
|
|
||||||
passType: 0
|
|
||||||
- first: {fileID: 4800000, guid: 935b7be1c88464d2eb87204fdfab5a38, type: 3}
|
- first: {fileID: 4800000, guid: 935b7be1c88464d2eb87204fdfab5a38, type: 3}
|
||||||
second:
|
second:
|
||||||
variants:
|
variants:
|
||||||
- keywords: COLOR_HSV_MODIFIER GLOW_ON UNDERLAY_ON
|
- keywords: COLOR_FILTER GLOW_ON GRADATION_GRADIENT UNDERLAY_ON
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_MULTIPLY GLOW_ON UNDERLAY_ON
|
- keywords: COLOR_FILTER GLOW_ON TRANSITION_BURN UNDERLAY_ON
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: EDGE_COLOR_REPLACE EDGE_PLAIN GLOW_ON UNDERLAY_ON
|
- keywords: COLOR_FILTER GLOW_ON UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: EDGE_PLAIN GLOW_ON UNDERLAY_ON
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON SAMPLING_BLUR_DETAIL UNDERLAY_ON
|
- keywords: GLOW_ON SAMPLING_BLUR_DETAIL UNDERLAY_ON
|
||||||
passType: 0
|
passType: 0
|
||||||
@@ -45,64 +29,84 @@ ShaderVariantCollection:
|
|||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON SAMPLING_RGB_SHIFT UNDERLAY_ON
|
- keywords: GLOW_ON SAMPLING_RGB_SHIFT UNDERLAY_ON
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON SHADOW_COLOR_REPLACE TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
- keywords: GLOW_ON TONE_RETRO UNDERLAY_ON
|
||||||
UNDERLAY_ON
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON SHADOW_COLOR_REPLACE UNDERLAY_ON
|
- 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
|
passType: 0
|
||||||
- keywords: GLOW_ON TONE_RETRO UNDERLAY_ON
|
- keywords: GLOW_ON TONE_RETRO UNDERLAY_ON
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON TRANSITION_BURN TRANSITION_COLOR_MULTIPLY_ADDITIVE UNDERLAY_ON
|
- keywords: COLOR_FILTER GLOW_ON UNDERLAY_ON
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_MULTIPLY TRANSITION_PATTERN UNDERLAY_ON
|
- keywords: GLOW_ON SAMPLING_BLUR_DETAIL UNDERLAY_ON
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE
|
- keywords: GLOW_ON SAMPLING_PIXELATION UNDERLAY_ON
|
||||||
UNDERLAY_ON
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_MELT UNDERLAY_ON
|
- keywords: SAMPLING_PIXELATION TONE_RETRO
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_PATTERN UNDERLAY_ON
|
- keywords: GLOW_ON SAMPLING_RGB_SHIFT UNDERLAY_ON
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_SHINY UNDERLAY_ON
|
- keywords: GLOW_ON SAMPLING_EDGE_LUMINANCE UNDERLAY_ON
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: GLOW_ON TRANSITION_COLOR_REPLACE TRANSITION_MELT UNDERLAY_ON
|
- keywords: TRANSITION_DISSOLVE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_RGB_SHIFT TONE_RETRO TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
- keywords: GLOW_ON TRANSITION_DISSOLVE UNDERLAY_ON
|
||||||
TRANSITION_SHINY
|
passType: 0
|
||||||
|
- keywords: TRANSITION_SHINY
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON TRANSITION_SHINY UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_MELT
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON TRANSITION_MELT UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_BURN
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON TRANSITION_BURN UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER GLOW_ON TRANSITION_BURN UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_PATTERN
|
||||||
|
passType: 0
|
||||||
|
- keywords: GLOW_ON TRANSITION_PATTERN UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: EDGE_PLAIN GLOW_ON UNDERLAY_ON
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER GLOW_ON GRADATION_GRADIENT UNDERLAY_ON
|
||||||
passType: 0
|
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_CONTRAST
|
- keywords: COLOR_FILTER EDGE_PLAIN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_HSV_MODIFIER
|
- keywords: COLOR_FILTER EDGE_PLAIN TRANSITION_PATTERN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_HSV_MODIFIER TARGET_HUE
|
- keywords: COLOR_FILTER EDGE_SHINY
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_HSV_MODIFIER TARGET_LUMINANCE
|
- keywords: COLOR_FILTER SAMPLING_BLUR_FAST
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_MULTIPLY
|
- keywords: COLOR_FILTER SAMPLING_BLUR_FAST TONE_GRAYSCALE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_MULTIPLY DETAIL_MASKING EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_SHINY
|
- keywords: COLOR_FILTER SAMPLING_BLUR_FAST TONE_GRAYSCALE TRANSITION_DISSOLVE
|
||||||
SAMPLING_BLUR_FAST SHADOW_COLOR_REPLACE TARGET_HUE TONE_GRAYSCALE TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
|
||||||
TRANSITION_DISSOLVE
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: COLOR_MULTIPLY SHADOW_COLOR_REPLACE
|
- 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
|
|
||||||
- keywords: COLOR_MULTIPLY_LUMINANCE
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_REPLACE
|
|
||||||
passType: 0
|
|
||||||
- keywords: COLOR_SUBTRACTIVE
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: DETAIL_ADDITIVE
|
- keywords: DETAIL_ADDITIVE
|
||||||
passType: 0
|
passType: 0
|
||||||
@@ -110,47 +114,43 @@ ShaderVariantCollection:
|
|||||||
passType: 0
|
passType: 0
|
||||||
- keywords: DETAIL_MULTIPLY
|
- keywords: DETAIL_MULTIPLY
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: DETAIL_MULTIPLY EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_SHINY
|
- keywords: DETAIL_MULTIPLY GRADATION_GRADIENT
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: DETAIL_MULTIPLY_ADDITIVE
|
- keywords: DETAIL_MULTIPLY_ADDITIVE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: DETAIL_REPLACE
|
- keywords: DETAIL_REPLACE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_PLAIN
|
- keywords: DETAIL_SUBTRACTIVE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_PLAIN SHADOW_COLOR_MULTIPLY_ADDITIVE
|
- keywords: EDGE_PLAIN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_SHINY
|
- keywords: EDGE_PLAIN TRANSITION_PATTERN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_SHINY SAMPLING_EDGE_ALPHA
|
- keywords: EDGE_SHINY
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_SHINY SHADOW_COLOR_MULTIPLY_ADDITIVE
|
- keywords: EDGE_SHINY SAMPLING_EDGE_ALPHA
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_SHINY TRANSITION_COLOR_MULTIPLY
|
- keywords: EDGE_SHINY TRANSITION_PATTERN
|
||||||
TRANSITION_PATTERN
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: EDGE_COLOR_MULTIPLY_ADDITIVE EDGE_SHINY TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
- keywords: GRADATION_COLOR2
|
||||||
TRANSITION_PATTERN
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: EDGE_PLAIN SHADOW_COLOR_REPLACE TRANSITION_COLOR_MULTIPLY TRANSITION_PATTERN
|
- keywords: GRADATION_COLOR4
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: EDGE_PLAIN TRANSITION_COLOR_MULTIPLY TRANSITION_PATTERN
|
- keywords: GRADATION_GRADIENT
|
||||||
|
passType: 0
|
||||||
|
- keywords: GRADATION_RADIAL
|
||||||
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 SHADOW_COLOR_MULTIPLY_ADDITIVE TONE_GRAYSCALE
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_BLUR_FAST SHADOW_COLOR_REPLACE
|
|
||||||
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
|
passType: 0
|
||||||
- keywords: SAMPLING_PIXELATION
|
- keywords: SAMPLING_PIXELATION
|
||||||
passType: 0
|
passType: 0
|
||||||
@@ -158,18 +158,8 @@ ShaderVariantCollection:
|
|||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_PIXELATION TONE_RETRO UNITY_UI_CLIP_RECT
|
- keywords: SAMPLING_PIXELATION TONE_RETRO UNITY_UI_CLIP_RECT
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_PIXELATION TRANSITION_COLOR_MULTIPLY TRANSITION_PATTERN
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_PIXELATION TRANSITION_COLOR_MULTIPLY_ADDITIVE TRANSITION_DISSOLVE
|
|
||||||
passType: 0
|
|
||||||
- keywords: SAMPLING_RGB_SHIFT
|
- keywords: SAMPLING_RGB_SHIFT
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: SAMPLING_RGB_SHIFT TRANSITION_COLOR_MULTIPLY TRANSITION_PATTERN
|
|
||||||
passType: 0
|
|
||||||
- keywords: SHADOW_COLOR_REPLACE
|
|
||||||
passType: 0
|
|
||||||
- keywords: SHADOW_COLOR_REPLACE TRANSITION_COLOR_REPLACE TRANSITION_MELT
|
|
||||||
passType: 0
|
|
||||||
- keywords: TONE_GRAYSCALE
|
- keywords: TONE_GRAYSCALE
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TONE_NEGATIVE
|
- keywords: TONE_NEGATIVE
|
||||||
@@ -180,59 +170,143 @@ ShaderVariantCollection:
|
|||||||
passType: 0
|
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 TRANSITION_PATTERN
|
- keywords: TRANSITION_BURN
|
||||||
passType: 0
|
passType: 0
|
||||||
- keywords: TRANSITION_COLOR_MULTIPLY TRANSITION_PATTERN UNITY_UI_CLIP_RECT
|
- keywords: TRANSITION_BURN UNITY_UI_CLIP_RECT
|
||||||
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: 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_COLOR_MULTIPLY_ADDITIVE TRANSITION_PATTERN
|
|
||||||
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: 03ea49e29b5ad4fbe8e340af208fe8e7, type: 3}
|
- keywords: TRANSITION_MASK
|
||||||
second:
|
|
||||||
variants:
|
|
||||||
- keywords: SAMPLING_RGB_SHIFT TONE_RETRO TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
|
||||||
TRANSITION_SHINY
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- first: {fileID: 4800000, guid: 16f26337621974eaf998b9857bac39c6, type: 3}
|
- keywords: TRANSITION_MELT
|
||||||
second:
|
|
||||||
variants:
|
|
||||||
- keywords: SAMPLING_RGB_SHIFT TONE_RETRO TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
|
||||||
TRANSITION_SHINY
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- first: {fileID: 4800000, guid: 2c69b4dabb5c24ae99889f581c8b556a, type: 3}
|
- keywords: TRANSITION_MELT UNITY_UI_CLIP_RECT
|
||||||
second:
|
|
||||||
variants:
|
|
||||||
- keywords: SAMPLING_RGB_SHIFT TONE_RETRO TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
|
||||||
TRANSITION_SHINY
|
|
||||||
passType: 0
|
passType: 0
|
||||||
- first: {fileID: 4800000, guid: 26b66f9b09b8d4ac6a2790c3fa8b21c1, type: 3}
|
- keywords: TRANSITION_PATTERN
|
||||||
second:
|
passType: 0
|
||||||
variants:
|
- keywords: TRANSITION_PATTERN UNITY_UI_CLIP_RECT
|
||||||
- keywords: SAMPLING_RGB_SHIFT TONE_RETRO TRANSITION_COLOR_MULTIPLY_ADDITIVE
|
passType: 0
|
||||||
TRANSITION_SHINY
|
- keywords: TRANSITION_SHINY
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_SHINY UNITY_UI_CLIP_RECT
|
||||||
|
passType: 0
|
||||||
|
- keywords: TONE_GRAYSCALE
|
||||||
|
passType: 0
|
||||||
|
- keywords: TONE_SEPIA
|
||||||
|
passType: 0
|
||||||
|
- keywords: TONE_NEGATIVE
|
||||||
|
passType: 0
|
||||||
|
- keywords: TONE_RETRO
|
||||||
|
passType: 0
|
||||||
|
- keywords: TONE_POSTERIZE
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER
|
||||||
|
passType: 0
|
||||||
|
- keywords: SAMPLING_BLUR_FAST
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER SAMPLING_BLUR_FAST
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER SAMPLING_BLUR_FAST UNITY_UI_CLIP_RECT
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER SAMPLING_BLUR_FAST TONE_GRAYSCALE
|
||||||
|
passType: 0
|
||||||
|
- keywords: SAMPLING_BLUR_MEDIUM
|
||||||
|
passType: 0
|
||||||
|
- keywords: SAMPLING_BLUR_DETAIL
|
||||||
|
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
|
||||||
|
- keywords: TRANSITION_FADE
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_CUTOFF
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_DISSOLVE
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_DISSOLVE UNITY_UI_CLIP_RECT
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER SAMPLING_BLUR_FAST TONE_GRAYSCALE TRANSITION_DISSOLVE
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_SHINY
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_SHINY UNITY_UI_CLIP_RECT
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_MASK
|
||||||
|
passType: 0
|
||||||
|
- keywords: SAMPLING_EDGE_LUMINANCE TRANSITION_MASK
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_MELT
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_MELT UNITY_UI_CLIP_RECT
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER TRANSITION_MELT
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_BURN
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_BURN UNITY_UI_CLIP_RECT
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_PATTERN
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_PATTERN UNITY_UI_CLIP_RECT
|
||||||
|
passType: 0
|
||||||
|
- keywords: TRANSITION_BLAZE
|
||||||
|
passType: 0
|
||||||
|
- keywords: EDGE_PLAIN
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER EDGE_PLAIN
|
||||||
|
passType: 0
|
||||||
|
- keywords: EDGE_PLAIN TRANSITION_PATTERN
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER EDGE_PLAIN TRANSITION_PATTERN
|
||||||
|
passType: 0
|
||||||
|
- keywords: EDGE_SHINY
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER EDGE_SHINY
|
||||||
|
passType: 0
|
||||||
|
- keywords: EDGE_SHINY SAMPLING_EDGE_ALPHA
|
||||||
|
passType: 0
|
||||||
|
- keywords: EDGE_SHINY TRANSITION_PATTERN
|
||||||
|
passType: 0
|
||||||
|
- keywords: DETAIL_MASKING
|
||||||
|
passType: 0
|
||||||
|
- keywords: DETAIL_MULTIPLY
|
||||||
|
passType: 0
|
||||||
|
- keywords: DETAIL_ADDITIVE
|
||||||
|
passType: 0
|
||||||
|
- keywords: DETAIL_SUBTRACTIVE
|
||||||
|
passType: 0
|
||||||
|
- keywords: DETAIL_REPLACE
|
||||||
|
passType: 0
|
||||||
|
- keywords: DETAIL_MULTIPLY_ADDITIVE
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER TARGET_HUE
|
||||||
|
passType: 0
|
||||||
|
- keywords: COLOR_FILTER TARGET_LUMINANCE
|
||||||
|
passType: 0
|
||||||
|
- keywords: GRADATION_GRADIENT
|
||||||
|
passType: 0
|
||||||
|
- keywords: GRADATION_COLOR2
|
||||||
|
passType: 0
|
||||||
|
- keywords: GRADATION_COLOR4
|
||||||
passType: 0
|
passType: 0
|
||||||
--- !u!114 &11400000
|
--- !u!114 &11400000
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@@ -246,10 +320,11 @@ 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_PreLoadSettingsInBuild: 0
|
||||||
m_RuntimePresets:
|
m_RuntimePresets: []
|
||||||
- {fileID: 1645081683573595507, guid: 3b09ad143990c4c8795c6e93760e132a, type: 3}
|
m_RuntimePresetsV2:
|
||||||
- {fileID: 1645081683573595507, guid: 4f70ff0f1e25b4388b9bcb38d619f7bf, type: 3}
|
- {fileID: 11400000, guid: 460881a8263ce454799a8c689c28d8c9, type: 2}
|
||||||
|
- {fileID: 11400000, guid: b919bc84de9254bcf8f614d392db83bb, type: 2}
|
||||||
m_UseHDRColorPicker: 1
|
m_UseHDRColorPicker: 1
|
||||||
m_ShaderVariantCollection: {fileID: -8740588384831342173}
|
m_ShaderVariantCollection: {fileID: -8740588384831342173}
|
||||||
m_ShaderVariantRegistry:
|
m_ShaderVariantRegistry:
|
||||||
@@ -273,5 +348,8 @@ MonoBehaviour:
|
|||||||
- key: Hidden/UI/Default (SoftMaskable)
|
- key: Hidden/UI/Default (SoftMaskable)
|
||||||
value: Hidden/UI/Default (UIEffect)
|
value: Hidden/UI/Default (UIEffect)
|
||||||
m_Asset: {fileID: -8740588384831342173}
|
m_Asset: {fileID: -8740588384831342173}
|
||||||
|
m_RegisteredShaders:
|
||||||
|
- {fileID: 4800000, guid: 935b7be1c88464d2eb87204fdfab5a38, type: 3}
|
||||||
|
- {fileID: 4800000, guid: 96246b1ead49a4c5a996fd477bc5a117, type: 3}
|
||||||
m_ErrorOnUnregisteredVariant: 0
|
m_ErrorOnUnregisteredVariant: 0
|
||||||
m_UnregisteredVariants: []
|
m_UnregisteredVariants: []
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
../Packages/src/Samples~
|
|
||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
./Packages/src/CHANGELOG.md
|
||||||
@@ -4,7 +4,8 @@
|
|||||||
"com.coffee.minimal-resource": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/MinimalResource",
|
"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.coffee.symbolic-linker": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/SymbolicLinker",
|
"com.coffee.symbolic-linker": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/SymbolicLinker",
|
||||||
"com.unity.ide.rider": "3.0.34",
|
"com.unity.addressables": "1.22.3",
|
||||||
|
"com.unity.ide.rider": "3.0.38",
|
||||||
"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,14 +5,14 @@
|
|||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "git",
|
"source": "git",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"hash": "2045eaab5b485827cef8bf0bb9e1552dce4f8d6d"
|
"hash": "d5d12cb14184509b0d4ab12fa22dd3e6f6b50f16"
|
||||||
},
|
},
|
||||||
"com.coffee.minimal-resource": {
|
"com.coffee.minimal-resource": {
|
||||||
"version": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/MinimalResource",
|
"version": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/MinimalResource",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "git",
|
"source": "git",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"hash": "2bd2bf356dd692a39de9db2ff11faaf79fbfaea3"
|
"hash": "d5d12cb14184509b0d4ab12fa22dd3e6f6b50f16"
|
||||||
},
|
},
|
||||||
"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",
|
||||||
@@ -21,14 +21,14 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.ugui": "1.0.0"
|
"com.unity.ugui": "1.0.0"
|
||||||
},
|
},
|
||||||
"hash": "2045eaab5b485827cef8bf0bb9e1552dce4f8d6d"
|
"hash": "d5d12cb14184509b0d4ab12fa22dd3e6f6b50f16"
|
||||||
},
|
},
|
||||||
"com.coffee.symbolic-linker": {
|
"com.coffee.symbolic-linker": {
|
||||||
"version": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/SymbolicLinker",
|
"version": "https://github.com/mob-sakai/Coffee.Internal.git?path=Packages/SymbolicLinker",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "git",
|
"source": "git",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"hash": "3c280f1a8f4db5038b881ff07f270efd9638fa31"
|
"hash": "d5d12cb14184509b0d4ab12fa22dd3e6f6b50f16"
|
||||||
},
|
},
|
||||||
"com.coffee.ui-effect": {
|
"com.coffee.ui-effect": {
|
||||||
"version": "file:src",
|
"version": "file:src",
|
||||||
@@ -38,6 +38,20 @@
|
|||||||
"com.unity.ugui": "1.0.0"
|
"com.unity.ugui": "1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"com.unity.addressables": {
|
||||||
|
"version": "1.22.3",
|
||||||
|
"depth": 0,
|
||||||
|
"source": "registry",
|
||||||
|
"dependencies": {
|
||||||
|
"com.unity.modules.assetbundle": "1.0.0",
|
||||||
|
"com.unity.modules.jsonserialize": "1.0.0",
|
||||||
|
"com.unity.modules.imageconversion": "1.0.0",
|
||||||
|
"com.unity.modules.unitywebrequest": "1.0.0",
|
||||||
|
"com.unity.scriptablebuildpipeline": "1.21.25",
|
||||||
|
"com.unity.modules.unitywebrequestassetbundle": "1.0.0"
|
||||||
|
},
|
||||||
|
"url": "https://packages.unity.com"
|
||||||
|
},
|
||||||
"com.unity.ext.nunit": {
|
"com.unity.ext.nunit": {
|
||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"depth": 1,
|
"depth": 1,
|
||||||
@@ -46,7 +60,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.38",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -54,6 +68,13 @@
|
|||||||
},
|
},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
|
"com.unity.scriptablebuildpipeline": {
|
||||||
|
"version": "1.21.25",
|
||||||
|
"depth": 1,
|
||||||
|
"source": "registry",
|
||||||
|
"dependencies": {},
|
||||||
|
"url": "https://packages.unity.com"
|
||||||
|
},
|
||||||
"com.unity.test-framework": {
|
"com.unity.test-framework": {
|
||||||
"version": "1.1.33",
|
"version": "1.1.33",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
@@ -89,6 +110,18 @@
|
|||||||
"source": "builtin",
|
"source": "builtin",
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
},
|
},
|
||||||
|
"com.unity.modules.assetbundle": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"depth": 1,
|
||||||
|
"source": "builtin",
|
||||||
|
"dependencies": {}
|
||||||
|
},
|
||||||
|
"com.unity.modules.imageconversion": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"depth": 1,
|
||||||
|
"source": "builtin",
|
||||||
|
"dependencies": {}
|
||||||
|
},
|
||||||
"com.unity.modules.imgui": {
|
"com.unity.modules.imgui": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"depth": 1,
|
"depth": 1,
|
||||||
@@ -106,6 +139,21 @@
|
|||||||
"depth": 2,
|
"depth": 2,
|
||||||
"source": "builtin",
|
"source": "builtin",
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
|
},
|
||||||
|
"com.unity.modules.unitywebrequest": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"depth": 1,
|
||||||
|
"source": "builtin",
|
||||||
|
"dependencies": {}
|
||||||
|
},
|
||||||
|
"com.unity.modules.unitywebrequestassetbundle": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"depth": 1,
|
||||||
|
"source": "builtin",
|
||||||
|
"dependencies": {
|
||||||
|
"com.unity.modules.assetbundle": "1.0.0",
|
||||||
|
"com.unity.modules.unitywebrequest": "1.0.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,13 +12,28 @@
|
|||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
"@semantic-release/release-notes-generator",
|
"@semantic-release/release-notes-generator",
|
||||||
"@semantic-release/changelog",
|
"@semantic-release/changelog",
|
||||||
|
[
|
||||||
|
"@semantic-release/exec",
|
||||||
|
{
|
||||||
|
"prepareCmd": "node ./Samples~/sync-sample-package-versions.js ${nextRelease.version}"
|
||||||
|
}
|
||||||
|
],
|
||||||
[
|
[
|
||||||
"@semantic-release/npm",
|
"@semantic-release/npm",
|
||||||
{
|
{
|
||||||
"npmPublish": false
|
"npmPublish": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
[
|
||||||
"@semantic-release/git",
|
"@semantic-release/git",
|
||||||
|
{
|
||||||
|
"assets": [
|
||||||
|
"CHANGELOG.md",
|
||||||
|
"package.json",
|
||||||
|
"Samples~/**/package.json"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"@semantic-release/github"
|
"@semantic-release/github"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,356 @@
|
|||||||
|
## [5.11.10](https://github.com/mob-sakai/UIEffect/compare/5.11.9...5.11.10) (2026-11-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* added "Show Readme" to the auto-import menu ([27629cd](https://github.com/mob-sakai/UIEffect/commit/27629cdd7c9dd64c053a92fcd69119efffe4a127))
|
||||||
|
* fix font path in demo ([3ca1214](https://github.com/mob-sakai/UIEffect/commit/3ca121423382668eee335fbb8bf8308b7f04159b))
|
||||||
|
* fix potential NPE in code ([6e8aaf3](https://github.com/mob-sakai/UIEffect/commit/6e8aaf36f00e4a42f7b9d6f79e065d4022b567c2))
|
||||||
|
* fix potential NPE in code ([d41d1ad](https://github.com/mob-sakai/UIEffect/commit/d41d1ad21f3b4ce38bb1fae870cf8621ed61a1e8))
|
||||||
|
* fix project setting inspector ([d359086](https://github.com/mob-sakai/UIEffect/commit/d359086ed4baaf2bc0bfb64742492e3ea6d6d4b6))
|
||||||
|
|
||||||
|
## [5.11.9](https://github.com/mob-sakai/UIEffect/compare/5.11.8...5.11.9) (2026-11-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* color filter does not reflect the correct color space. ([6cbb793](https://github.com/mob-sakai/UIEffect/commit/6cbb793d8d421a14c6c694ea08914506607171fc)), closes [#409](https://github.com/mob-sakai/UIEffect/issues/409)
|
||||||
|
* improve tweener editor ([4a49e9a](https://github.com/mob-sakai/UIEffect/commit/4a49e9a8b22e7c77851eef6810c3106e716cbb93))
|
||||||
|
* support Unity 6.6+ with ShaderGraph package ([e856b0b](https://github.com/mob-sakai/UIEffect/commit/e856b0b9396025c3352054e65b090421ab2e3b40))
|
||||||
|
* tweener does not affect multi-font glyphs (TMP_SubMeshUI) ([485e2df](https://github.com/mob-sakai/UIEffect/commit/485e2df9fc305db20aa473972f4a11e219cac7be)), closes [#413](https://github.com/mob-sakai/UIEffect/issues/413)
|
||||||
|
|
||||||
|
## [5.11.8](https://github.com/mob-sakai/UIEffect/compare/5.11.7...5.11.8) (2026-11-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* remove conflicting FormerlySerializedAs on UIEffectTweener.m_PlayOnEnable ([55a7f27](https://github.com/mob-sakai/UIEffect/commit/55a7f272042e869e6659f7a2603f9a16dbb3ab65))
|
||||||
|
|
||||||
|
## [5.11.7](https://github.com/mob-sakai/UIEffect/compare/5.11.6...5.11.7) (2026-08-27)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* ignore shader registry order changes ([014bba3](https://github.com/mob-sakai/UIEffect/commit/014bba3f5687ecfe41caa00d454f196baf7e3483)), closes [#407](https://github.com/mob-sakai/UIEffect/issues/407)
|
||||||
|
|
||||||
|
## [5.11.6](https://github.com/mob-sakai/UIEffect/compare/5.11.5...5.11.6) (2026-08-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* refresh material when changing shadow mode ([8bb782c](https://github.com/mob-sakai/UIEffect/commit/8bb782c90afb42d6569d8dfcfe022b007171f97e))
|
||||||
|
|
||||||
|
## [5.11.5](https://github.com/mob-sakai/UIEffect/compare/5.11.4...5.11.5) (2026-07-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix memory leak ([2dcb7f7](https://github.com/mob-sakai/UIEffect/commit/2dcb7f7e8678a2ffcf3832d0c5011aa1da6c3677)), closes [#405](https://github.com/mob-sakai/UIEffect/issues/405)
|
||||||
|
|
||||||
|
## [5.11.4](https://github.com/mob-sakai/UIEffect/compare/5.11.3...5.11.4) (2026-07-22)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* infinite asset import loop caused by unchanged ProjectSettings being marked dirty ([dbf8ae0](https://github.com/mob-sakai/UIEffect/commit/dbf8ae00f50470912d458fda853a34ef94d7d533)), closes [#404](https://github.com/mob-sakai/UIEffect/issues/404)
|
||||||
|
|
||||||
|
## [5.11.3](https://github.com/mob-sakai/UIEffect/compare/5.11.2...5.11.3) (2026-07-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* TextMeshPro support is not working ([9d98096](https://github.com/mob-sakai/UIEffect/commit/9d980961d6cf45e519ad96bf2e7260ed515f0f70)), closes [#402](https://github.com/mob-sakai/UIEffect/issues/402)
|
||||||
|
|
||||||
|
## [5.11.2](https://github.com/mob-sakai/UIEffect/compare/5.11.1...5.11.2) (2026-07-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add null check ([161fc54](https://github.com/mob-sakai/UIEffect/commit/161fc546cad251ad798c2fd9e9472d687aa7f2c3))
|
||||||
|
|
||||||
|
## [5.11.1](https://github.com/mob-sakai/UIEffect/compare/5.11.0...5.11.1) (2026-06-29)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* support "disable domain reload" on Unity 6.6 or later ([a556c28](https://github.com/mob-sakai/UIEffect/commit/a556c282210303d9e7a7c284bb4b41ef3a35e3e1))
|
||||||
|
|
||||||
|
# [5.11.0](https://github.com/mob-sakai/UIEffect/compare/5.10.9...5.11.0) (2026-06-25)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* enable/disable Gameobject break effect with 'TrueShadow' ([730aa2b](https://github.com/mob-sakai/UIEffect/commit/730aa2bb4d872ddab63f2dad611a063cefa07064)), closes [#400](https://github.com/mob-sakai/UIEffect/issues/400)
|
||||||
|
* select TMP submesh by mesh before material ([f538ef2](https://github.com/mob-sakai/UIEffect/commit/f538ef2cba3d4d76f6683bccee65d5a9694dad37))
|
||||||
|
* some fix ([b6b538f](https://github.com/mob-sakai/UIEffect/commit/b6b538f64f0b06ddfb4ad2edd6b7db6dc1d067d8))
|
||||||
|
* Support for skipping "reload domain" ([ec3fb13](https://github.com/mob-sakai/UIEffect/commit/ec3fb13c111638781bf852e2a4a4747fbfeb7d3a))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add option to remove from preloadedAssets when build player ([e955715](https://github.com/mob-sakai/UIEffect/commit/e955715c99c474881e0b27ecc325061ce0d866a0)), closes [#393](https://github.com/mob-sakai/UIEffect/issues/393)
|
||||||
|
* support XBOX One/Series ([72bb1c5](https://github.com/mob-sakai/UIEffect/commit/72bb1c51318829e7ced3b1436892a5969aedd9a3)), closes [#385](https://github.com/mob-sakai/UIEffect/issues/385) [#394](https://github.com/mob-sakai/UIEffect/issues/394)
|
||||||
|
|
||||||
|
## [5.10.9](https://github.com/mob-sakai/UIEffect/compare/5.10.8...5.10.9) (2026-06-08)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* ambiguous call to 'lerp' in shader ([cd68b36](https://github.com/mob-sakai/UIEffect/commit/cd68b364c48e979d6ef227e53a522f096e0df47a)), closes [#390](https://github.com/mob-sakai/UIEffect/issues/390)
|
||||||
|
* Clarify that the `ShaderGraph support` is available only in Unity 2023.2/6.0 or later ([57031c3](https://github.com/mob-sakai/UIEffect/commit/57031c3e3c2d64ee76d3e568d378cd54a5e84af5)), closes [#391](https://github.com/mob-sakai/UIEffect/issues/391)
|
||||||
|
* support Unity 6.5 or later ([2d6f7ed](https://github.com/mob-sakai/UIEffect/commit/2d6f7ed63dd83b3f90c2fa6d93a3c84afd6de866)), closes [#392](https://github.com/mob-sakai/UIEffect/issues/392) [#398](https://github.com/mob-sakai/UIEffect/issues/398)
|
||||||
|
* UIEffect.detailColor is not working ([f3da972](https://github.com/mob-sakai/UIEffect/commit/f3da972c0cba526f7784207c2d8ab48b5dd692f3)), closes [#399](https://github.com/mob-sakai/UIEffect/issues/399)
|
||||||
|
|
||||||
|
## [5.10.8](https://github.com/mob-sakai/UIEffect/compare/5.10.7...5.10.8) (2026-01-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Canvas not properly cached when objects are outside Canvas ([4a4e50e](https://github.com/mob-sakai/UIEffect/commit/4a4e50e01fb50925352c73b27901024494ae933c))
|
||||||
|
|
||||||
|
## [5.10.7](https://github.com/mob-sakai/UIEffect/compare/5.10.6...5.10.7) (2025-12-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* support Unity 6000.4 ([7fc0c73](https://github.com/mob-sakai/UIEffect/commit/7fc0c7364d8dc39e26eac3c3b79797b139f09817))
|
||||||
|
|
||||||
|
## [5.10.6](https://github.com/mob-sakai/UIEffect/compare/5.10.5...5.10.6) (2025-12-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fixed an issue where shader variants were not registered automatically ([6b79864](https://github.com/mob-sakai/UIEffect/commit/6b79864a394d79e6ad13f64af1d521fab1f781a7)), closes [#383](https://github.com/mob-sakai/UIEffect/issues/383)
|
||||||
|
|
||||||
|
## [5.10.5](https://github.com/mob-sakai/UIEffect/compare/5.10.4...5.10.5) (2025-11-20)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* graphic disappears when changing filters from code ([8776057](https://github.com/mob-sakai/UIEffect/commit/87760570ec7f4e2ca395cfaa0d2ab5d28c9cf9f3)), closes [#382](https://github.com/mob-sakai/UIEffect/issues/382)
|
||||||
|
|
||||||
|
## [5.10.4](https://github.com/mob-sakai/UIEffect/compare/5.10.3...5.10.4) (2025-10-27)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* remove `sealed` from `UIEffect` and `UIEffectReplica` ([2fd87e9](https://github.com/mob-sakai/UIEffect/commit/2fd87e909af65bf88a9c39cd157dfb06a56b3af0)), closes [#379](https://github.com/mob-sakai/UIEffect/issues/379)
|
||||||
|
|
||||||
|
## [5.10.3](https://github.com/mob-sakai/UIEffect/compare/5.10.2...5.10.3) (2025-10-22)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* displays as black rectangle when opening editor ([4a8d341](https://github.com/mob-sakai/UIEffect/commit/4a8d341625f73d70c512f7e6f0b864be1adbf459)), closes [#376](https://github.com/mob-sakai/UIEffect/issues/376)
|
||||||
|
|
||||||
|
## [5.10.2](https://github.com/mob-sakai/UIEffect/compare/5.10.1...5.10.2) (2025-10-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [improve performance] code optimization ([e6fb78a](https://github.com/mob-sakai/UIEffect/commit/e6fb78a0f67ed6f70be08259f674ab2f83364bd7))
|
||||||
|
|
||||||
|
## [5.10.1](https://github.com/mob-sakai/UIEffect/compare/5.10.0...5.10.1) (2025-10-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [improve performance] `UpdateViewMatrix` is called even though (direct-)parent canvas is disabled ([533d7b8](https://github.com/mob-sakai/UIEffect/commit/533d7b8c0a33871b1849fbda862d4fa1899822f4)), closes [#373](https://github.com/mob-sakai/UIEffect/issues/373)
|
||||||
|
|
||||||
|
# [5.10.0](https://github.com/mob-sakai/UIEffect/compare/5.9.7...5.10.0) (2025-09-26)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* `TmpProxy` causes loss of modifications from other `IMeshModifiers` ([c4202b4](https://github.com/mob-sakai/UIEffect/commit/c4202b45d28fa84567a5671baaef8fa3e3df85dc)), closes [#371](https://github.com/mob-sakai/UIEffect/issues/371)
|
||||||
|
* display may disappear when using TMP SubMesh (multi-language or sprites, etc.) ([b4adb32](https://github.com/mob-sakai/UIEffect/commit/b4adb325120eeed64af1d9cb2468a1e1e8e10812)), closes [#372](https://github.com/mob-sakai/UIEffect/issues/372)
|
||||||
|
* TMP Text sprite submesh lost when changing fontMaterial ([59874dd](https://github.com/mob-sakai/UIEffect/commit/59874ddffe356f927dc8ff9b157c54043e149522)), closes [#368](https://github.com/mob-sakai/UIEffect/issues/368)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* [improve performance] merged apply_color function and reduced shader compilation size ([ce69258](https://github.com/mob-sakai/UIEffect/commit/ce692580a33c0c433fd7fadb64a3dcda0121b2ff))
|
||||||
|
* [improve performance] various view matrices are only updated when necessary ([6c808aa](https://github.com/mob-sakai/UIEffect/commit/6c808aa3417450fd1ce0fc6fbfe0adffdff9a79a))
|
||||||
|
|
||||||
|
## [5.9.7](https://github.com/mob-sakai/UIEffect/compare/5.9.6...5.9.7) (2025-09-01)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* edges of `TransitionFilter.Shiny` appear sharp ([b077d97](https://github.com/mob-sakai/UIEffect/commit/b077d97ed706acbbdd3b20e765ec0552fa464f9b)), closes [#366](https://github.com/mob-sakai/UIEffect/issues/366)
|
||||||
|
* error message sometimes after importing assets ([3207105](https://github.com/mob-sakai/UIEffect/commit/3207105a067801696de789d282c74a93b798ed57)), closes [#365](https://github.com/mob-sakai/UIEffect/issues/365)
|
||||||
|
* flickering issue when scale Y changes when used `ShadowMode` with TextMeshPro ([4cca2fb](https://github.com/mob-sakai/UIEffect/commit/4cca2fb5ab34ea454ff8df3def5f1730a71a198c)), closes [#367](https://github.com/mob-sakai/UIEffect/issues/367)
|
||||||
|
* skip monitoring TMP objects that can ignore Y-axis scaling ([d1adb33](https://github.com/mob-sakai/UIEffect/commit/d1adb33884971aa7d6c473fcd08cdf25e58cd261))
|
||||||
|
|
||||||
|
## [5.9.6](https://github.com/mob-sakai/UIEffect/compare/5.9.5...5.9.6) (2025-07-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* `ColorFilter` does not output intended color when vertex color is not white ([9dffdb0](https://github.com/mob-sakai/UIEffect/commit/9dffdb0ed88750a915fdd5e437b79ab766ce45c2)), closes [#363](https://github.com/mob-sakai/UIEffect/issues/363)
|
||||||
|
* draw calls increase even when using `UIEffectReplica` ([83128eb](https://github.com/mob-sakai/UIEffect/commit/83128ebb09305e4c15a58968a94550179e96ffac)), closes [#364](https://github.com/mob-sakai/UIEffect/issues/364)
|
||||||
|
|
||||||
|
## [5.9.5](https://github.com/mob-sakai/UIEffect/compare/5.9.4...5.9.5) (2025-06-26)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* `GetGradientKeys` and `GetTransitionGradientKeys` cannot get GradientMode ([fd2d1b8](https://github.com/mob-sakai/UIEffect/commit/fd2d1b80592ac4ea62e15b6150be63964b113fa2)), closes [#358](https://github.com/mob-sakai/UIEffect/issues/358)
|
||||||
|
|
||||||
|
## [5.9.4](https://github.com/mob-sakai/UIEffect/compare/5.9.3...5.9.4) (2025-06-25)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* colors specified in UIEffect are output differently in linear color space ([0d7fb1e](https://github.com/mob-sakai/UIEffect/commit/0d7fb1eb63881b67f2658567750a83c92187df35)), closes [#359](https://github.com/mob-sakai/UIEffect/issues/359)
|
||||||
|
|
||||||
|
## [5.9.3](https://github.com/mob-sakai/UIEffect/compare/5.9.2...5.9.3) (2025-06-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add `GetGradientKeys` and `GetTransitionGradientKeys` APIs ([a0c3e49](https://github.com/mob-sakai/UIEffect/commit/a0c3e4997af181ae16744c53ad3867e2106ccff3)), closes [#358](https://github.com/mob-sakai/UIEffect/issues/358)
|
||||||
|
* support world canvas without UI events ([cadbb8d](https://github.com/mob-sakai/UIEffect/commit/cadbb8d68d17a2ec7e2d6e8e885d711e61fa53af)), closes [#356](https://github.com/mob-sakai/UIEffect/issues/356) [#357](https://github.com/mob-sakai/UIEffect/issues/357)
|
||||||
|
|
||||||
|
## [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)
|
## [5.6.2](https://github.com/mob-sakai/UIEffect/compare/5.6.1...5.6.2) (2025-04-04)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 == null) 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 != null)
|
||||||
|
{
|
||||||
|
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 == null) 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 == null) 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:
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
|
||||||
using Object = UnityEngine.Object;
|
using Object = UnityEngine.Object;
|
||||||
|
|
||||||
namespace Coffee.UIEffects.Editors
|
namespace Coffee.UIEffects.Editors
|
||||||
@@ -12,462 +11,44 @@ namespace Coffee.UIEffects.Editors
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[CustomEditor(typeof(UIEffect), true)]
|
[CustomEditor(typeof(UIEffect), true)]
|
||||||
[CanEditMultipleObjects]
|
[CanEditMultipleObjects]
|
||||||
public class UIEffectEditor : Editor
|
public class UIEffectEditor : UIEffectPropertyEditor
|
||||||
{
|
{
|
||||||
private class UIEffectEditorSettings : ScriptableSingleton<UIEffectEditorSettings>
|
private class UIEffectEditorSettings : ScriptableSingleton<UIEffectEditorSettings>
|
||||||
{
|
{
|
||||||
public bool m_ExpandOthers = true;
|
public bool m_ExpandOthers = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
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 _samplingScale;
|
private SerializedProperty _samplingScale;
|
||||||
|
|
||||||
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 _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 _gradationColor1;
|
|
||||||
private SerializedProperty _gradationColor2;
|
|
||||||
private SerializedProperty _gradationColor3;
|
|
||||||
private SerializedProperty _gradationColor4;
|
|
||||||
private SerializedProperty _gradationGradient;
|
|
||||||
private SerializedProperty _gradationOffset;
|
|
||||||
private SerializedProperty _gradationScale;
|
|
||||||
private SerializedProperty _gradationRotation;
|
|
||||||
|
|
||||||
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 _detailThreshold;
|
|
||||||
private SerializedProperty _detailTex;
|
|
||||||
private SerializedProperty _detailTexScale;
|
|
||||||
private SerializedProperty _detailTexOffset;
|
|
||||||
private SerializedProperty _detailTexSpeed;
|
|
||||||
|
|
||||||
private SerializedProperty _allowToModifyMeshShape;
|
private SerializedProperty _allowToModifyMeshShape;
|
||||||
private SerializedProperty _customRoot;
|
private SerializedProperty _customRoot;
|
||||||
private SerializedProperty _flip;
|
|
||||||
|
|
||||||
private static bool expandOthers
|
private static bool expandOthers
|
||||||
{
|
{
|
||||||
set => UIEffectEditorSettings.instance.m_ExpandOthers = value;
|
|
||||||
get => UIEffectEditorSettings.instance.m_ExpandOthers;
|
get => UIEffectEditorSettings.instance.m_ExpandOthers;
|
||||||
|
set => UIEffectEditorSettings.instance.m_ExpandOthers = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnEnable()
|
protected override void OnEnable()
|
||||||
{
|
{
|
||||||
if (target == null) return;
|
base.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");
|
|
||||||
_samplingScale = serializedObject.FindProperty("m_SamplingScale");
|
_samplingScale = serializedObject.FindProperty("m_SamplingScale");
|
||||||
|
|
||||||
_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");
|
|
||||||
|
|
||||||
_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");
|
|
||||||
_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");
|
|
||||||
|
|
||||||
_detailFilter = serializedObject.FindProperty("m_DetailFilter");
|
|
||||||
_detailIntensity = serializedObject.FindProperty("m_DetailIntensity");
|
|
||||||
_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");
|
|
||||||
|
|
||||||
_allowToModifyMeshShape = serializedObject.FindProperty("m_AllowToModifyMeshShape");
|
_allowToModifyMeshShape = serializedObject.FindProperty("m_AllowToModifyMeshShape");
|
||||||
_customRoot = serializedObject.FindProperty("m_CustomRoot");
|
_customRoot = serializedObject.FindProperty("m_CustomRoot");
|
||||||
_flip = serializedObject.FindProperty("m_Flip");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnInspectorGUI()
|
public override void OnInspectorGUI()
|
||||||
{
|
{
|
||||||
serializedObject.Update();
|
serializedObject.Update();
|
||||||
|
|
||||||
|
// Preset
|
||||||
DrawPresetMenu(targets);
|
DrawPresetMenu(targets);
|
||||||
DrawSeparator();
|
DrawSeparator();
|
||||||
|
|
||||||
|
// Properties
|
||||||
DrawProperties();
|
DrawProperties();
|
||||||
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(_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, EditorGUIUtility.TrTempContent("Rotation"));
|
|
||||||
EditorGUILayout.PropertyField(_transitionKeepAspectRatio,
|
|
||||||
EditorGUIUtility.TrTempContent("Keep Aspect Ratio"));
|
|
||||||
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 (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++;
|
|
||||||
switch ((GradationMode)_gradationMode.intValue)
|
|
||||||
{
|
|
||||||
case GradationMode.HorizontalGradient:
|
|
||||||
case GradationMode.VerticalGradient:
|
|
||||||
case GradationMode.AngleGradient:
|
|
||||||
DrawGradientField(_gradationGradient);
|
|
||||||
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(_gradationOffset);
|
|
||||||
EditorGUILayout.PropertyField(_gradationScale);
|
|
||||||
|
|
||||||
if ((GradationMode)_gradationMode.intValue == GradationMode.Angle
|
|
||||||
|| (GradationMode)_gradationMode.intValue == GradationMode.AngleGradient)
|
|
||||||
{
|
|
||||||
EditorGUILayout.PropertyField(_gradationRotation);
|
|
||||||
}
|
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
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, EditorGUIUtility.TrTempContent("Rotation"));
|
|
||||||
EditorGUILayout.PropertyField(_transitionKeepAspectRatio,
|
|
||||||
EditorGUIUtility.TrTempContent("Keep Aspect Ratio"));
|
|
||||||
EditorGUI.indentLevel--;
|
|
||||||
EditorGUI.indentLevel--;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// Others
|
||||||
DrawSeparator();
|
DrawSeparator();
|
||||||
expandOthers = EditorGUILayout.BeginFoldoutHeaderGroup(expandOthers, "Others");
|
expandOthers = EditorGUILayout.BeginFoldoutHeaderGroup(expandOthers, "Others");
|
||||||
if (expandOthers)
|
if (expandOthers)
|
||||||
@@ -475,143 +56,11 @@ namespace Coffee.UIEffects.Editors
|
|||||||
EditorGUILayout.PropertyField(_samplingScale);
|
EditorGUILayout.PropertyField(_samplingScale);
|
||||||
EditorGUILayout.PropertyField(_allowToModifyMeshShape);
|
EditorGUILayout.PropertyField(_allowToModifyMeshShape);
|
||||||
EditorGUILayout.PropertyField(_customRoot);
|
EditorGUILayout.PropertyField(_customRoot);
|
||||||
EditorGUILayout.PropertyField(_flip);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void DrawColorPickerField(string label, SerializedProperty color1, SerializedProperty color2)
|
EditorGUILayout.EndFoldoutHeaderGroup();
|
||||||
{
|
|
||||||
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;
|
serializedObject.ApplyModifiedProperties();
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
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)
|
||||||
@@ -670,28 +119,23 @@ namespace Coffee.UIEffects.Editors
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DropDownPreset(Rect r, Predicate<(string path, bool builtin, UIEffect preset)> valid,
|
public static void DropDownPreset(Rect r, Predicate<(string path, bool builtin, UIEffectPreset preset)> valid,
|
||||||
Action<UIEffect> callback)
|
Action<UIEffectPreset> callback)
|
||||||
{
|
{
|
||||||
var menu = new GenericMenu();
|
var menu = new GenericMenu();
|
||||||
var separatorAdded = false;
|
var separatorAdded = false;
|
||||||
foreach (var preset in UIEffectProjectSettings.LoadEditorPresets())
|
foreach (var preset in UIEffectProjectSettings.LoadEditorPresetsV2())
|
||||||
{
|
{
|
||||||
var (path, builtin) = UIEffectProjectSettings.GetPresetPath(preset);
|
var (path, builtin) = UIEffectProjectSettings.GetPresetPath(preset);
|
||||||
if (valid != null && valid.Invoke((path, builtin, preset)) == false) continue;
|
if (valid != null && valid.Invoke((path, builtin, preset)) == false) continue;
|
||||||
|
|
||||||
if (builtin)
|
if (builtin && !separatorAdded)
|
||||||
{
|
|
||||||
if (!separatorAdded)
|
|
||||||
{
|
{
|
||||||
separatorAdded = true;
|
separatorAdded = true;
|
||||||
menu.AddSeparator(string.Empty);
|
menu.AddSeparator(string.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
path = path.Substring(6).Replace(" - ", "/");
|
menu.AddItem(new GUIContent(path.Replace("-", "/")), false, x => callback(x as UIEffectPreset), preset);
|
||||||
}
|
|
||||||
|
|
||||||
menu.AddItem(new GUIContent(path), false, x => callback(x as UIEffect), preset);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.DropDown(r);
|
menu.DropDown(r);
|
||||||
|
|||||||
@@ -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,4 +1,8 @@
|
|||||||
using UnityEditor;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Coffee.UIEffectInternal;
|
using Coffee.UIEffectInternal;
|
||||||
using UnityEditorInternal;
|
using UnityEditorInternal;
|
||||||
@@ -6,61 +10,65 @@ using UnityEditorInternal;
|
|||||||
namespace Coffee.UIEffects.Editors
|
namespace Coffee.UIEffects.Editors
|
||||||
{
|
{
|
||||||
[CustomEditor(typeof(UIEffectProjectSettings))]
|
[CustomEditor(typeof(UIEffectProjectSettings))]
|
||||||
public class UIEffectProjectSettingsEditor : Editor
|
internal class UIEffectProjectSettingsEditor : PreloadedProjectSettingsEditor
|
||||||
{
|
{
|
||||||
private ReorderableList _reorderableList;
|
private ReorderableList _reorderableList;
|
||||||
|
private SerializedProperty _runtimePresets;
|
||||||
|
private SerializedProperty _runtimePresetsV2;
|
||||||
private SerializedProperty _useHDRColorPicker;
|
private SerializedProperty _useHDRColorPicker;
|
||||||
private SerializedProperty _transformSensitivity;
|
|
||||||
private bool _isInitialized;
|
|
||||||
private ShaderVariantRegistryEditor _shaderVariantRegistryEditor;
|
private ShaderVariantRegistryEditor _shaderVariantRegistryEditor;
|
||||||
|
private UIEffect[] _legacyPresets;
|
||||||
|
private bool _expandRuntimePresets;
|
||||||
|
private bool _expandLegacyPrefabs;
|
||||||
|
|
||||||
private void InitializeIfNeeded()
|
protected override void OnEnable()
|
||||||
{
|
{
|
||||||
if (_isInitialized) return;
|
base.OnEnable();
|
||||||
|
_legacyPresets = UIEffectProjectSettings.LoadEditorPresets();
|
||||||
_transformSensitivity = serializedObject.FindProperty("m_TransformSensitivity");
|
|
||||||
_useHDRColorPicker = serializedObject.FindProperty("m_UseHDRColorPicker");
|
_useHDRColorPicker = serializedObject.FindProperty("m_UseHDRColorPicker");
|
||||||
var runtimePresets = serializedObject.FindProperty("m_RuntimePresets");
|
_runtimePresets = serializedObject.FindProperty("m_RuntimePresets");
|
||||||
_reorderableList = new ReorderableList(serializedObject, runtimePresets, true, true, true, true);
|
_runtimePresetsV2 = serializedObject.FindProperty("m_RuntimePresetsV2");
|
||||||
|
|
||||||
|
_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;
|
||||||
|
|
||||||
EditorGUI.BeginDisabledGroup(effect && effect.hideFlags == HideFlags.NotEditable);
|
EditorGUI.BeginDisabledGroup(effect != null && effect.hideFlags == HideFlags.NotEditable);
|
||||||
EditorGUI.PropertyField(rect, element, GUIContent.none);
|
EditorGUI.PropertyField(rect, element, GUIContent.none);
|
||||||
EditorGUI.EndDisabledGroup();
|
EditorGUI.EndDisabledGroup();
|
||||||
};
|
};
|
||||||
_reorderableList.onAddDropdownCallback = (rect, list) =>
|
_reorderableList.onAddDropdownCallback = (rect, list) =>
|
||||||
{
|
{
|
||||||
UIEffectEditor.DropDownPreset(rect,
|
UIEffectEditor.DropDownPreset(rect,
|
||||||
x => !x.builtin && !UIEffectProjectSettings.instance.m_RuntimePresets.Contains(x.preset),
|
x => !UIEffectProjectSettings.instance.m_RuntimePresetsV2.Contains(x.preset),
|
||||||
UIEffectProjectSettings.RegisterRuntimePreset);
|
UIEffectProjectSettings.RegisterRuntimePreset);
|
||||||
};
|
};
|
||||||
|
|
||||||
_isInitialized = true;
|
_shaderVariantRegistryEditor = ShaderVariantRegistryEditor.Create(serializedObject, "(UIEffect)",
|
||||||
}
|
() =>
|
||||||
|
|
||||||
private void OnDisable()
|
|
||||||
{
|
{
|
||||||
_isInitialized = false;
|
UIEffectProjectSettings.shaderRegistry
|
||||||
|
.RegisterOptionalShaders(UIEffectProjectSettings.instance);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnInspectorGUI()
|
public override void OnInspectorGUI()
|
||||||
{
|
{
|
||||||
serializedObject.Update();
|
EditorGUIUtility.labelWidth = 180;
|
||||||
InitializeIfNeeded();
|
base.OnInspectorGUI();
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
// Transform sensitivity.
|
|
||||||
EditorGUILayout.PropertyField(_transformSensitivity);
|
|
||||||
|
|
||||||
// Runtime Presets
|
// Runtime Presets
|
||||||
_reorderableList.DoLayoutList();
|
_reorderableList.DoLayoutList();
|
||||||
|
|
||||||
|
// Legacy Presets
|
||||||
|
DrawLegacyPresets();
|
||||||
|
|
||||||
// Editor
|
// Editor
|
||||||
// Use HDR color pickers.
|
// Use HDR color pickers.
|
||||||
EditorGUILayout.PropertyField(_useHDRColorPicker);
|
EditorGUILayout.PropertyField(_useHDRColorPicker);
|
||||||
@@ -69,20 +77,124 @@ namespace Coffee.UIEffects.Editors
|
|||||||
// Shader registry
|
// Shader registry
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
EditorGUILayout.LabelField("Shader", EditorStyles.boldLabel);
|
EditorGUILayout.LabelField("Shader", EditorStyles.boldLabel);
|
||||||
if (_shaderVariantRegistryEditor == null)
|
_shaderVariantRegistryEditor.Draw();
|
||||||
{
|
|
||||||
var property = serializedObject.FindProperty("m_ShaderVariantRegistry");
|
DrawPreLoadSettingsInBuild("UIEffect");
|
||||||
_shaderVariantRegistryEditor = new ShaderVariantRegistryEditor(property, "(UIEffect)",
|
serializedObject.ApplyModifiedProperties();
|
||||||
() =>
|
GUILayout.FlexibleSpace();
|
||||||
{
|
|
||||||
UIEffectProjectSettings.shaderRegistry
|
|
||||||
.RegisterOptionalShaders(UIEffectProjectSettings.instance);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_shaderVariantRegistryEditor.Draw();
|
private void DrawLegacyPresets()
|
||||||
GUILayout.FlexibleSpace();
|
{
|
||||||
serializedObject.ApplyModifiedProperties();
|
for (var i = _runtimePresets.arraySize - 1; 0 <= i; i--)
|
||||||
|
{
|
||||||
|
if (_runtimePresets.GetArrayElementAtIndex(i).objectReferenceValue == null)
|
||||||
|
{
|
||||||
|
_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();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ConvertAllLegacyPresets()
|
||||||
|
{
|
||||||
|
var length = _legacyPresets.Length;
|
||||||
|
var converted = new HashSet<string>(UIEffectProjectSettings.LoadEditorPresetsV2()
|
||||||
|
.Select(x => Path.ChangeExtension(AssetDatabase.GetAssetPath(x), ".prefab")));
|
||||||
|
for (var i = 0; i < length; i++)
|
||||||
|
{
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorUtility.ClearProgressBar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 1a9c54e67e8c9495fa77bfe119825877
|
guid: 1a9c54e67e8c9495fa77bfe119825877
|
||||||
timeCreated: 1487152293
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
defaultReferences: []
|
defaultReferences: []
|
||||||
executionOrder: 0
|
executionOrder: 0
|
||||||
|
|||||||
@@ -0,0 +1,608 @@
|
|||||||
|
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--;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 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:
|
||||||
@@ -11,20 +11,20 @@ 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 _samplingScale;
|
||||||
private SerializedProperty _allowToModifyMeshShape;
|
private SerializedProperty _allowToModifyMeshShape;
|
||||||
private SerializedProperty _flip;
|
|
||||||
private SerializedProperty _customRoot;
|
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");
|
_samplingScale = serializedObject.FindProperty("m_SamplingScale");
|
||||||
_allowToModifyMeshShape = serializedObject.FindProperty("m_AllowToModifyMeshShape");
|
_allowToModifyMeshShape = serializedObject.FindProperty("m_AllowToModifyMeshShape");
|
||||||
_flip = serializedObject.FindProperty("m_Flip");
|
|
||||||
_customRoot = serializedObject.FindProperty("m_CustomRoot");
|
_customRoot = serializedObject.FindProperty("m_CustomRoot");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,27 +33,42 @@ namespace Coffee.UIEffects.Editors
|
|||||||
serializedObject.Update();
|
serializedObject.Update();
|
||||||
|
|
||||||
var r = EditorGUILayout.GetControlRect();
|
var r = EditorGUILayout.GetControlRect();
|
||||||
r.width -= 60;
|
r.width -= 120;
|
||||||
|
if (_preset.objectReferenceValue != null)
|
||||||
|
{
|
||||||
|
EditorGUI.PropertyField(r, _preset);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
EditorGUI.PropertyField(r, _target);
|
EditorGUI.PropertyField(r, _target);
|
||||||
|
}
|
||||||
|
|
||||||
// Preset button.
|
// Preset button.
|
||||||
r.x += r.width;
|
r.x += r.width;
|
||||||
r.width = 60;
|
r.width = 60;
|
||||||
if (GUI.Button(r, EditorGUIUtility.TrTempContent("Preset"), "MiniPopup"))
|
if (GUI.Button(r, EditorGUIUtility.TrTempContent("Preset"), "MiniPopup"))
|
||||||
{
|
{
|
||||||
UIEffectEditor.DropDownPreset(r, x => !x.builtin, p =>
|
UIEffectEditor.DropDownPreset(r, null, p =>
|
||||||
{
|
{
|
||||||
_target.objectReferenceValue = p;
|
_target.objectReferenceValue = null;
|
||||||
_target.serializedObject.ApplyModifiedProperties();
|
_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.
|
// Preset mode warning.
|
||||||
if (_target.objectReferenceValue is UIEffect targetEffect && !targetEffect.gameObject.scene.IsValid())
|
if (_target.objectReferenceValue is UIEffect targetEffect && !targetEffect.gameObject.scene.IsValid())
|
||||||
{
|
{
|
||||||
r = EditorGUILayout.GetControlRect();
|
r = EditorGUILayout.GetControlRect();
|
||||||
r.width -= EditorGUIUtility.labelWidth;
|
|
||||||
r.x += EditorGUIUtility.labelWidth;
|
|
||||||
EditorGUI.HelpBox(r, "The target effect is not in the scene. (Preset mode)", MessageType.Warning);
|
EditorGUI.HelpBox(r, "The target effect is not in the scene. (Preset mode)", MessageType.Warning);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,14 +79,14 @@ namespace Coffee.UIEffects.Editors
|
|||||||
|
|
||||||
EditorGUILayout.PropertyField(_samplingScale);
|
EditorGUILayout.PropertyField(_samplingScale);
|
||||||
EditorGUILayout.PropertyField(_allowToModifyMeshShape);
|
EditorGUILayout.PropertyField(_allowToModifyMeshShape);
|
||||||
EditorGUILayout.PropertyField(_flip);
|
|
||||||
|
|
||||||
if (_target.objectReferenceValue)
|
var parent = _target.objectReferenceValue ?? _preset.objectReferenceValue;
|
||||||
|
if (parent != null)
|
||||||
{
|
{
|
||||||
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 UIEffectEditor)?.DrawProperties();
|
(_uiEffectEditor as UIEffectPropertyEditor)?.DrawProperties();
|
||||||
EditorGUILayout.EndVertical();
|
EditorGUILayout.EndVertical();
|
||||||
EditorGUI.EndDisabledGroup();
|
EditorGUI.EndDisabledGroup();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,8 +90,9 @@ namespace Coffee.UIEffects.Editors
|
|||||||
|
|
||||||
private void DrawPlayer(UIEffectTweener tweener)
|
private void DrawPlayer(UIEffectTweener tweener)
|
||||||
{
|
{
|
||||||
if (!tweener) return;
|
if (tweener == null) return;
|
||||||
|
|
||||||
|
EditorGUI.BeginDisabledGroup(!tweener.enabled);
|
||||||
EditorGUILayout.Space(4);
|
EditorGUILayout.Space(4);
|
||||||
GUILayout.Label(GUIContent.none, "sv_iconselector_sep", GUILayout.ExpandWidth(true));
|
GUILayout.Label(GUIContent.none, "sv_iconselector_sep", GUILayout.ExpandWidth(true));
|
||||||
|
|
||||||
@@ -101,6 +102,7 @@ namespace Coffee.UIEffects.Editors
|
|||||||
if (GUI.Button(rResetTimeButton, EditorGUIUtility.IconContent("animation.firstkey"), "IconButton"))
|
if (GUI.Button(rResetTimeButton, EditorGUIUtility.IconContent("animation.firstkey"), "IconButton"))
|
||||||
{
|
{
|
||||||
ResetTime();
|
ResetTime();
|
||||||
|
EditorApplication.QueuePlayerLoopUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
var rPlayButton = new Rect(r.x + 20, r.y, 20, r.height);
|
var rPlayButton = new Rect(r.x + 20, r.y, 20, r.height);
|
||||||
@@ -148,12 +150,15 @@ namespace Coffee.UIEffects.Editors
|
|||||||
if (EditorGUI.EndChangeCheck())
|
if (EditorGUI.EndChangeCheck())
|
||||||
{
|
{
|
||||||
SetTime(time);
|
SetTime(time);
|
||||||
|
EditorApplication.QueuePlayerLoopUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Application.isPlaying && tweener.isActiveAndEnabled)
|
if (Application.isPlaying && tweener.isActiveAndEnabled)
|
||||||
{
|
{
|
||||||
Repaint();
|
Repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EditorGUI.EndDisabledGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static float DrawBackground(Rect r, float width, Color color)
|
private static float DrawBackground(Rect r, float width, Color color)
|
||||||
@@ -168,6 +173,7 @@ namespace Coffee.UIEffects.Editors
|
|||||||
{
|
{
|
||||||
foreach (var tweener in targets.OfType<UIEffectTweener>())
|
foreach (var tweener in targets.OfType<UIEffectTweener>())
|
||||||
{
|
{
|
||||||
|
if (!tweener.enabled) continue;
|
||||||
tweener.SetTime(time);
|
tweener.SetTime(time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -176,6 +182,7 @@ namespace Coffee.UIEffects.Editors
|
|||||||
{
|
{
|
||||||
foreach (var tweener in targets.OfType<UIEffectTweener>())
|
foreach (var tweener in targets.OfType<UIEffectTweener>())
|
||||||
{
|
{
|
||||||
|
if (!tweener.enabled) continue;
|
||||||
tweener.ResetTime(tweener.direction);
|
tweener.ResetTime(tweener.direction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -210,6 +217,7 @@ namespace Coffee.UIEffects.Editors
|
|||||||
_lastTime = EditorApplication.timeSinceStartup;
|
_lastTime = EditorApplication.timeSinceStartup;
|
||||||
foreach (var tweener in targets.OfType<UIEffectTweener>())
|
foreach (var tweener in targets.OfType<UIEffectTweener>())
|
||||||
{
|
{
|
||||||
|
if (!tweener.enabled) continue;
|
||||||
tweener.UpdateTime(tweener.direction == UIEffectTweener.Direction.Forward ? delta : -delta);
|
tweener.UpdateTime(tweener.direction == UIEffectTweener.Direction.Forward ? delta : -delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+268
-94
@@ -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)
|
||||||
@@ -20,10 +22,13 @@
|
|||||||
## 📝 Description <!-- omit in toc -->
|
## 📝 Description <!-- omit in toc -->
|
||||||
|
|
||||||
**_"Decorate your UI, simply and powerfully."_**
|
**_"Decorate your UI, simply and powerfully."_**
|
||||||
UIEffect is an open-source package that allows you to intuitively apply rich Unity 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)
|
||||||
@@ -37,13 +42,31 @@ Combine various filters, such as grayscale, blur, and dissolve, to decorate your
|
|||||||
- [🚀 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 SoftMaskForUGUI](#usage-with-softmaskforugui)
|
||||||
|
- [Usage with ShaderGraph](#usage-with-shadergraph)
|
||||||
|
- [Usage with Timeline](#usage-with-timeline)
|
||||||
|
- [Usage with Custom Shader](#usage-with-custom-shader)
|
||||||
- [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)
|
||||||
@@ -57,7 +80,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.
|
||||||
@@ -70,17 +93,19 @@ Combine various filters, such as grayscale, blur, and dissolve, to decorate your
|
|||||||
- **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).
|
- **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>
|
||||||
|
|
||||||
@@ -98,16 +123,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.6.0
|
openupm add com.coffee.ui-effect@5.12.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.6.0`
|
- e.g. `https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.12.0`
|
||||||
|
|
||||||
### Install via UPM (Manually)
|
### Install via UPM (Manually)
|
||||||
|
|
||||||
@@ -122,14 +147,14 @@ _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.6.0",`
|
- e.g. `"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src#5.12.0",`
|
||||||
|
|
||||||
### Install as Embedded Package
|
### Install as Embedded Package
|
||||||
|
|
||||||
1. Download the `Source code (zip)` file from [Releases](https://github.com/mob-sakai/UIEffect/releases) and
|
1. Download the `Source code (zip)` file from [Releases](https://github.com/mob-sakai/UIEffect/releases) and
|
||||||
extract it.
|
extract it.
|
||||||
2. Move the `<extracted_dir>/Packages/src` directory into your project's `Packages` directory.
|
2. Move the `<extracted_dir>/Packages/src` directory into your project's `Packages` directory.
|
||||||

|

|
||||||
- You can rename the `src` directory if needed.
|
- You can rename the `src` directory if needed.
|
||||||
- If you intend to fix bugs or add features, installing it as an embedded package is recommended.
|
- 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.
|
- To update the package, re-download it and replace the existing contents.
|
||||||
@@ -140,6 +165,54 @@ 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)
|
||||||
|
|
||||||
|
#### Install Additional Resources as Packages
|
||||||
|
|
||||||
|
Starting with v5.12.0, you can install optional resources as separate UPM packages instead of importing them as samples.
|
||||||
|
This lets you use the features you need without adding their assets to your project's `Assets/Samples` directory.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> Use the **same version as the UIEffect package**.
|
||||||
|
> If you have already imported a resource as a sample, delete its corresponding sample from `Assets/Samples/UI Effect/{version}` before installing the package.
|
||||||
|
|
||||||
|
The following optional packages are available from the OpenUPM registry.
|
||||||
|
Choose the package that matches your Unity version and render pipeline, then replace `5.12.0` with your UIEffect package version if needed.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# TextMeshPro support (Unity 2023.2 or earlier)
|
||||||
|
openupm add com.coffee.ui-effect.textmeshpro-legacy@5.12.0
|
||||||
|
# TextMeshPro support (Unity 2023.3 or later)
|
||||||
|
openupm add com.coffee.ui-effect.textmeshpro@5.12.0
|
||||||
|
# ShaderGraph support (Unity 6, Built-in Render Pipeline)
|
||||||
|
openupm add com.coffee.ui-effect.shadergraph-builtin@5.12.0
|
||||||
|
# ShaderGraph support (Unity 6, URP)
|
||||||
|
openupm add com.coffee.ui-effect.shadergraph-urp@5.12.0
|
||||||
|
# v4 compatible components
|
||||||
|
openupm add com.coffee.ui-effect.v4-compatible-components@5.12.0
|
||||||
|
```
|
||||||
|
|
||||||
|
For manual installation, add the desired package entries to your `Packages/manifest.json` file, install the package through Package Manager, or embed the package in your project.
|
||||||
|
The following is a valid `manifest.json` dependencies example; remove entries for resources you do not need.
|
||||||
|
Use only one TextMeshPro support package, and select the ShaderGraph package for your render pipeline.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
// TextMeshPro Support (2023.2 or earlier):
|
||||||
|
"com.coffee.ui-effect.textmeshpro-legacy": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src/Samples~/com.coffee.ui-effect.textmeshpro-legacy#5.12.0",
|
||||||
|
// TextMeshPro Support (2023.3, 6000.0 or later):
|
||||||
|
"com.coffee.ui-effect.textmeshpro": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src/Samples~/com.coffee.ui-effect.textmeshpro#5.12.0",
|
||||||
|
// ShaderGraph Support (Unity 6, Builtin):
|
||||||
|
"com.coffee.ui-effect.shadergraph-builtin": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src/Samples~/com.coffee.ui-effect.shadergraph-builtin#5.12.0",
|
||||||
|
// ShaderGraph Support (Unity 6, URP):
|
||||||
|
"com.coffee.ui-effect.shadergraph-urp": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src/Samples~/com.coffee.ui-effect.shadergraph-urp#5.12.0",
|
||||||
|
// v4 Compatible Components:
|
||||||
|
"com.coffee.ui-effect.v4-compatible-components": "https://github.com/mob-sakai/UIEffect.git?path=Packages/src/Samples~/com.coffee.ui-effect.v4-compatible-components#5.12.0",
|
||||||
|
...
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
@@ -159,14 +232,17 @@ If upgrading from UIEffect v4 to v5, note the following breaking changes:
|
|||||||
```
|
```
|
||||||
|
|
||||||
2. Import the `v4 Compatible Components` sample from the Package Manager window.
|
2. Import the `v4 Compatible Components` sample from the Package Manager window.
|
||||||

|
> [!TIP]
|
||||||
|
> "Additional Resources" can be installed as a package from v5.12.0 or later.
|
||||||
|
> For more information, please refer to the [Install Additional Resources](#import-additional-resources) section.
|
||||||
|
|
||||||
|
|
||||||
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` 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>
|
||||||
|
|
||||||
@@ -177,12 +253,23 @@ 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>
|
||||||
|
|
||||||
@@ -190,7 +277,7 @@ If upgrading from UIEffect v4 to v5, note the following breaking changes:
|
|||||||
|
|
||||||
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]
|
> [!TIP]
|
||||||
> From the top menu, you can load and save the editor presets or clear settings.
|
> From the top menu, you can load and save the editor presets or clear settings.
|
||||||
@@ -200,20 +287,20 @@ The `UIEffect` component applies visual effects to UI elements, allowing various
|
|||||||
|
|
||||||
#### Tone Filter
|
#### 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>
|
<br>
|
||||||
|
|
||||||
#### Color Filter
|
#### 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.
|
- **Color Glow**: Set the color to glow.
|
||||||
|
|
||||||
@@ -221,10 +308,10 @@ The `UIEffect` component applies visual effects to UI elements, allowing various
|
|||||||
|
|
||||||
#### Sampling Filter
|
#### 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).
|
||||||
- **Sampling Width**: The width of the sampling effect.
|
- **Sampling Width**: The width of the sampling effect.
|
||||||
|
|
||||||
@@ -232,37 +319,39 @@ The `UIEffect` component applies visual effects to UI elements, allowing various
|
|||||||
|
|
||||||
#### Transition Filter
|
#### Transition Filter
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- **Transition Filter**: `None`, `Fade`, `Cutoff`, `Dissolve`, `Shiny`, `Mask`, `Melt`, `Burn`, `Pattern`
|
- **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 Tex**: The texture used for the transition filter.
|
||||||
- **Scale**, **Offset**, **Speed**, **Rotation**, **Keep Aspect Ratio**, **Reverse**: Additional properties for the texture.
|
- **Scale**, **Offset**, **Speed**, **Rotation**, **Keep Aspect Ratio**, **Reverse**: Additional properties for the texture.
|
||||||
- NOTE: `Rotation` and `Keep Aspect Ratio` are shared with `Detail Filter`.
|
- ⚠️ 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 Width**: The width where the transition color is applied.
|
||||||
- **Transition Pattern Range**: The range of the pattern.
|
- **Transition Pattern Range**: The range of the pattern.
|
||||||
- **Transition Pattern Reverse**: Reverse 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**: 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**: The color of the transition.
|
||||||
- **Transition Color Glow**: Set the transition color to glow.
|
- **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.
|
- **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]
|
> [!TIP]
|
||||||
> **Transition Tex** applies transitions using its alpha channel.
|
> **Transition Tex** applies transitions using its alpha channel.
|
||||||
> If you use `Scale`, `Offset`, or `Speed`, set `Wrap Mode = Repeat` in the texture import settings.
|
> 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.
|
> For details, refer to the textures included in the built-in presets.
|
||||||
> 
|
> 
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
#### Target Mode
|
#### 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.
|
||||||
@@ -271,111 +360,122 @@ The `UIEffect` component applies visual effects to UI elements, allowing various
|
|||||||
|
|
||||||
#### Blend Type
|
#### Blend Type
|
||||||
|
|
||||||

|

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

|

|
||||||
- `Custom` blend type can be set using the `SrcBlend` and `DstBlend` properties.
|
- `Custom` blend type can be set using the `SrcBlend` and `DstBlend` properties.
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
#### Shadow Mode
|
#### 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**: Specifies the shadow color.
|
- **Shadow Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`, `Hsv Modifier`, `Contrast`
|
||||||
- **Shadow Color**: The color of the shadow.
|
- **Shadow Color**: The color of the shadow.
|
||||||
- **Shadow Color Glow**: Set the shadow color to glow.
|
- **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 Blur Intensity**: Intensity of the shadow or outline blur.
|
- **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>
|
<br>
|
||||||
|
|
||||||
#### Gradation Mode
|
#### Gradation Mode
|
||||||
|
|
||||||

|

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

|

|
||||||
- **Gradation Gradient**: The gradient of the gradation.
|
- **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 1**: The first color of the gradation.
|
||||||
- **Gradation Color 2**: The second 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 Offset**: The offset of the gradation range.
|
||||||
- **Gradation Scale**: The scale of the gradation range.
|
- **Gradation Scale**: The scale of the gradation range.
|
||||||
- **Gradation Rotation**: The rotation of the gradation range (`Angle` or `AngleGradient`).
|
- **Gradation Rotation** (`Angle` or `AngleGradient` only): The rotation of the gradation range.
|
||||||
|
- **Gradation Wrap Mode**: `Repaet`, `Clamp`, `Mirror`, `Mirror Once`
|
||||||
> [!TIP]
|
- **Gradation Reverse**: Reverse the gradient.
|
||||||
> `Horizontal Gradient` and `Vertical Gradient` divide the mesh horizontally or vertically and apply a gradient.
|
- **Keep Aspect Ratio**:
|
||||||
> This is very fast but only supports Full Rect.
|
- ⚠️ NOTE: `Keep Aspect Ratio` is shared with `Transition Filter` and `Gradation Mode` and `Detail Filter`.
|
||||||
> `Angle Gradient` divides the mesh at the specified angle and applies a gradient.
|
|
||||||
> It can be applied to meshes other than Full Rect because it applies the gradient according to the original mesh shape.
|
|
||||||
> `Gradation Gradient` has two modes, `Blend` and `Fixed`.
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
#### Edge Mode
|
#### Edge Mode
|
||||||
|
|
||||||

|

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

|

|
||||||
- **Edge Width**: The width of the edge.
|
- **Edge Width**: The width of the edge.
|
||||||
- **Edge Color Filter**: Specifies the edge color.
|
- **Edge Color Filter**: `None`, `Multiply`, `Additive`, `Subtractive`, `Replace`, `Multiply Luminance`, `Multiply Additive`, `Hsv Modifier`, `Contrast`
|
||||||
- **Edge Color**: The color of the edge.
|
- **Edge Color**: The color of the edge.
|
||||||
- **Edge Color Glow**: Set the shadow color to glow.
|
- **Edge Color Glow**: Set the shadow color to glow.
|
||||||
- **Edge Shiny Width**: The width of the edge shiny.
|
- **Edge Shiny Width**: The width of the edge shiny.
|
||||||
- **Edge Shiny Auto Play Speed**: The speed of the edge shiny (using shader side `_Time`).
|
- **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>
|
<br>
|
||||||
|
|
||||||
#### Detail Filter
|
#### Detail Filter
|
||||||
|
|
||||||

|

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

|

|
||||||
- **Detail Intensity**: 0.0 (no effect) - 1.0 (full effect).
|
- **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
|
- **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.
|
between these values, the stronger the softness effect.
|
||||||
- **Detail Tex**: The texture used for the transition filter.
|
- **Detail Tex**: The texture used for the transition filter.
|
||||||
- **Scale**, **Offset**, **Speed**, **Rotation**, **Keep Aspect Ratio**: Additional properties for the texture.
|
- **Scale**, **Offset**, **Speed**, **Rotation**, **Keep Aspect Ratio**: Additional properties for the texture.
|
||||||
- NOTE: `Rotation` and `Keep Aspect Ratio` are shared with `Transition Filter`.
|
- ⚠️ 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>
|
<br>
|
||||||
|
|
||||||
#### Others
|
#### Flip
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- **Sampling Scale**: The referencing scale during sampling.
|
- **Flip**: Combine the following flags.
|
||||||
- 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.
|
|
||||||
- **Flip**:
|
|
||||||
- `Nothing`
|
- `Nothing`
|
||||||
- `Horizontal`
|
- `Horizontal`
|
||||||
- `Vertical`
|
- `Vertical`
|
||||||
- `Effect`: Flip with the effect.
|
- `Effect`: Flip with the effect.
|
||||||
- `Shadow`: Flip with the shadow.
|
- `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]
|
> [!TIP]
|
||||||
> `Transition Filter`, `Gradation Filter`, and `Detail Filter` usually refer to their own `RectTransform` when applying effects.
|
> `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.
|
> 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.
|
> 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`.
|
||||||
|
|
||||||
@@ -406,7 +506,7 @@ You can preview the animation using the seek bar and play button.
|
|||||||
|
|
||||||
### 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.
|
||||||
|
|
||||||
@@ -414,40 +514,37 @@ The `UIEffectReplica` component applies visual effects to UI elements by replica
|
|||||||
> [!TIP]
|
> [!TIP]
|
||||||
> You can specify a preset as well as an instance as the target for `UIEffectReplica`.
|
> 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.
|
- **Custom Root**: Use the custom transform for some effects.
|
||||||
- **Sampling Scale**: Override the sampling scale.
|
- **Sampling Scale**: Override the sampling scale.
|
||||||
- **Allow To Modify Mesh Shape**: If enabled, the mesh shape can be modified.
|
- **Allow To Modify Mesh Shape**: If enabled, the mesh shape can be modified.
|
||||||
- **Flip**:
|
|
||||||
- `Nothing`
|
|
||||||
- `Horizontal`
|
|
||||||
- `Vertical`
|
|
||||||
- `Effect`: Flip the effect.
|
|
||||||
- `Shadow`: Flip the shadow.
|
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
### Usage with TextMeshPro
|
### Usage with TextMeshPro
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> "Additional Resources" can be installed as a package from v5.12.0 or later.
|
||||||
|
> For more information, please refer to the [Install Additional Resources](#import-additional-resources) section.
|
||||||
|
|
||||||
To use UIEffect with TextMeshPro, you need to import additional resources.
|
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.
|
When a shader included in the samples is requested, an import dialog will automatically appear.
|
||||||
Click the `Import` button.
|
Click the `Import` button.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Alternatively, you can manually import the resources by following 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 Effect` 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]
|
> [!TIP]
|
||||||
> `TextMeshPro Support` may change with updates to the UIEffect package.
|
> `TextMeshPro Support` may change with updates to the UIEffect package.
|
||||||
@@ -462,24 +559,80 @@ Alternatively, you can manually import the resources by following these steps:
|
|||||||
|
|
||||||
### Usage with SoftMaskForUGUI
|
### Usage with SoftMaskForUGUI
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
[SoftMaskForUGUI](https://github.com/mob-sakai/SoftMaskForUGUI) is a package that allows you to create soft masks for UI elements.
|
[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.6.0+)`.
|
`SoftMaskForUGUI (v3.3.0+)` supports `UIEffect (v5.7.0+)`.
|
||||||
When a shader included in the samples is requested, an import dialog will automatically appear.
|
When a shader included in the samples is requested, an import dialog will automatically appear.
|
||||||
Click the `Import` button.
|
Click the `Import` button.
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
|
### Usage with ShaderGraph
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> "Additional Resources" can be installed as a package from v5.12.0 or later.
|
||||||
|
> For more information, please refer to the [Install Additional Resources](#import-additional-resources) section.
|
||||||
|
|
||||||
|
⚠️ ShaderGraph support is available only in Unity 2023.2/6.0 or later.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
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>
|
||||||
|
|
||||||
|
### Usage with Custom Shader
|
||||||
|
|
||||||
|
To make your custom shader support UIEffect, it must satisfy the following requirements.
|
||||||
|
Refer to the sections enclosed by `==== UIEFFECT START ===` and `==== UIEFFECT END ====` in the built-in `Hidden/UI/Default (UIEffect)` shader included in the package.
|
||||||
|
|
||||||
|
https://github.com/mob-sakai/UIEffect/blob/main/Packages/src/Shaders/UIEffect.shader
|
||||||
|
|
||||||
|
- Blend: `Blend [_SrcBlend] [_DstBlend]`
|
||||||
|
- Shader variants: `#pragma shader_feature_local_fragment ***`
|
||||||
|
- Vertex shader input structure: `float4 uvMask : TEXCOORD***;`
|
||||||
|
- Vertex shader: `OUT.uvMask = v.uvMask;` and `OUT.worldPosition = v.vertex;`
|
||||||
|
- Pixel shader input structure: `float4 uvMask : TEXCOORD***;` and `float4 worldPosition : TEXCOORD***;`
|
||||||
|
- UIEffect micro pixel shader: a function that returns the color of the specified pixel and has the signature `half4 uieffect_frag(v2f IN, float2 uv)`.
|
||||||
|
- Pixel shader input structure name definition: `#define UIEFFECT_FRAG_STRUCT v2f`
|
||||||
|
- Include the UIEffect library: `#include "Packages/com.coffee.ui-effect/Shaders/UIEffect.cginc"`
|
||||||
|
- Pixel shader: `half4 c = uieffect(IN.texcoord, IN.uvMask, IN.worldPosition, IN);`
|
||||||
|
|
||||||
|
<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.
|
||||||
|
|
||||||
- Click the `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 `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.
|
- 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.
|
||||||
@@ -497,7 +650,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
|
||||||
@@ -517,16 +670,23 @@ 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`)
|
||||||
|
|
||||||
#### Settings
|
#### Settings
|
||||||
|
|
||||||
- **Transform Sensitivity**: `Low`, `Medium`, `High`
|
|
||||||
- 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.
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> - 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
|
#### Editor
|
||||||
|
|
||||||
- **Use HDR Color Picker**: If enabled, the HDR color picker will be used in the inspector.
|
- **Use HDR Color Picker**: If enabled, the HDR color picker will be used in the inspector.
|
||||||
@@ -551,6 +711,21 @@ You can adjust the project-wide settings for UIEffect. (`Edit > Project Settings
|
|||||||
> - The setting file is usually saved in `Assets/ProjectSettings/UIEffectProjectSettings.asset`. Include this file in your version control system.
|
> - 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`.
|
> - The setting file is automatically added as a preloaded asset in `ProjectSettings/ProjectSettings.asset`.
|
||||||
|
|
||||||
|
#### Advanced
|
||||||
|
|
||||||
|
- **Pre Load Settings In Build**: When enabled, this settings asset will be added to `PlayerSettings.preloadedAssets` in build.
|
||||||
|
- When disable, you should load this settings via `Resources`, `AssetBundles` or `Addressables` to use `UIEffect`.
|
||||||
|
- You can overwrite the settings by re-enabling `UIEffectProjectSettings`. This allows you to hot update shader variants and presets.
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
private static IEnumerator HotUpdateCoroutine()
|
||||||
|
{
|
||||||
|
const string k_SettingsAddress = "Assets/ProjectSettings/UIEffectProjectSettings.asset";
|
||||||
|
yield return Addressables.LoadAssetAsync<UIEffectProjectSettings>(k_SettingsAddress);
|
||||||
|
while (UIEffectProjectSettings.shaderVariantCollection.WarmUpProgressively(5) == false) yield return null;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
### :warning: Limitations
|
### :warning: Limitations
|
||||||
@@ -595,7 +770,6 @@ Your support allows me to dedicate more time to development. 😊
|
|||||||
## License
|
## License
|
||||||
|
|
||||||
* MIT
|
* MIT
|
||||||
* © UTJ/UCL
|
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -26,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,
|
||||||
@@ -48,6 +59,7 @@ namespace Coffee.UIEffects
|
|||||||
Mask = 5,
|
Mask = 5,
|
||||||
Melt = 6,
|
Melt = 6,
|
||||||
Burn = 7,
|
Burn = 7,
|
||||||
|
Blaze = 9,
|
||||||
Pattern = 8
|
Pattern = 8
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,8 +111,14 @@ namespace Coffee.UIEffects
|
|||||||
HorizontalGradient = 2,
|
HorizontalGradient = 2,
|
||||||
Vertical = 3,
|
Vertical = 3,
|
||||||
VerticalGradient = 4,
|
VerticalGradient = 4,
|
||||||
|
Radial = 5,
|
||||||
|
|
||||||
|
[Obsolete]
|
||||||
RadialFast = 5,
|
RadialFast = 5,
|
||||||
|
|
||||||
|
[Obsolete]
|
||||||
RadialDetail = 6,
|
RadialDetail = 6,
|
||||||
|
RadialGradient = 12,
|
||||||
Diagonal = 11,
|
Diagonal = 11,
|
||||||
DiagonalToRightBottom = 7,
|
DiagonalToRightBottom = 7,
|
||||||
DiagonalToLeftBottom = 8,
|
DiagonalToLeftBottom = 8,
|
||||||
@@ -114,6 +132,7 @@ namespace Coffee.UIEffects
|
|||||||
Masking = 1,
|
Masking = 1,
|
||||||
Multiply = 2,
|
Multiply = 2,
|
||||||
Additive = 3,
|
Additive = 3,
|
||||||
|
Subtractive = 6,
|
||||||
Replace = 4,
|
Replace = 4,
|
||||||
MultiplyAdditive = 5
|
MultiplyAdditive = 5
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,33 @@ namespace Coffee.UIEffectInternal
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal static class ComponentExtensions
|
internal static class ComponentExtensions
|
||||||
{
|
{
|
||||||
|
#if !UNITY_2019_2_OR_NEWER
|
||||||
|
public static bool TryGetComponent<T>(this GameObject self, out T component)
|
||||||
|
where T : Component
|
||||||
|
{
|
||||||
|
if (self == null)
|
||||||
|
{
|
||||||
|
component = null;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
component = self.GetComponent<T>();
|
||||||
|
return component != null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool TryGetComponent<T>(this Component self, out T component)
|
||||||
|
where T : Component
|
||||||
|
{
|
||||||
|
if (self == null)
|
||||||
|
{
|
||||||
|
component = null;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return self.gameObject.TryGetComponent(out component);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get components in children of a specific type in the hierarchy of a GameObject.
|
/// Get components in children of a specific type in the hierarchy of a GameObject.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -31,14 +58,17 @@ namespace Coffee.UIEffectInternal
|
|||||||
public static void GetComponentsInChildren<T>(this Component self, List<T> results, int depth)
|
public static void GetComponentsInChildren<T>(this Component self, List<T> results, int depth)
|
||||||
where T : Component
|
where T : Component
|
||||||
{
|
{
|
||||||
|
if (results == null) return;
|
||||||
|
|
||||||
results.Clear();
|
results.Clear();
|
||||||
|
if (self == null) return;
|
||||||
self.GetComponentsInChildren_Internal(results, depth);
|
self.GetComponentsInChildren_Internal(results, depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void GetComponentsInChildren_Internal<T>(this Component self, List<T> results, int depth)
|
private static void GetComponentsInChildren_Internal<T>(this Component self, List<T> results, int depth)
|
||||||
where T : Component
|
where T : Component
|
||||||
{
|
{
|
||||||
if (!self || results == null || depth < 0) return;
|
if (self == null || results == null || depth < 0) return;
|
||||||
|
|
||||||
var tr = self.transform;
|
var tr = self.transform;
|
||||||
if (tr.TryGetComponent<T>(out var t))
|
if (tr.TryGetComponent<T>(out var t))
|
||||||
@@ -59,7 +89,7 @@ namespace Coffee.UIEffectInternal
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static T GetOrAddComponent<T>(this Component self) where T : Component
|
public static T GetOrAddComponent<T>(this Component self) where T : Component
|
||||||
{
|
{
|
||||||
if (!self) return null;
|
if (self == null) return null;
|
||||||
return self.TryGetComponent<T>(out var component)
|
return self.TryGetComponent<T>(out var component)
|
||||||
? component
|
? component
|
||||||
: self.gameObject.AddComponent<T>();
|
: self.gameObject.AddComponent<T>();
|
||||||
@@ -70,9 +100,11 @@ namespace Coffee.UIEffectInternal
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static T GetRootComponent<T>(this Component self) where T : Component
|
public static T GetRootComponent<T>(this Component self) where T : Component
|
||||||
{
|
{
|
||||||
|
if (self == null) return null;
|
||||||
|
|
||||||
T component = null;
|
T component = null;
|
||||||
var transform = self.transform;
|
var transform = self.transform;
|
||||||
while (transform)
|
while (transform != null)
|
||||||
{
|
{
|
||||||
if (transform.TryGetComponent<T>(out var c))
|
if (transform.TryGetComponent<T>(out var c))
|
||||||
{
|
{
|
||||||
@@ -92,8 +124,10 @@ namespace Coffee.UIEffectInternal
|
|||||||
Predicate<T> valid)
|
Predicate<T> valid)
|
||||||
where T : Component
|
where T : Component
|
||||||
{
|
{
|
||||||
|
if (self == null || valid == null) return null;
|
||||||
|
|
||||||
var tr = includeSelf ? self.transform : self.transform.parent;
|
var tr = includeSelf ? self.transform : self.transform.parent;
|
||||||
while (tr)
|
while (tr != null)
|
||||||
{
|
{
|
||||||
if (tr.TryGetComponent<T>(out var c) && valid(c)) return c;
|
if (tr.TryGetComponent<T>(out var c) && valid(c)) return c;
|
||||||
if (tr == stopAfter) return null;
|
if (tr == stopAfter) return null;
|
||||||
@@ -166,11 +200,11 @@ namespace Coffee.UIEffectInternal
|
|||||||
#if !UNITY_2021_2_OR_NEWER && !UNITY_2020_3_45 && !UNITY_2020_3_46 && !UNITY_2020_3_47 && !UNITY_2020_3_48
|
#if !UNITY_2021_2_OR_NEWER && !UNITY_2020_3_45 && !UNITY_2020_3_46 && !UNITY_2020_3_47 && !UNITY_2020_3_48
|
||||||
public static T GetComponentInParent<T>(this Component self, bool includeInactive) where T : Component
|
public static T GetComponentInParent<T>(this Component self, bool includeInactive) where T : Component
|
||||||
{
|
{
|
||||||
if (!self) return null;
|
if (self == null) return null;
|
||||||
if (!includeInactive) return self.GetComponentInParent<T>();
|
if (!includeInactive) return self.GetComponentInParent<T>();
|
||||||
|
|
||||||
var current = self.transform;
|
var current = self.transform;
|
||||||
while (current)
|
while (current != null)
|
||||||
{
|
{
|
||||||
if (current.TryGetComponent<T>(out var c)) return c;
|
if (current.TryGetComponent<T>(out var c)) return c;
|
||||||
current = current.parent;
|
current = current.parent;
|
||||||
@@ -186,7 +220,7 @@ namespace Coffee.UIEffectInternal
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal static bool CanConvertTo<T>(this Object context) where T : MonoBehaviour
|
internal static bool CanConvertTo<T>(this Object context) where T : MonoBehaviour
|
||||||
{
|
{
|
||||||
return context && context.GetType() != typeof(T);
|
return context != null && context.GetType() != typeof(T);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace Coffee.UIEffectInternal
|
|||||||
mesh => mesh,
|
mesh => mesh,
|
||||||
mesh =>
|
mesh =>
|
||||||
{
|
{
|
||||||
if (mesh)
|
if (mesh != null)
|
||||||
{
|
{
|
||||||
mesh.Clear();
|
mesh.Clear();
|
||||||
}
|
}
|
||||||
@@ -37,7 +37,7 @@ namespace Coffee.UIEffectInternal
|
|||||||
|
|
||||||
public static void CopyTo(this Mesh self, Mesh dst)
|
public static void CopyTo(this Mesh self, Mesh dst)
|
||||||
{
|
{
|
||||||
if (!self || !dst) return;
|
if (self == null || dst == null) return;
|
||||||
|
|
||||||
var vector3List = InternalListPool<Vector3>.Rent();
|
var vector3List = InternalListPool<Vector3>.Rent();
|
||||||
var vector4List = InternalListPool<Vector4>.Rent();
|
var vector4List = InternalListPool<Vector4>.Rent();
|
||||||
@@ -80,9 +80,16 @@ namespace Coffee.UIEffectInternal
|
|||||||
InternalListPool<int>.Return(ref intList);
|
InternalListPool<int>.Return(ref intList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void CopyTo(this VertexHelper self, Mesh dst)
|
||||||
|
{
|
||||||
|
if (self == null || dst == null) return;
|
||||||
|
|
||||||
|
self.FillMesh(dst);
|
||||||
|
}
|
||||||
|
|
||||||
public static void CopyTo(this Mesh self, VertexHelper dst)
|
public static void CopyTo(this Mesh self, VertexHelper dst)
|
||||||
{
|
{
|
||||||
if (!self || dst == null) return;
|
if (self == null || dst == null) return;
|
||||||
|
|
||||||
var vertexCount = self.vertexCount;
|
var vertexCount = self.vertexCount;
|
||||||
var indexCount = self.triangles.Length;
|
var indexCount = self.triangles.Length;
|
||||||
@@ -91,12 +98,14 @@ namespace Coffee.UIEffectInternal
|
|||||||
|
|
||||||
public static void CopyTo(this Mesh self, VertexHelper dst, int vertexCount, int indexCount)
|
public static void CopyTo(this Mesh self, VertexHelper dst, int vertexCount, int indexCount)
|
||||||
{
|
{
|
||||||
if (!self || dst == null) return;
|
if (self == null || dst == null) return;
|
||||||
|
|
||||||
var positions = InternalListPool<Vector3>.Rent();
|
var positions = InternalListPool<Vector3>.Rent();
|
||||||
var normals = InternalListPool<Vector3>.Rent();
|
var normals = InternalListPool<Vector3>.Rent();
|
||||||
var uv0 = InternalListPool<Vector4>.Rent();
|
var uv0 = InternalListPool<Vector4>.Rent();
|
||||||
var uv1 = InternalListPool<Vector4>.Rent();
|
var uv1 = InternalListPool<Vector4>.Rent();
|
||||||
|
var uv2 = InternalListPool<Vector4>.Rent();
|
||||||
|
var uv3 = InternalListPool<Vector4>.Rent();
|
||||||
var tangents = InternalListPool<Vector4>.Rent();
|
var tangents = InternalListPool<Vector4>.Rent();
|
||||||
var colors = InternalListPool<Color32>.Rent();
|
var colors = InternalListPool<Color32>.Rent();
|
||||||
var indices = InternalListPool<int>.Rent();
|
var indices = InternalListPool<int>.Rent();
|
||||||
@@ -104,6 +113,8 @@ namespace Coffee.UIEffectInternal
|
|||||||
self.GetColors(colors);
|
self.GetColors(colors);
|
||||||
self.GetUVs(0, uv0);
|
self.GetUVs(0, uv0);
|
||||||
self.GetUVs(1, uv1);
|
self.GetUVs(1, uv1);
|
||||||
|
self.GetUVs(2, uv2);
|
||||||
|
self.GetUVs(3, uv3);
|
||||||
self.GetNormals(normals);
|
self.GetNormals(normals);
|
||||||
self.GetTangents(tangents);
|
self.GetTangents(tangents);
|
||||||
self.GetIndices(indices, 0);
|
self.GetIndices(indices, 0);
|
||||||
@@ -112,10 +123,11 @@ namespace Coffee.UIEffectInternal
|
|||||||
for (var i = 0; i < vertexCount; i++)
|
for (var i = 0; i < vertexCount; i++)
|
||||||
{
|
{
|
||||||
dst.AddVert(positions.GetOrDefault(i), colors.GetOrDefault(i), uv0.GetOrDefault(i), uv1.GetOrDefault(i),
|
dst.AddVert(positions.GetOrDefault(i), colors.GetOrDefault(i), uv0.GetOrDefault(i), uv1.GetOrDefault(i),
|
||||||
normals.GetOrDefault(i), tangents.GetOrDefault(i));
|
uv2.GetOrDefault(i), uv3.GetOrDefault(i), normals.GetOrDefault(i), tangents.GetOrDefault(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < indexCount - 2; 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]);
|
||||||
}
|
}
|
||||||
@@ -124,6 +136,8 @@ namespace Coffee.UIEffectInternal
|
|||||||
InternalListPool<Vector3>.Return(ref normals);
|
InternalListPool<Vector3>.Return(ref normals);
|
||||||
InternalListPool<Vector4>.Return(ref uv0);
|
InternalListPool<Vector4>.Return(ref uv0);
|
||||||
InternalListPool<Vector4>.Return(ref uv1);
|
InternalListPool<Vector4>.Return(ref uv1);
|
||||||
|
InternalListPool<Vector4>.Return(ref uv2);
|
||||||
|
InternalListPool<Vector4>.Return(ref uv3);
|
||||||
InternalListPool<Vector4>.Return(ref tangents);
|
InternalListPool<Vector4>.Return(ref tangents);
|
||||||
InternalListPool<Color32>.Return(ref colors);
|
InternalListPool<Color32>.Return(ref colors);
|
||||||
InternalListPool<int>.Return(ref indices);
|
InternalListPool<int>.Return(ref indices);
|
||||||
|
|||||||
@@ -14,20 +14,49 @@ namespace Coffee.UIEffectInternal
|
|||||||
public abstract class PreloadedProjectSettings : ScriptableObject
|
public abstract class PreloadedProjectSettings : ScriptableObject
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
{
|
{
|
||||||
private class Postprocessor : AssetPostprocessor
|
[Tooltip("When enabled, this settings asset will be added to PlayerSettings.preloadedAssets in build.\n\n" +
|
||||||
|
"When disable, you should load this settings via Resources, AssetBundles or Addressables to use.")]
|
||||||
|
[SerializeField]
|
||||||
|
[Header("Advanced")]
|
||||||
|
[HideInInspector]
|
||||||
|
private bool m_PreLoadSettingsInBuild = true;
|
||||||
|
|
||||||
|
protected static bool s_BuildingPlayer;
|
||||||
|
|
||||||
|
private class EditorEvents : AssetPostprocessor, IPreprocessBuildWithReport, IPostprocessBuildWithReport
|
||||||
{
|
{
|
||||||
|
int IOrderedCallback.callbackOrder => 0;
|
||||||
|
|
||||||
private static void OnPostprocessAllAssets(string[] _, string[] __, string[] ___, string[] ____)
|
private static void OnPostprocessAllAssets(string[] _, string[] __, string[] ___, string[] ____)
|
||||||
{
|
{
|
||||||
Initialize();
|
Initialize();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private class PreprocessBuildWithReport : IPreprocessBuildWithReport
|
|
||||||
{
|
|
||||||
int IOrderedCallback.callbackOrder => 0;
|
|
||||||
|
|
||||||
void IPreprocessBuildWithReport.OnPreprocessBuild(BuildReport report)
|
void IPreprocessBuildWithReport.OnPreprocessBuild(BuildReport report)
|
||||||
{
|
{
|
||||||
|
AssetDatabase.Refresh();
|
||||||
|
Initialize();
|
||||||
|
s_BuildingPlayer = true;
|
||||||
|
|
||||||
|
foreach (var t in TypeCache.GetTypesDerivedFrom(typeof(PreloadedProjectSettings<>)))
|
||||||
|
{
|
||||||
|
var settings = GetDefaultSettings(t);
|
||||||
|
if (settings == null || settings.m_PreLoadSettingsInBuild) continue;
|
||||||
|
|
||||||
|
PlayerSettings.SetPreloadedAssets(
|
||||||
|
PlayerSettings.GetPreloadedAssets()
|
||||||
|
.Where(x => x != null && x.GetType() != t)
|
||||||
|
.ToArray());
|
||||||
|
|
||||||
|
Debug.Log($"[PreloadedProjectSettings] Build started: removed '{settings.name}' " +
|
||||||
|
$"({t.Name}) from PreloadedAssets. " +
|
||||||
|
$"It will be restored after build completes.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void IPostprocessBuildWithReport.OnPostprocessBuild(BuildReport report)
|
||||||
|
{
|
||||||
|
s_BuildingPlayer = false;
|
||||||
Initialize();
|
Initialize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -37,18 +66,21 @@ namespace Coffee.UIEffectInternal
|
|||||||
foreach (var t in TypeCache.GetTypesDerivedFrom(typeof(PreloadedProjectSettings<>)))
|
foreach (var t in TypeCache.GetTypesDerivedFrom(typeof(PreloadedProjectSettings<>)))
|
||||||
{
|
{
|
||||||
var defaultSettings = GetDefaultSettings(t);
|
var defaultSettings = GetDefaultSettings(t);
|
||||||
if (!defaultSettings)
|
if (defaultSettings == null)
|
||||||
|
{
|
||||||
|
if (!s_BuildingPlayer)
|
||||||
{
|
{
|
||||||
// When create a new instance, automatically set it as default settings.
|
// When create a new instance, automatically set it as default settings.
|
||||||
defaultSettings = CreateInstance(t) as PreloadedProjectSettings;
|
defaultSettings = CreateInstance(t) as PreloadedProjectSettings;
|
||||||
SetDefaultSettings(defaultSettings);
|
SetDefaultSettings(defaultSettings);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (GetPreloadedSettings(t).Length != 1)
|
else if (GetPreloadedSettings(t).Length != 1)
|
||||||
{
|
{
|
||||||
SetDefaultSettings(defaultSettings);
|
if (!s_BuildingPlayer) SetDefaultSettings(defaultSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defaultSettings)
|
if (defaultSettings != null)
|
||||||
{
|
{
|
||||||
defaultSettings.OnInitialize();
|
defaultSettings.OnInitialize();
|
||||||
}
|
}
|
||||||
@@ -66,22 +98,22 @@ namespace Coffee.UIEffectInternal
|
|||||||
private static Object[] GetPreloadedSettings(Type type)
|
private static Object[] GetPreloadedSettings(Type type)
|
||||||
{
|
{
|
||||||
return PlayerSettings.GetPreloadedAssets()
|
return PlayerSettings.GetPreloadedAssets()
|
||||||
.Where(x => x && x.GetType() == type)
|
.Where(x => x != null && x.GetType() == type)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static PreloadedProjectSettings GetDefaultSettings(Type type)
|
protected static PreloadedProjectSettings GetDefaultSettings(Type type)
|
||||||
{
|
{
|
||||||
return GetPreloadedSettings(type).FirstOrDefault() as PreloadedProjectSettings
|
return GetPreloadedSettings(type).FirstOrDefault() as PreloadedProjectSettings
|
||||||
?? AssetDatabase.FindAssets($"t:{nameof(PreloadedProjectSettings)}")
|
?? AssetDatabase.FindAssets($"t:{type.Name}")
|
||||||
.Select(AssetDatabase.GUIDToAssetPath)
|
.Select(AssetDatabase.GUIDToAssetPath)
|
||||||
.Select(AssetDatabase.LoadAssetAtPath<PreloadedProjectSettings>)
|
.Select(AssetDatabase.LoadAssetAtPath<PreloadedProjectSettings>)
|
||||||
.FirstOrDefault(x => x && x.GetType() == type);
|
.FirstOrDefault(x => x != null && x.GetType() == type);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static void SetDefaultSettings(PreloadedProjectSettings asset)
|
protected static void SetDefaultSettings(PreloadedProjectSettings asset)
|
||||||
{
|
{
|
||||||
if (!asset) return;
|
if (asset == null) return;
|
||||||
|
|
||||||
var type = asset.GetType();
|
var type = asset.GetType();
|
||||||
if (string.IsNullOrEmpty(AssetDatabase.GetAssetPath(asset)))
|
if (string.IsNullOrEmpty(AssetDatabase.GetAssetPath(asset)))
|
||||||
@@ -103,7 +135,7 @@ namespace Coffee.UIEffectInternal
|
|||||||
var preloadedAssets = PlayerSettings.GetPreloadedAssets();
|
var preloadedAssets = PlayerSettings.GetPreloadedAssets();
|
||||||
var projectSettings = GetPreloadedSettings(type);
|
var projectSettings = GetPreloadedSettings(type);
|
||||||
PlayerSettings.SetPreloadedAssets(preloadedAssets
|
PlayerSettings.SetPreloadedAssets(preloadedAssets
|
||||||
.Where(x => x)
|
.Where(x => x != null)
|
||||||
.Except(projectSettings.Except(new[] { asset }))
|
.Except(projectSettings.Except(new[] { asset }))
|
||||||
.Append(asset)
|
.Append(asset)
|
||||||
.Distinct()
|
.Distinct()
|
||||||
@@ -120,6 +152,37 @@ namespace Coffee.UIEffectInternal
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal abstract class PreloadedProjectSettingsEditor : Editor
|
||||||
|
{
|
||||||
|
private SerializedProperty _preLoadSettingsInBuild;
|
||||||
|
|
||||||
|
protected virtual void OnEnable()
|
||||||
|
{
|
||||||
|
_preLoadSettingsInBuild = serializedObject.FindProperty("m_PreLoadSettingsInBuild");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void DrawPreLoadSettingsInBuild(string packageName)
|
||||||
|
{
|
||||||
|
if (_preLoadSettingsInBuild == null) return;
|
||||||
|
|
||||||
|
EditorGUILayout.PropertyField(_preLoadSettingsInBuild);
|
||||||
|
if (!_preLoadSettingsInBuild.boolValue)
|
||||||
|
{
|
||||||
|
EditorGUILayout.BeginHorizontal();
|
||||||
|
EditorGUILayout.HelpBox(
|
||||||
|
$"{target.GetType().Name} asset will not be built in.\n" +
|
||||||
|
$"please load manually from Resources, AssetBundle, or Addressables before using {packageName}.",
|
||||||
|
MessageType.Warning);
|
||||||
|
if (GUILayout.Button("Ping"))
|
||||||
|
{
|
||||||
|
EditorGUIUtility.PingObject(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.EndHorizontal();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -133,31 +196,33 @@ namespace Coffee.UIEffectInternal
|
|||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
private string _jsonText;
|
private string _jsonText;
|
||||||
|
|
||||||
public static bool hasInstance => s_Instance;
|
public static bool hasInstance => s_Instance != null;
|
||||||
|
|
||||||
public static T instance
|
public static T instance
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (s_Instance) return s_Instance;
|
if (s_Instance != null) return s_Instance;
|
||||||
|
|
||||||
s_Instance = GetDefaultSettings(typeof(T)) as T;
|
s_Instance = GetDefaultSettings(typeof(T)) as T;
|
||||||
if (s_Instance) return s_Instance;
|
if (s_Instance != null) return s_Instance;
|
||||||
|
|
||||||
s_Instance = CreateInstance<T>();
|
s_Instance = CreateInstance<T>();
|
||||||
if (!s_Instance)
|
if (s_Instance == null)
|
||||||
{
|
{
|
||||||
s_Instance = null;
|
s_Instance = null;
|
||||||
return s_Instance;
|
return s_Instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetDefaultSettings(s_Instance);
|
if (!s_BuildingPlayer) SetDefaultSettings(s_Instance);
|
||||||
return s_Instance;
|
return s_Instance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnPlayModeStateChanged(PlayModeStateChange state)
|
private void OnPlayModeStateChanged(PlayModeStateChange state)
|
||||||
{
|
{
|
||||||
|
if (this == null) return;
|
||||||
|
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case PlayModeStateChange.ExitingEditMode:
|
case PlayModeStateChange.ExitingEditMode:
|
||||||
@@ -174,7 +239,7 @@ namespace Coffee.UIEffectInternal
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
public static T instance => s_Instance ? s_Instance : s_Instance = CreateInstance<T>();
|
public static T instance => s_Instance != null ? s_Instance : s_Instance = CreateInstance<T>();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -183,17 +248,21 @@ namespace Coffee.UIEffectInternal
|
|||||||
protected virtual void OnEnable()
|
protected virtual void OnEnable()
|
||||||
{
|
{
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
var isDefaultSettings = !s_Instance || s_Instance == this || GetDefaultSettings(typeof(T)) == this;
|
var isDefaultSettings = s_Instance == null || s_Instance == this || GetDefaultSettings(typeof(T)) == this;
|
||||||
if (!isDefaultSettings)
|
if (!isDefaultSettings)
|
||||||
{
|
{
|
||||||
DestroyImmediate(this, true);
|
DestroyImmediate(this, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EditorApplication.playModeStateChanged -= OnPlayModeStateChanged;
|
||||||
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
||||||
|
#else
|
||||||
|
if (s_Instance != null && s_Instance != this)
|
||||||
|
{
|
||||||
|
Destroy(s_Instance);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (s_Instance) return;
|
|
||||||
s_Instance = this as T;
|
s_Instance = this as T;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -222,18 +291,22 @@ namespace Coffee.UIEffectInternal
|
|||||||
|
|
||||||
public override void OnGUI(string searchContext)
|
public override void OnGUI(string searchContext)
|
||||||
{
|
{
|
||||||
if (!_target)
|
if (_target == null)
|
||||||
{
|
{
|
||||||
if (_editor)
|
if (_editor != null)
|
||||||
{
|
{
|
||||||
DestroyImmediate(_editor);
|
DestroyImmediate(_editor);
|
||||||
_editor = null;
|
_editor = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
_target = instance;
|
_target = instance;
|
||||||
|
if (_target == null) return;
|
||||||
|
|
||||||
_editor = Editor.CreateEditor(_target);
|
_editor = Editor.CreateEditor(_target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_editor == null) return;
|
||||||
|
|
||||||
_editor.OnInspectorGUI();
|
_editor.OnInspectorGUI();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,21 +20,23 @@ namespace Coffee.UIEffectInternal
|
|||||||
UpdateTmpCgincPath();
|
UpdateTmpCgincPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void OnPostprocessAllAssets(string[] _, string[] __, string[] ___, string[] ____)
|
private static void OnPostprocessAllAssets(string[] imported, string[] __, string[] ___, string[] ____)
|
||||||
|
{
|
||||||
|
if (imported.Any(x => x.EndsWith(".cginc") || x.EndsWith(".shader")))
|
||||||
{
|
{
|
||||||
UpdateTmpCgincPath();
|
UpdateTmpCgincPath();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static void UpdateTmpCgincPath()
|
private static void UpdateTmpCgincPath()
|
||||||
{
|
{
|
||||||
if (s_CgincPattern == null || s_ShaderNames == null || s_ShaderNames.Length == 0) return;
|
if (s_CgincPattern == null || s_ShaderNames == null || s_ShaderNames.Length == 0) return;
|
||||||
|
|
||||||
AssetDatabase.StartAssetEditing();
|
|
||||||
string[] cgincs = null;
|
string[] cgincs = null;
|
||||||
foreach (var shaderName in s_ShaderNames)
|
foreach (var shaderName in s_ShaderNames)
|
||||||
{
|
{
|
||||||
var shader = Shader.Find(shaderName);
|
var shader = Shader.Find(shaderName);
|
||||||
if (!shader) continue;
|
if (shader == null) continue;
|
||||||
|
|
||||||
var hasCgincError = ShaderUtil.GetShaderMessages(shader)
|
var hasCgincError = ShaderUtil.GetShaderMessages(shader)
|
||||||
.Any(x => Regex.IsMatch(x.message, $"Couldn't open include file.*{s_CgincPattern}"));
|
.Any(x => Regex.IsMatch(x.message, $"Couldn't open include file.*{s_CgincPattern}"));
|
||||||
@@ -47,8 +49,6 @@ namespace Coffee.UIEffectInternal
|
|||||||
|
|
||||||
UpdateTmpCgincPath(shader, cgincs);
|
UpdateTmpCgincPath(shader, cgincs);
|
||||||
}
|
}
|
||||||
|
|
||||||
AssetDatabase.StopAssetEditing();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void UpdateTmpCgincPath(Shader shader, string[] cgincs)
|
private static void UpdateTmpCgincPath(Shader shader, string[] cgincs)
|
||||||
|
|||||||
@@ -51,6 +51,8 @@ namespace Coffee.UIEffectInternal
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected void Invoke(Action<T> callback)
|
protected void Invoke(Action<T> callback)
|
||||||
{
|
{
|
||||||
|
if (callback == null) return;
|
||||||
|
|
||||||
var node = _delegates.First;
|
var node = _delegates.First;
|
||||||
while (node != null)
|
while (node != null)
|
||||||
{
|
{
|
||||||
@@ -66,11 +68,6 @@ namespace Coffee.UIEffectInternal
|
|||||||
node = node.Next;
|
node = node.Next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Clear()
|
|
||||||
{
|
|
||||||
_delegates.Clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user