no message
This commit is contained in:
@@ -29,19 +29,16 @@ Material:
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _DISABLE_SSR_TRANSPARENT
|
||||
- _ENABLE_FOG_ON_TRANSPARENT
|
||||
- _MATERIAL_FEATURE_CLEAR_COAT
|
||||
- _NORMALMAP
|
||||
- _NORMALMAP_TANGENT_SPACE
|
||||
- _SURFACE_TYPE_TRANSPARENT
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 1
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: 3000
|
||||
m_CustomRenderQueue: 2225
|
||||
stringTagMap:
|
||||
MotionVector: User
|
||||
RenderType: Transparent
|
||||
disabledShaderPasses:
|
||||
- TransparentDepthPrepass
|
||||
- TransparentDepthPostpass
|
||||
@@ -201,7 +198,7 @@ Material:
|
||||
- _AlphaCutoffPostpass: 0.5
|
||||
- _AlphaCutoffPrepass: 0.5
|
||||
- _AlphaCutoffShadow: 0.5
|
||||
- _AlphaDstBlend: 10
|
||||
- _AlphaDstBlend: 0
|
||||
- _AlphaRemapMax: 1
|
||||
- _AlphaRemapMin: 0
|
||||
- _AlphaSrcBlend: 1
|
||||
@@ -232,7 +229,7 @@ Material:
|
||||
- _DoubleSidedEnable: 0
|
||||
- _DoubleSidedGIMode: 0
|
||||
- _DoubleSidedNormalMode: 1
|
||||
- _DstBlend: 10
|
||||
- _DstBlend: 0
|
||||
- _EMISSION_WEIGHT: 1
|
||||
- _EmissiveColorMode: 1
|
||||
- _EmissiveExposureWeight: 1
|
||||
@@ -296,10 +293,10 @@ Material:
|
||||
- _SpecularOcclusionMode: 1
|
||||
- _SrcBlend: 1
|
||||
- _StencilRef: 0
|
||||
- _StencilRefDepth: 0
|
||||
- _StencilRefDepth: 8
|
||||
- _StencilRefDistortionVec: 4
|
||||
- _StencilRefGBuffer: 2
|
||||
- _StencilRefMV: 32
|
||||
- _StencilRefGBuffer: 10
|
||||
- _StencilRefMV: 40
|
||||
- _StencilWriteMask: 6
|
||||
- _StencilWriteMaskDepth: 9
|
||||
- _StencilWriteMaskDistortionVec: 4
|
||||
@@ -307,7 +304,7 @@ Material:
|
||||
- _StencilWriteMaskMV: 41
|
||||
- _SubsurfaceMask: 1
|
||||
- _SupportDecals: 1
|
||||
- _SurfaceType: 1
|
||||
- _SurfaceType: 0
|
||||
- _TRANSPARENCY_WEIGHT: 1
|
||||
- _TexWorldScale: 1
|
||||
- _TexWorldScaleEmissive: 1
|
||||
@@ -327,10 +324,10 @@ Material:
|
||||
- _UVSec: 0
|
||||
- _UseEmissiveIntensity: 0
|
||||
- _UseShadowThreshold: 0
|
||||
- _ZTestDepthEqualForOpaque: 4
|
||||
- _ZTestDepthEqualForOpaque: 3
|
||||
- _ZTestGBuffer: 4
|
||||
- _ZTestTransparent: 4
|
||||
- _ZWrite: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BASE_COLOR: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 0.7019608}
|
||||
|
||||
@@ -29,18 +29,15 @@ Material:
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _DISABLE_SSR_TRANSPARENT
|
||||
- _ENABLE_FOG_ON_TRANSPARENT
|
||||
- _NORMALMAP
|
||||
- _NORMALMAP_TANGENT_SPACE
|
||||
- _SURFACE_TYPE_TRANSPARENT
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 1
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: 3000
|
||||
m_CustomRenderQueue: 2225
|
||||
stringTagMap:
|
||||
MotionVector: User
|
||||
RenderType: Transparent
|
||||
disabledShaderPasses:
|
||||
- TransparentDepthPrepass
|
||||
- TransparentDepthPostpass
|
||||
@@ -200,7 +197,7 @@ Material:
|
||||
- _AlphaCutoffPostpass: 0.5
|
||||
- _AlphaCutoffPrepass: 0.5
|
||||
- _AlphaCutoffShadow: 0.5
|
||||
- _AlphaDstBlend: 10
|
||||
- _AlphaDstBlend: 0
|
||||
- _AlphaRemapMax: 1
|
||||
- _AlphaRemapMin: 0
|
||||
- _AlphaSrcBlend: 1
|
||||
@@ -231,7 +228,7 @@ Material:
|
||||
- _DoubleSidedEnable: 0
|
||||
- _DoubleSidedGIMode: 0
|
||||
- _DoubleSidedNormalMode: 1
|
||||
- _DstBlend: 10
|
||||
- _DstBlend: 0
|
||||
- _EMISSION_WEIGHT: 1
|
||||
- _EmissiveColorMode: 1
|
||||
- _EmissiveExposureWeight: 1
|
||||
@@ -295,10 +292,10 @@ Material:
|
||||
- _SpecularOcclusionMode: 1
|
||||
- _SrcBlend: 1
|
||||
- _StencilRef: 0
|
||||
- _StencilRefDepth: 0
|
||||
- _StencilRefDepth: 8
|
||||
- _StencilRefDistortionVec: 4
|
||||
- _StencilRefGBuffer: 2
|
||||
- _StencilRefMV: 32
|
||||
- _StencilRefGBuffer: 10
|
||||
- _StencilRefMV: 40
|
||||
- _StencilWriteMask: 6
|
||||
- _StencilWriteMaskDepth: 9
|
||||
- _StencilWriteMaskDistortionVec: 4
|
||||
@@ -306,7 +303,7 @@ Material:
|
||||
- _StencilWriteMaskMV: 41
|
||||
- _SubsurfaceMask: 1
|
||||
- _SupportDecals: 1
|
||||
- _SurfaceType: 1
|
||||
- _SurfaceType: 0
|
||||
- _TRANSPARENCY_WEIGHT: 1
|
||||
- _TexWorldScale: 1
|
||||
- _TexWorldScaleEmissive: 1
|
||||
@@ -326,10 +323,10 @@ Material:
|
||||
- _UVSec: 0
|
||||
- _UseEmissiveIntensity: 0
|
||||
- _UseShadowThreshold: 0
|
||||
- _ZTestDepthEqualForOpaque: 4
|
||||
- _ZTestDepthEqualForOpaque: 3
|
||||
- _ZTestGBuffer: 4
|
||||
- _ZTestTransparent: 4
|
||||
- _ZWrite: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BASE_COLOR: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 0.68235296}
|
||||
|
||||
@@ -265,7 +265,7 @@ Material:
|
||||
- _RefractionModel: 0
|
||||
- _RenderQueueType: 1
|
||||
- _RequireSplitLighting: 0
|
||||
- _Smoothness: 0
|
||||
- _Smoothness: 0.705
|
||||
- _SmoothnessRemapMax: 1
|
||||
- _SmoothnessRemapMin: 0
|
||||
- _SmoothnessTextureChannel: 0
|
||||
|
||||
@@ -28,22 +28,21 @@ Material:
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _ENABLE_FOG_ON_TRANSPARENT
|
||||
- _MATERIAL_FEATURE_CLEAR_COAT
|
||||
- _NORMALMAP_TANGENT_SPACE
|
||||
- _SURFACE_TYPE_TRANSPARENT
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 1
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: 3000
|
||||
m_CustomRenderQueue: 2225
|
||||
stringTagMap:
|
||||
MotionVector: User
|
||||
RenderType: Transparent
|
||||
disabledShaderPasses:
|
||||
- MOTIONVECTORS
|
||||
- TransparentDepthPostpass
|
||||
- RayTracingPrepass
|
||||
- TransparentDepthPrepass
|
||||
- TransparentBackface
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
@@ -197,7 +196,7 @@ Material:
|
||||
- _AlphaCutoffPostpass: 0.5
|
||||
- _AlphaCutoffPrepass: 0.5
|
||||
- _AlphaCutoffShadow: 0.5
|
||||
- _AlphaDstBlend: 10
|
||||
- _AlphaDstBlend: 0
|
||||
- _AlphaRemapMax: 1
|
||||
- _AlphaRemapMin: 0
|
||||
- _AlphaSrcBlend: 1
|
||||
@@ -228,7 +227,7 @@ Material:
|
||||
- _DoubleSidedEnable: 0
|
||||
- _DoubleSidedGIMode: 0
|
||||
- _DoubleSidedNormalMode: 1
|
||||
- _DstBlend: 10
|
||||
- _DstBlend: 0
|
||||
- _EMISSION_WEIGHT: 1
|
||||
- _EmissiveColorMode: 1
|
||||
- _EmissiveExposureWeight: 1
|
||||
@@ -282,7 +281,7 @@ Material:
|
||||
- _RefractionModel: 0
|
||||
- _RenderQueueType: 1
|
||||
- _RequireSplitLighting: 0
|
||||
- _Smoothness: 0
|
||||
- _Smoothness: 1
|
||||
- _SmoothnessRemapMax: 1
|
||||
- _SmoothnessRemapMin: 0
|
||||
- _SmoothnessTextureChannel: 0
|
||||
@@ -303,7 +302,7 @@ Material:
|
||||
- _StencilWriteMaskMV: 41
|
||||
- _SubsurfaceMask: 1
|
||||
- _SupportDecals: 1
|
||||
- _SurfaceType: 1
|
||||
- _SurfaceType: 0
|
||||
- _TRANSPARENCY_WEIGHT: 1
|
||||
- _TexWorldScale: 1
|
||||
- _TexWorldScaleEmissive: 1
|
||||
@@ -323,16 +322,16 @@ Material:
|
||||
- _UVSec: 0
|
||||
- _UseEmissiveIntensity: 0
|
||||
- _UseShadowThreshold: 0
|
||||
- _ZTestDepthEqualForOpaque: 4
|
||||
- _ZTestDepthEqualForOpaque: 3
|
||||
- _ZTestGBuffer: 4
|
||||
- _ZTestTransparent: 4
|
||||
- _ZWrite: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BASE_COLOR: {r: 0.18431373, g: 0.8470589, b: 0.93725497, a: 1}
|
||||
- _BaseColor: {r: 0.8679245, g: 0.8679245, b: 0.8679245, a: 0.5882353}
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _BaseColorMap_MipInfo: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _COAT_COLOR: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _Color: {r: 0.8679245, g: 0.8679245, b: 0.8679245, a: 0.5882353}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _DiffusionProfileAsset: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _DoubleSidedConstants: {r: 1, g: 1, b: -1, a: 0}
|
||||
- _EMISSION_COLOR: {r: 0, g: 0, b: 0, a: 1}
|
||||
|
||||
@@ -1,227 +1,227 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Security.Cryptography;
|
||||
//using System.Collections;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Security.Cryptography;
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
using UnityEngine.Rendering;
|
||||
//using UnityEngine;
|
||||
//using UnityEngine.UIElements;
|
||||
//using UnityEngine.Rendering;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
using Unity.VisualScripting;
|
||||
#endif
|
||||
//#if UNITY_EDITOR
|
||||
//using Unity.VisualScripting;
|
||||
//#endif
|
||||
|
||||
using XericLibrary.Runtime.CustomDrawer;
|
||||
using XericLibrary.Runtime.MacroLibrary;
|
||||
using static UnityEditor.ShaderGraph.Internal.KeywordDependentCollection;
|
||||
//using XericLibrary.Runtime.CustomDrawer;
|
||||
//using XericLibrary.Runtime.MacroLibrary;
|
||||
//using static UnityEditor.ShaderGraph.Internal.KeywordDependentCollection;
|
||||
|
||||
//using static System.IO.Enumeration.FileSystemEnumerable<TResult>;
|
||||
////using static System.IO.Enumeration.FileSystemEnumerable<TResult>;
|
||||
|
||||
namespace LRC
|
||||
{
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ƹ<EFBFBD><C6B9><EFBFBD><EFBFBD>ű<EFBFBD>
|
||||
/// </summary>
|
||||
public class TowerCraneControlManager : MonoBehaviour
|
||||
{
|
||||
#region <EFBFBD><EFBFBD>̬<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//namespace LRC
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ƹ<EFBFBD><C6B9><EFBFBD><EFBFBD>ű<EFBFBD>
|
||||
// /// </summary>
|
||||
// public class TowerCraneControlManager : MonoBehaviour
|
||||
// {
|
||||
// #region <20><>̬<EFBFBD><CCAC><EFBFBD><EFBFBD>
|
||||
|
||||
/// <summary>
|
||||
/// ȫ<><C8AB>ʵ<EFBFBD><CAB5>
|
||||
/// </summary>
|
||||
public static List<TowerCraneControlManager> Instances;
|
||||
// /// <summary>
|
||||
// /// ȫ<><C8AB>ʵ<EFBFBD><CAB5>
|
||||
// /// </summary>
|
||||
// public static List<TowerCraneControlManager> Instances;
|
||||
|
||||
#endregion
|
||||
// #endregion
|
||||
|
||||
#region <EFBFBD>ֶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// #region <20>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD><C4B5>任<EFBFBD><E4BBBB><EFBFBD><EFBFBD>
|
||||
/// </summary>
|
||||
[ReName("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>תԭ<D7AA><D4AD>")]
|
||||
[SerializeField]
|
||||
internal Transform TowerOriginTransform;
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD><C4B5>任<EFBFBD><E4BBBB><EFBFBD><EFBFBD>
|
||||
// /// </summary>
|
||||
// [ReName("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>תԭ<D7AA><D4AD>")]
|
||||
// [SerializeField]
|
||||
// internal Transform TowerOriginTransform;
|
||||
|
||||
/// <summary>
|
||||
/// ҡ<><D2A1><EFBFBD><EFBFBD><EFBFBD>ڽڵ<DABD>
|
||||
/// </summary>
|
||||
[ReName("ҡ<><D2A1><EFBFBD><EFBFBD><EFBFBD>ڱ任<DAB1><E4BBBB><EFBFBD><EFBFBD>")]
|
||||
[SerializeField]
|
||||
internal Transform RockerArm_Transform;
|
||||
// /// <summary>
|
||||
// /// ҡ<><D2A1><EFBFBD><EFBFBD><EFBFBD>ڽڵ<DABD>
|
||||
// /// </summary>
|
||||
// [ReName("ҡ<><D2A1><EFBFBD><EFBFBD><EFBFBD>ڱ任<DAB1><E4BBBB><EFBFBD><EFBFBD>")]
|
||||
// [SerializeField]
|
||||
// internal Transform RockerArm_Transform;
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD>ڽڵ<DABD>
|
||||
/// </summary>
|
||||
[ReName("<22><><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD>任<EFBFBD><E4BBBB><EFBFBD><EFBFBD>")]
|
||||
[SerializeField]
|
||||
internal Transform dollyTrolley_Transform;
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD>ڽڵ<DABD>
|
||||
// /// </summary>
|
||||
// [ReName("<22><><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD>任<EFBFBD><E4BBBB><EFBFBD><EFBFBD>")]
|
||||
// [SerializeField]
|
||||
// internal Transform dollyTrolley_Transform;
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
/// </summary>
|
||||
internal TowerDollyTrolley dollyTrolley;
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// /// </summary>
|
||||
// internal TowerDollyTrolley dollyTrolley;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD>ҡ<EFBFBD><D2A1><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD>ĵľ<C4B5><C4BE><EFBFBD>)
|
||||
/// </summary>
|
||||
public float RockerArmCanMoveStart = 2;
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD>ҡ<EFBFBD><D2A1><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD>ĵľ<C4B5><C4BE><EFBFBD>)
|
||||
// /// </summary>
|
||||
// public float RockerArmCanMoveStart = 2;
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD>ҡ<EFBFBD><D2A1><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD><C6B6>ľ<EFBFBD><C4BE><EFBFBD>
|
||||
/// </summary>
|
||||
public float RockerArmCanMoveLength = 20;
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD>ҡ<EFBFBD><D2A1><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD><C6B6>ľ<EFBFBD><C4BE><EFBFBD>
|
||||
// /// </summary>
|
||||
// public float RockerArmCanMoveLength = 20;
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD>ҡ<EFBFBD>۾<EFBFBD><DBBE>Է<EFBFBD>Χ
|
||||
/// </summary>
|
||||
public float RockerArmAbsRange => RockerArmCanMoveStart + RockerArmCanMoveLength;
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD>ҡ<EFBFBD>۾<EFBFBD><DBBE>Է<EFBFBD>Χ
|
||||
// /// </summary>
|
||||
// public float RockerArmAbsRange => RockerArmCanMoveStart + RockerArmCanMoveLength;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <20><>ת<EFBFBD>ٶ<EFBFBD>
|
||||
/// </summary>
|
||||
[ReName("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD>ٶ<EFBFBD>")]
|
||||
[SerializeField]
|
||||
internal float TowerRotateSpeed = 1;
|
||||
// /// <summary>
|
||||
// /// <20><>ת<EFBFBD>ٶ<EFBFBD>
|
||||
// /// </summary>
|
||||
// [ReName("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD>ٶ<EFBFBD>")]
|
||||
// [SerializeField]
|
||||
// internal float TowerRotateSpeed = 1;
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>
|
||||
/// </summary>
|
||||
[ReName("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>")]
|
||||
[SerializeField]
|
||||
internal Vector3 TowerRotateAxis = Vector3.up;
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>
|
||||
// /// </summary>
|
||||
// [ReName("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>")]
|
||||
// [SerializeField]
|
||||
// internal Vector3 TowerRotateAxis = Vector3.up;
|
||||
|
||||
/// <summary>
|
||||
/// С<><D0A1><EFBFBD>н<EFBFBD><D0BD>ٶ<EFBFBD>
|
||||
/// </summary>
|
||||
[ReName("С<><D0A1><EFBFBD>н<EFBFBD><D0BD>ٶ<EFBFBD>")]
|
||||
[SerializeField]
|
||||
internal float TrolleyMoveSpeed = 1;
|
||||
// /// <summary>
|
||||
// /// С<><D0A1><EFBFBD>н<EFBFBD><D0BD>ٶ<EFBFBD>
|
||||
// /// </summary>
|
||||
// [ReName("С<><D0A1><EFBFBD>н<EFBFBD><D0BD>ٶ<EFBFBD>")]
|
||||
// [SerializeField]
|
||||
// internal float TrolleyMoveSpeed = 1;
|
||||
|
||||
/// <summary>
|
||||
/// С<><D0A1>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
/// </summary>
|
||||
[ReName("С<><D0A1>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")]
|
||||
[SerializeField]
|
||||
internal Vector3 TrolleyLocalMoveFroward = Vector3.forward;
|
||||
// /// <summary>
|
||||
// /// С<><D0A1>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// /// </summary>
|
||||
// [ReName("С<><D0A1>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")]
|
||||
// [SerializeField]
|
||||
// internal Vector3 TrolleyLocalMoveFroward = Vector3.forward;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ִ<>е<EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>תʱʹ<CAB1>õ<EFBFBD><C3B5><EFBFBD>תA
|
||||
/// </summary>
|
||||
private Quaternion LastProgressRotate;
|
||||
// /// <summary>
|
||||
// /// ִ<>е<EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>תʱʹ<CAB1>õ<EFBFBD><C3B5><EFBFBD>תA
|
||||
// /// </summary>
|
||||
// private Quaternion LastProgressRotate;
|
||||
|
||||
/// <summary>
|
||||
/// Ŀ<><C4BF><EFBFBD><EFBFBD>ת
|
||||
/// </summary>
|
||||
private Quaternion targetProgressRotate;
|
||||
// /// <summary>
|
||||
// /// Ŀ<><C4BF><EFBFBD><EFBFBD>ת
|
||||
// /// </summary>
|
||||
// private Quaternion targetProgressRotate;
|
||||
|
||||
/// <summary>
|
||||
/// Ŀ<><C4BF><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD>ȵ<EFBFBD><C8B5><EFBFBD>Сת<D0A1><D7AA><EFBFBD>Ƕ<EFBFBD>
|
||||
/// </summary>
|
||||
private float targetLerpAngle;
|
||||
// /// <summary>
|
||||
// /// Ŀ<><C4BF><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD>ȵ<EFBFBD><C8B5><EFBFBD>Сת<D0A1><D7AA><EFBFBD>Ƕ<EFBFBD>
|
||||
// /// </summary>
|
||||
// private float targetLerpAngle;
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>תĿ<D7AA><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD>
|
||||
/// </summary>
|
||||
private float targetLerpProgressRate;
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>תĿ<D7AA><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD><EFBFBD>
|
||||
// /// </summary>
|
||||
// private float targetLerpProgressRate;
|
||||
|
||||
#endregion
|
||||
// #endregion
|
||||
|
||||
#region <EFBFBD>趨<EFBFBD>ֶ<EFBFBD>
|
||||
// #region <20>趨<EFBFBD>ֶ<EFBFBD>
|
||||
|
||||
internal ShadowCastingMode castShadowMode = ShadowCastingMode.On;
|
||||
// internal ShadowCastingMode castShadowMode = ShadowCastingMode.On;
|
||||
|
||||
#endregion
|
||||
// #endregion
|
||||
|
||||
|
||||
#region <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// #region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if(dollyTrolley_Transform == null)
|
||||
{
|
||||
Debug.LogError("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δָ<CEB4><D6B8>С<EFBFBD><D0A1><EFBFBD>ı任<C4B1><E4BBBB><EFBFBD><EFBFBD>λ<EFBFBD>ã<EFBFBD><C3A3><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8>С<EFBFBD><D0A1>");
|
||||
enabled = false;
|
||||
}
|
||||
// private void Awake()
|
||||
// {
|
||||
// if(dollyTrolley_Transform == null)
|
||||
// {
|
||||
// Debug.LogError("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δָ<CEB4><D6B8>С<EFBFBD><D0A1><EFBFBD>ı任<C4B1><E4BBBB><EFBFBD><EFBFBD>λ<EFBFBD>ã<EFBFBD><C3A3><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8>С<EFBFBD><D0A1>");
|
||||
// enabled = false;
|
||||
// }
|
||||
|
||||
// <20><>ʼ<EFBFBD><CABC>ԭ<EFBFBD><D4AD>
|
||||
if(TowerOriginTransform == null)
|
||||
TowerOriginTransform = transform;
|
||||
// <20><>ʼ<EFBFBD><CABC>С<EFBFBD><D0A1>
|
||||
if(dollyTrolley == null)
|
||||
dollyTrolley = dollyTrolley_Transform.GetComponent<TowerDollyTrolley>();
|
||||
if(dollyTrolley == null)
|
||||
dollyTrolley = dollyTrolley_Transform.AddComponent<TowerDollyTrolley>();
|
||||
// // <20><>ʼ<EFBFBD><CABC>ԭ<EFBFBD><D4AD>
|
||||
// if(TowerOriginTransform == null)
|
||||
// TowerOriginTransform = transform;
|
||||
// // <20><>ʼ<EFBFBD><CABC>С<EFBFBD><D0A1>
|
||||
// if(dollyTrolley == null)
|
||||
// dollyTrolley = dollyTrolley_Transform.GetComponent<TowerDollyTrolley>();
|
||||
// if(dollyTrolley == null)
|
||||
// dollyTrolley = dollyTrolley_Transform.AddComponent<TowerDollyTrolley>();
|
||||
|
||||
// <20><>ʼ<EFBFBD><CABC>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if(Instances == null)
|
||||
Instances = new List<TowerCraneControlManager>();
|
||||
Instances.Add(this);
|
||||
// // <20><>ʼ<EFBFBD><CABC>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// if(Instances == null)
|
||||
// Instances = new List<TowerCraneControlManager>();
|
||||
// Instances.Add(this);
|
||||
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
private void Update()
|
||||
{
|
||||
UpdateArmRotate();
|
||||
}
|
||||
// private void Update()
|
||||
// {
|
||||
// UpdateArmRotate();
|
||||
// }
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
if(!ReferenceEquals(this, null))
|
||||
Instances.Remove(this);
|
||||
}
|
||||
// private void OnDestroy()
|
||||
// {
|
||||
// if(!ReferenceEquals(this, null))
|
||||
// Instances.Remove(this);
|
||||
// }
|
||||
|
||||
#endregion
|
||||
// #endregion
|
||||
|
||||
#region <EFBFBD>˶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// #region <20>˶<EFBFBD><CBB6><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1>Ӧ<EFBFBD>õִ<C3B5><D6B4><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
/// </summary>
|
||||
public bool GetGraspingPosition(Vector3 arrivePosition, out float TrolleyLength, out Quaternion armRotate)
|
||||
{
|
||||
var lookat = arrivePosition - TowerOriginTransform.position;
|
||||
var armLength = lookat.magnitude;
|
||||
if(armLength > RockerArmCanMoveLength)
|
||||
{
|
||||
TrolleyLength = -1;
|
||||
armRotate = Quaternion.identity;
|
||||
return false;
|
||||
}
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1>Ӧ<EFBFBD>õִ<C3B5><D6B4><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// /// </summary>
|
||||
// public bool GetGraspingPosition(Vector3 arrivePosition, out float TrolleyLength, out Quaternion armRotate)
|
||||
// {
|
||||
// var lookat = arrivePosition - TowerOriginTransform.position;
|
||||
// var armLength = lookat.magnitude;
|
||||
// if(armLength > RockerArmCanMoveLength)
|
||||
// {
|
||||
// TrolleyLength = -1;
|
||||
// armRotate = Quaternion.identity;
|
||||
// return false;
|
||||
// }
|
||||
|
||||
TrolleyLength = armLength - RockerArmCanMoveStart;
|
||||
armRotate = Quaternion.LookRotation(lookat, TowerRotateAxis);
|
||||
return true;
|
||||
}
|
||||
// TrolleyLength = armLength - RockerArmCanMoveStart;
|
||||
// armRotate = Quaternion.LookRotation(lookat, TowerRotateAxis);
|
||||
// return true;
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// <20>趨<EFBFBD><E8B6A8>תĿ<D7AA><C4BF>
|
||||
/// </summary>
|
||||
public void SetRotateTarget(Quaternion target)
|
||||
{
|
||||
LastProgressRotate = TowerOriginTransform.rotation;
|
||||
targetProgressRotate = target;
|
||||
targetLerpProgressRate = 0;
|
||||
//targetLerpAngle = Quaternion.Angle(LastProgressRotate, targetProgressRotate);
|
||||
targetLerpAngle =
|
||||
(LastProgressRotate * Quaternion.Inverse(targetProgressRotate)).eulerAngles.z;
|
||||
}
|
||||
// /// <summary>
|
||||
// /// <20>趨<EFBFBD><E8B6A8>תĿ<D7AA><C4BF>
|
||||
// /// </summary>
|
||||
// public void SetRotateTarget(Quaternion target)
|
||||
// {
|
||||
// LastProgressRotate = TowerOriginTransform.rotation;
|
||||
// targetProgressRotate = target;
|
||||
// targetLerpProgressRate = 0;
|
||||
// //targetLerpAngle = Quaternion.Angle(LastProgressRotate, targetProgressRotate);
|
||||
// targetLerpAngle =
|
||||
// (LastProgressRotate * Quaternion.Inverse(targetProgressRotate)).eulerAngles.z;
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת
|
||||
/// </summary>
|
||||
public void UpdateArmRotate()
|
||||
{
|
||||
targetLerpProgressRate += TowerRotateSpeed / targetLerpAngle * Time.deltaTime;
|
||||
targetLerpProgressRate = Mathf.Clamp01(targetLerpProgressRate);
|
||||
TowerOriginTransform.rotation = Quaternion
|
||||
.Lerp(LastProgressRotate, targetProgressRotate, targetLerpProgressRate);
|
||||
}
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת
|
||||
// /// </summary>
|
||||
// public void UpdateArmRotate()
|
||||
// {
|
||||
// targetLerpProgressRate += TowerRotateSpeed / targetLerpAngle * Time.deltaTime;
|
||||
// targetLerpProgressRate = Mathf.Clamp01(targetLerpProgressRate);
|
||||
// TowerOriginTransform.rotation = Quaternion
|
||||
// .Lerp(LastProgressRotate, targetProgressRotate, targetLerpProgressRate);
|
||||
// }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
// #endregion
|
||||
// }
|
||||
//}
|
||||
|
||||
@@ -1,129 +1,129 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
//using System.Collections;
|
||||
//using System.Collections.Generic;
|
||||
//using UnityEngine;
|
||||
|
||||
using XericLibrary.Runtime.CustomDrawer;
|
||||
//using XericLibrary.Runtime.CustomDrawer;
|
||||
|
||||
namespace LRC
|
||||
{
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD>ƽű<C6BD>
|
||||
/// </summary>
|
||||
public class TowerDollyTrolley : MonoBehaviour
|
||||
{
|
||||
#region <EFBFBD>ֶ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
//namespace LRC
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD>ƽű<C6BD>
|
||||
// /// </summary>
|
||||
// public class TowerDollyTrolley : MonoBehaviour
|
||||
// {
|
||||
// #region <20>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
/// <summary>
|
||||
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD>
|
||||
/// </summary>
|
||||
[ReName("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")]
|
||||
public TowerCraneControlManager Manager;
|
||||
// /// <summary>
|
||||
// /// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD>
|
||||
// /// </summary>
|
||||
// [ReName("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")]
|
||||
// public TowerCraneControlManager Manager;
|
||||
|
||||
/// <summary>
|
||||
/// С<><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵľ<C4B5><C4BE><EFBFBD>
|
||||
/// </summary>
|
||||
public float RockerArmCanMoveStart => Manager.RockerArmCanMoveStart;
|
||||
// /// <summary>
|
||||
// /// С<><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵľ<C4B5><C4BE><EFBFBD>
|
||||
// /// </summary>
|
||||
// public float RockerArmCanMoveStart => Manager.RockerArmCanMoveStart;
|
||||
|
||||
/// <summary>
|
||||
/// ҡ<>ۿ<EFBFBD><DBBF>ƶ<EFBFBD><C6B6>ľ<EFBFBD><C4BE><EFBFBD>
|
||||
/// </summary>
|
||||
public float RockerArmCanMoveLength => Manager.RockerArmCanMoveLength;
|
||||
// /// <summary>
|
||||
// /// ҡ<>ۿ<EFBFBD><DBBF>ƶ<EFBFBD><C6B6>ľ<EFBFBD><C4BE><EFBFBD>
|
||||
// /// </summary>
|
||||
// public float RockerArmCanMoveLength => Manager.RockerArmCanMoveLength;
|
||||
|
||||
/// <summary>
|
||||
/// <20><>ȡС<C8A1><D0A1><EFBFBD>н<EFBFBD><D0BD><EFBFBD>ҡ<EFBFBD>۱任<DBB1><E4BBBB><EFBFBD><EFBFBD>
|
||||
/// </summary>
|
||||
public Transform RockerArm_Transform => Manager.RockerArm_Transform;
|
||||
// /// <summary>
|
||||
// /// <20><>ȡС<C8A1><D0A1><EFBFBD>н<EFBFBD><D0BD><EFBFBD>ҡ<EFBFBD>۱任<DBB1><E4BBBB><EFBFBD><EFBFBD>
|
||||
// /// </summary>
|
||||
// public Transform RockerArm_Transform => Manager.RockerArm_Transform;
|
||||
|
||||
/// <summary>
|
||||
/// <20><>ȡС<C8A1><D0A1><EFBFBD><EFBFBD><EFBFBD>н<EFBFBD><D0BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
/// </summary>
|
||||
public Vector3 TrolleyLocalMoveFroward => Manager.TrolleyLocalMoveFroward;
|
||||
// /// <summary>
|
||||
// /// <20><>ȡС<C8A1><D0A1><EFBFBD><EFBFBD><EFBFBD>н<EFBFBD><D0BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// /// </summary>
|
||||
// public Vector3 TrolleyLocalMoveFroward => Manager.TrolleyLocalMoveFroward;
|
||||
|
||||
/// <summary>
|
||||
/// С<><D0A1><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6>ٶ<EFBFBD>
|
||||
/// </summary>
|
||||
public float TrolleyMoveSpeed => Manager.TrolleyMoveSpeed;
|
||||
// /// <summary>
|
||||
// /// С<><D0A1><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6>ٶ<EFBFBD>
|
||||
// /// </summary>
|
||||
// public float TrolleyMoveSpeed => Manager.TrolleyMoveSpeed;
|
||||
|
||||
/// <summary>
|
||||
/// С<><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>緽<EFBFBD><E7B7BD><EFBFBD>ϵ<EFBFBD><CFB5>ƶ<EFBFBD><C6B6><EFBFBD>ǰʸ<C7B0><CAB8>
|
||||
/// </summary>
|
||||
public Vector3 WorldMoveForward => RockerArm_Transform.rotation * TrolleyLocalMoveFroward;
|
||||
// /// <summary>
|
||||
// /// С<><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>緽<EFBFBD><E7B7BD><EFBFBD>ϵ<EFBFBD><CFB5>ƶ<EFBFBD><C6B6><EFBFBD>ǰʸ<C7B0><CAB8>
|
||||
// /// </summary>
|
||||
// public Vector3 WorldMoveForward => RockerArm_Transform.rotation * TrolleyLocalMoveFroward;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <20>˶<EFBFBD><CBB6><EFBFBD><EFBFBD><EFBFBD>
|
||||
/// </summary>
|
||||
[ReName("<22><><EFBFBD>н<EFBFBD><D0BD><EFBFBD>")]
|
||||
private float progressLength = 0;
|
||||
// /// <summary>
|
||||
// /// <20>˶<EFBFBD><CBB6><EFBFBD><EFBFBD><EFBFBD>
|
||||
// /// </summary>
|
||||
// [ReName("<22><><EFBFBD>н<EFBFBD><D0BD><EFBFBD>")]
|
||||
// private float progressLength = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD>о<EFBFBD><D0BE>볤<EFBFBD><EBB3A4>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
/// </summary>
|
||||
[ReName("Ŀ<>걾<EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>")]
|
||||
private float targetLocalProgressLength = 0;
|
||||
// /// <summary>
|
||||
// /// Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD>о<EFBFBD><D0BE>볤<EFBFBD><EBB3A4>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
// /// </summary>
|
||||
// [ReName("Ŀ<>걾<EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>")]
|
||||
// private float targetLocalProgressLength = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD>볤<EFBFBD><EBB3A4>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ㵽Ŀ<E3B5BD><C4BF><EFBFBD>ľ<EFBFBD><C4BE>볤<EFBFBD>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
/// </summary>
|
||||
public float TargetWorldProgressLength
|
||||
{
|
||||
get => RockerArmCanMoveStart + targetLocalProgressLength;
|
||||
set => targetLocalProgressLength = value - RockerArmCanMoveStart;
|
||||
}
|
||||
// /// <summary>
|
||||
// /// Ŀ<><C4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD>볤<EFBFBD><EBB3A4>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ㵽Ŀ<E3B5BD><C4BF><EFBFBD>ľ<EFBFBD><C4BE>볤<EFBFBD>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
// /// </summary>
|
||||
// public float TargetWorldProgressLength
|
||||
// {
|
||||
// get => RockerArmCanMoveStart + targetLocalProgressLength;
|
||||
// set => targetLocalProgressLength = value - RockerArmCanMoveStart;
|
||||
// }
|
||||
|
||||
|
||||
#endregion
|
||||
// #endregion
|
||||
|
||||
#region <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// #region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if(Manager == null)
|
||||
{
|
||||
Debug.LogError("С<><D0A1><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
||||
enabled = false;
|
||||
}
|
||||
}
|
||||
// private void Awake()
|
||||
// {
|
||||
// if(Manager == null)
|
||||
// {
|
||||
// Debug.LogError("С<><D0A1><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
||||
// enabled = false;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
private void Update()
|
||||
{
|
||||
var targetLength = targetLocalProgressLength - progressLength;
|
||||
transform.position = GetMoveInDirection(targetLength, TrolleyMoveSpeed);
|
||||
}
|
||||
// private void Update()
|
||||
// {
|
||||
// var targetLength = targetLocalProgressLength - progressLength;
|
||||
// transform.position = GetMoveInDirection(targetLength, TrolleyMoveSpeed);
|
||||
// }
|
||||
|
||||
#endregion
|
||||
// #endregion
|
||||
|
||||
#region <EFBFBD>˶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// #region <20>˶<EFBFBD><CBB6><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
/// <summary>
|
||||
/// <20><>ȡ<EFBFBD><C8A1>һ֡<D2BB>ƶ<EFBFBD><C6B6><EFBFBD>λ<EFBFBD><CEBB>
|
||||
/// </summary>
|
||||
/// <param name="offset"></param>
|
||||
/// <returns></returns>
|
||||
public Vector3 GetMovePosition(float offset)
|
||||
{
|
||||
float newProg = Mathf.Min(progressLength + offset, RockerArmCanMoveLength);
|
||||
// /// <summary>
|
||||
// /// <20><>ȡ<EFBFBD><C8A1>һ֡<D2BB>ƶ<EFBFBD><C6B6><EFBFBD>λ<EFBFBD><CEBB>
|
||||
// /// </summary>
|
||||
// /// <param name="offset"></param>
|
||||
// /// <returns></returns>
|
||||
// public Vector3 GetMovePosition(float offset)
|
||||
// {
|
||||
// float newProg = Mathf.Min(progressLength + offset, RockerArmCanMoveLength);
|
||||
|
||||
return TrolleyLocalMoveFroward * (RockerArmCanMoveStart + newProg);
|
||||
}
|
||||
// return TrolleyLocalMoveFroward * (RockerArmCanMoveStart + newProg);
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// С<><D0A1><EFBFBD>ڸ<EFBFBD><DAB8><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͻӽ<CFBD>λ<EFBFBD><CEBB>
|
||||
/// </summary>
|
||||
/// <param name="surplus">ʣ<><CAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD></param>
|
||||
/// <param name="speed"><3E>ٶ<EFBFBD></param>
|
||||
public Vector3 GetMoveInDirection(float surplus, float speed)
|
||||
{
|
||||
float offset = Mathf.Sign(surplus) * speed * Time.deltaTime;
|
||||
if(surplus > 0)
|
||||
offset = Mathf.Min(surplus, offset);
|
||||
else
|
||||
offset = Mathf.Max(surplus, offset);
|
||||
return GetMovePosition(offset);
|
||||
}
|
||||
// /// <summary>
|
||||
// /// С<><D0A1><EFBFBD>ڸ<EFBFBD><DAB8><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͻӽ<CFBD>λ<EFBFBD><CEBB>
|
||||
// /// </summary>
|
||||
// /// <param name="surplus">ʣ<><CAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD></param>
|
||||
// /// <param name="speed"><3E>ٶ<EFBFBD></param>
|
||||
// public Vector3 GetMoveInDirection(float surplus, float speed)
|
||||
// {
|
||||
// float offset = Mathf.Sign(surplus) * speed * Time.deltaTime;
|
||||
// if(surplus > 0)
|
||||
// offset = Mathf.Min(surplus, offset);
|
||||
// else
|
||||
// offset = Mathf.Max(surplus, offset);
|
||||
// return GetMovePosition(offset);
|
||||
// }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
// #endregion
|
||||
// }
|
||||
//}
|
||||
@@ -1,178 +1,178 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using System.Threading.Tasks;
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEngine.Pool;
|
||||
using UnityEngine.Rendering;
|
||||
//using UnityEngine;
|
||||
//using UnityEngine.Pool;
|
||||
//using UnityEngine.Rendering;
|
||||
|
||||
|
||||
using XericLibrary.Runtime.CustomDrawer;
|
||||
////using XericLibrary.Runtime.CustomDrawer;
|
||||
|
||||
namespace LRC
|
||||
{
|
||||
public class TowerGerminate : MonoBehaviour
|
||||
{
|
||||
#region 字段属性
|
||||
//namespace LRC
|
||||
//{
|
||||
// public class TowerGerminate : MonoBehaviour
|
||||
// {
|
||||
// #region 字段属性
|
||||
|
||||
/// <summary>
|
||||
/// 管理器脚本
|
||||
/// </summary>
|
||||
[ReName("塔吊控制器")]
|
||||
public TowerCraneControlManager Manager;
|
||||
// /// <summary>
|
||||
// /// 管理器脚本
|
||||
// /// </summary>
|
||||
// //[ReName("塔吊控制器")]
|
||||
// //public TowerCraneControlManager Manager;
|
||||
|
||||
/// <summary>
|
||||
/// 支架单位模型
|
||||
/// </summary>
|
||||
[ReName("塔支架模型")]
|
||||
[SerializeField]
|
||||
internal Mesh UnitBracket;
|
||||
// /// <summary>
|
||||
// /// 支架单位模型
|
||||
// /// </summary>
|
||||
// //[ReName("塔支架模型")]
|
||||
// [SerializeField]
|
||||
// internal Mesh UnitBracket;
|
||||
|
||||
/// <summary>
|
||||
/// 塔支架模型材质
|
||||
/// </summary>
|
||||
[ReName("塔支架模型材质")]
|
||||
[SerializeField]
|
||||
internal Material[] UnitBracketMaterial;
|
||||
// /// <summary>
|
||||
// /// 塔支架模型材质
|
||||
// /// </summary>
|
||||
// //[ReName("塔支架模型材质")]
|
||||
// [SerializeField]
|
||||
// internal Material[] UnitBracketMaterial;
|
||||
|
||||
/// <summary>
|
||||
/// 塔真高(目标高度,一次设定)
|
||||
/// </summary>
|
||||
[ReName("塔支架总高度")]
|
||||
[SerializeField]
|
||||
internal float TowerTrueHigh;
|
||||
// /// <summary>
|
||||
// /// 塔真高(目标高度,一次设定)
|
||||
// /// </summary>
|
||||
// //[ReName("塔支架总高度")]
|
||||
// [SerializeField]
|
||||
// internal float TowerTrueHigh;
|
||||
|
||||
/// <summary>
|
||||
/// 塔支架诞生节点
|
||||
/// </summary>
|
||||
[ReName("塔支架生成节点")]
|
||||
[SerializeField]
|
||||
internal Transform BracketNode;
|
||||
// /// <summary>
|
||||
// /// 塔支架诞生节点
|
||||
// /// </summary>
|
||||
// //[ReName("塔支架生成节点")]
|
||||
// [SerializeField]
|
||||
// internal Transform BracketNode;
|
||||
|
||||
/// <summary>
|
||||
/// 阴影模式
|
||||
/// </summary>
|
||||
internal ShadowCastingMode castShadowMode => Manager.castShadowMode;
|
||||
// /// <summary>
|
||||
// /// 阴影模式
|
||||
// /// </summary>
|
||||
// internal ShadowCastingMode castShadowMode => Manager.castShadowMode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取单位模型的高度用于计算生成数量
|
||||
/// </summary>
|
||||
public float UnitBracketHigh => UnitBracket.bounds.size.y;
|
||||
// /// <summary>
|
||||
// /// 获取单位模型的高度用于计算生成数量
|
||||
// /// </summary>
|
||||
// public float UnitBracketHigh => UnitBracket.bounds.size.y;
|
||||
|
||||
/// <summary>
|
||||
/// 塔支架现在的高度
|
||||
/// </summary>
|
||||
public float BracketNowHigh = 0;
|
||||
// /// <summary>
|
||||
// /// 塔支架现在的高度
|
||||
// /// </summary>
|
||||
// public float BracketNowHigh = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 单位支架列表
|
||||
/// </summary>
|
||||
public List<GameObject> TowerBracketList;
|
||||
// /// <summary>
|
||||
// /// 单位支架列表
|
||||
// /// </summary>
|
||||
// public List<GameObject> TowerBracketList;
|
||||
|
||||
#endregion
|
||||
// #endregion
|
||||
|
||||
#region 生命周期
|
||||
// #region 生命周期
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if(transform.childCount > 0)
|
||||
{
|
||||
Debug.LogError("支架节点内包含预定义的元素,默认删除");
|
||||
}
|
||||
}
|
||||
// private void Awake()
|
||||
// {
|
||||
// if(transform.childCount > 0)
|
||||
// {
|
||||
// Debug.LogError("支架节点内包含预定义的元素,默认删除");
|
||||
// }
|
||||
// }
|
||||
|
||||
private void Update()
|
||||
{
|
||||
var count = TowerTrueHigh / UnitBracketHigh;
|
||||
int targetCount = (int)count;
|
||||
// private void Update()
|
||||
// {
|
||||
// var count = TowerTrueHigh / UnitBracketHigh;
|
||||
// int targetCount = (int)count;
|
||||
|
||||
if(TowerBracketList)
|
||||
{
|
||||
// //if(TowerBracketList)
|
||||
// //{
|
||||
|
||||
}
|
||||
// //}
|
||||
|
||||
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
#endregion
|
||||
// #endregion
|
||||
|
||||
#region 方法
|
||||
// #region 方法
|
||||
|
||||
/// <summary>
|
||||
/// 诞生单个支架
|
||||
/// </summary>
|
||||
/// <param name="parent"></param>
|
||||
private GameObject SpawnUnitBracket(Transform parent)
|
||||
{
|
||||
var target = new GameObject(UnitBracket.name);//, typeof(MeshFilter), typeof(MeshRenderer));
|
||||
target.transform.parent = parent;
|
||||
// /// <summary>
|
||||
// /// 诞生单个支架
|
||||
// /// </summary>
|
||||
// /// <param name="parent"></param>
|
||||
// private GameObject SpawnUnitBracket(Transform parent)
|
||||
// {
|
||||
// var target = new GameObject(UnitBracket.name);//, typeof(MeshFilter), typeof(MeshRenderer));
|
||||
// target.transform.parent = parent;
|
||||
|
||||
var meshfliter = target.AddComponent<MeshFilter>();
|
||||
var mesheenderer = target.AddComponent<MeshRenderer>();
|
||||
// var meshfliter = target.AddComponent<MeshFilter>();
|
||||
// var mesheenderer = target.AddComponent<MeshRenderer>();
|
||||
|
||||
meshfliter.mesh = UnitBracket;
|
||||
mesheenderer.materials = UnitBracketMaterial;
|
||||
mesheenderer.shadowCastingMode = castShadowMode;
|
||||
// meshfliter.mesh = UnitBracket;
|
||||
// mesheenderer.materials = UnitBracketMaterial;
|
||||
// mesheenderer.shadowCastingMode = castShadowMode;
|
||||
|
||||
if(TowerBracketList == null)
|
||||
TowerBracketList = new List<GameObject>();
|
||||
TowerBracketList.Add(target);
|
||||
// if(TowerBracketList == null)
|
||||
// TowerBracketList = new List<GameObject>();
|
||||
// TowerBracketList.Add(target);
|
||||
|
||||
return target;
|
||||
}
|
||||
// return target;
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// 设置指定索引下的支架的动画驱动
|
||||
/// </summary>
|
||||
/// <param name="rate"></param>
|
||||
private void SetBracketAnimateByIndex(float rate)
|
||||
{
|
||||
int count = (int)rate;
|
||||
SetBracketAnimateByIndex(count, rate - count);
|
||||
}
|
||||
// /// <summary>
|
||||
// /// 设置指定索引下的支架的动画驱动
|
||||
// /// </summary>
|
||||
// /// <param name="rate"></param>
|
||||
// private void SetBracketAnimateByIndex(float rate)
|
||||
// {
|
||||
// int count = (int)rate;
|
||||
// SetBracketAnimateByIndex(count, rate - count);
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// 设置指定索引下的支架的动画驱动
|
||||
/// </summary>
|
||||
/// <param name="count"></param>
|
||||
/// <param name="rate"></param>
|
||||
private void SetBracketAnimateByIndex(int count, float rate)
|
||||
{
|
||||
if(TowerBracketList == null)
|
||||
TowerBracketList = new List<GameObject>();
|
||||
// /// <summary>
|
||||
// /// 设置指定索引下的支架的动画驱动
|
||||
// /// </summary>
|
||||
// /// <param name="count"></param>
|
||||
// /// <param name="rate"></param>
|
||||
// private void SetBracketAnimateByIndex(int count, float rate)
|
||||
// {
|
||||
// if(TowerBracketList == null)
|
||||
// TowerBracketList = new List<GameObject>();
|
||||
|
||||
int towerCount = TowerBracketList.Count;
|
||||
GameObject target;
|
||||
for(int i = 0; i < Mathf.Max(count, towerCount); i++)
|
||||
{
|
||||
if(i < towerCount)
|
||||
{
|
||||
target = TowerBracketList[i];
|
||||
target.transform.position =
|
||||
}
|
||||
else if(i < count)
|
||||
{
|
||||
// int towerCount = TowerBracketList.Count;
|
||||
// GameObject target;
|
||||
// for(int i = 0; i < Mathf.Max(count, towerCount); i++)
|
||||
// {
|
||||
// if(i < towerCount)
|
||||
// {
|
||||
// target = TowerBracketList[i];
|
||||
// //target.transform.position =
|
||||
// }
|
||||
// else if(i < count)
|
||||
// {
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
target = SpawnUnitBracket(BracketNode);
|
||||
}
|
||||
}
|
||||
// target = SpawnUnitBracket(BracketNode);
|
||||
// }
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public float GrowUnitBracket()
|
||||
{
|
||||
|
||||
}
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// /// <returns></returns>
|
||||
// public float GrowUnitBracket()
|
||||
// {
|
||||
// return 1;
|
||||
// }
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
// #endregion
|
||||
// }
|
||||
//}
|
||||
|
||||
@@ -219,8 +219,8 @@ namespace Exoa.Cameras
|
||||
{
|
||||
try
|
||||
{
|
||||
//transform.position = FinalPosition;
|
||||
transform.position = Vector3.Slerp(transform.position, FinalPosition, Time.unscaledDeltaTime * 10);
|
||||
transform.position = FinalPosition;
|
||||
//transform.position = Vector3.Slerp(transform.position, FinalPosition, Time.unscaledDeltaTime * 10);
|
||||
}
|
||||
catch (System.Exception) { };
|
||||
|
||||
|
||||
@@ -110,7 +110,6 @@ MonoBehaviour:
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_ColorSpace: -1
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
m_IntensityVariation: 0
|
||||
@@ -179,7 +178,7 @@ MonoBehaviour:
|
||||
positionOffset: {x: 0, y: 0}
|
||||
angularOffset: 0
|
||||
translationScale: {x: 1, y: 1}
|
||||
m_LocalIntensity: 0.2
|
||||
m_LocalIntensity: 1
|
||||
lensFlareTexture: {fileID: 2800000, guid: df2034d9b8cbd4b4f87e2f8da75edeb6, type: 3}
|
||||
uniformScale: 6.38
|
||||
sizeXY: {x: 1, y: 1}
|
||||
@@ -271,7 +270,6 @@ MonoBehaviour:
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_ColorSpace: -1
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
m_IntensityVariation: 0
|
||||
@@ -432,7 +430,6 @@ MonoBehaviour:
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_ColorSpace: -1
|
||||
m_NumColorKeys: 6
|
||||
m_NumAlphaKeys: 2
|
||||
m_IntensityVariation: 0
|
||||
@@ -620,7 +617,6 @@ MonoBehaviour:
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_ColorSpace: -1
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
m_IntensityVariation: 0
|
||||
@@ -781,7 +777,6 @@ MonoBehaviour:
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_ColorSpace: -1
|
||||
m_NumColorKeys: 6
|
||||
m_NumAlphaKeys: 2
|
||||
m_IntensityVariation: 0
|
||||
@@ -942,7 +937,6 @@ MonoBehaviour:
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_ColorSpace: -1
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
m_IntensityVariation: 0
|
||||
@@ -1103,7 +1097,6 @@ MonoBehaviour:
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_ColorSpace: -1
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
m_IntensityVariation: 0
|
||||
@@ -1264,7 +1257,6 @@ MonoBehaviour:
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_ColorSpace: -1
|
||||
m_NumColorKeys: 6
|
||||
m_NumAlphaKeys: 2
|
||||
m_IntensityVariation: 0
|
||||
@@ -1425,7 +1417,6 @@ MonoBehaviour:
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_ColorSpace: -1
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
m_IntensityVariation: 0
|
||||
|
||||
@@ -105,19 +105,19 @@ MonoBehaviour:
|
||||
m_Value: 1
|
||||
m_StepCount:
|
||||
m_OverrideState: 1
|
||||
m_Value: 6
|
||||
m_Value: 16
|
||||
m_FullResolution:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
m_Value: 1
|
||||
m_MaximumRadiusInPixels:
|
||||
m_OverrideState: 1
|
||||
m_Value: 40
|
||||
m_Value: 80
|
||||
m_BilateralUpsample:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_DirectionCount:
|
||||
m_OverrideState: 1
|
||||
m_Value: 2
|
||||
m_Value: 4
|
||||
m_RayLength:
|
||||
m_OverrideState: 1
|
||||
m_Value: 2
|
||||
@@ -567,7 +567,7 @@ MonoBehaviour:
|
||||
m_Value: 64
|
||||
m_VolumetricFogBudget:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.333
|
||||
m_Value: 0.5
|
||||
m_ResolutionDepthRatio:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.5
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d461a8d6a277fe14ebd39e8e15dfdfc7
|
||||
guid: 68a92ea78652d154b9c29e3f0f8ab9b8
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 112000000
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 426 KiB After Width: | Height: | Size: 122 KiB |
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 93a9037f0b16c5343a441306f78624c4
|
||||
guid: c2ba4a6908336e247af005380d5da50e
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8c6bb19f72202714dacc5bdd53c1a158
|
||||
guid: b2f90eeb3afc8674cbd354985b9a1698
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
|
||||
BIN
Assets/Scenes/PrefabEditingScene/Lightmap-1_comp_dir.png
Normal file
BIN
Assets/Scenes/PrefabEditingScene/Lightmap-1_comp_dir.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 477 KiB |
112
Assets/Scenes/PrefabEditingScene/Lightmap-1_comp_dir.png.meta
Normal file
112
Assets/Scenes/PrefabEditingScene/Lightmap-1_comp_dir.png.meta
Normal file
@@ -0,0 +1,112 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ac28ef3fb7bda864b8ae4ac3d3aaa0c0
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
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
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 1
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 3
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
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: 12
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
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
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Scenes/PrefabEditingScene/Lightmap-1_comp_light.exr
Normal file
BIN
Assets/Scenes/PrefabEditingScene/Lightmap-1_comp_light.exr
Normal file
Binary file not shown.
112
Assets/Scenes/PrefabEditingScene/Lightmap-1_comp_light.exr.meta
Normal file
112
Assets/Scenes/PrefabEditingScene/Lightmap-1_comp_light.exr.meta
Normal file
@@ -0,0 +1,112 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 66b519dc7608fc0418b4d009b30d318d
|
||||
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
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 1
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 3
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
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: 0
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 6
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
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
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Scenes/PrefabEditingScene/Lightmap-2_comp_dir.png
Normal file
BIN
Assets/Scenes/PrefabEditingScene/Lightmap-2_comp_dir.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 128 KiB |
112
Assets/Scenes/PrefabEditingScene/Lightmap-2_comp_dir.png.meta
Normal file
112
Assets/Scenes/PrefabEditingScene/Lightmap-2_comp_dir.png.meta
Normal file
@@ -0,0 +1,112 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 81ad2204d77db4c4da216ed9381b030d
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 0
|
||||
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
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 1
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 3
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
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: 12
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
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
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Scenes/PrefabEditingScene/Lightmap-2_comp_light.exr
Normal file
BIN
Assets/Scenes/PrefabEditingScene/Lightmap-2_comp_light.exr
Normal file
Binary file not shown.
112
Assets/Scenes/PrefabEditingScene/Lightmap-2_comp_light.exr.meta
Normal file
112
Assets/Scenes/PrefabEditingScene/Lightmap-2_comp_light.exr.meta
Normal file
@@ -0,0 +1,112 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 196107a0ceab4dd4883fb7bd3e308b76
|
||||
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
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 1
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 3
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
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: 0
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 6
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
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
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Scenes/Volume.meta
Normal file
8
Assets/Scenes/Volume.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d57395d2d950d234eb0bf89a397d4f1a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
1186
Assets/Scenes/Volume/VolumeGlobal Z.asset
Normal file
1186
Assets/Scenes/Volume/VolumeGlobal Z.asset
Normal file
File diff suppressed because it is too large
Load Diff
8
Assets/Scenes/Volume/VolumeGlobal Z.asset.meta
Normal file
8
Assets/Scenes/Volume/VolumeGlobal Z.asset.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 370ea50389229a74089f977bf33dcbab
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
422
Assets/Scenes/Volume/VolumeRayTracingProfile Z.asset
Normal file
422
Assets/Scenes/Volume/VolumeRayTracingProfile Z.asset
Normal file
@@ -0,0 +1,422 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-2847105570932170210
|
||||
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: d877a03bef431a847adca8ab343db3e1, type: 3}
|
||||
m_Name: RayTracingSettings
|
||||
m_EditorClassIdentifier:
|
||||
active: 1
|
||||
rayBias:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.001
|
||||
distantRayBias:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.001
|
||||
extendShadowCulling:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
extendCameraCulling:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
directionalShadowRayLength:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1000
|
||||
directionalShadowFallbackIntensity:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
buildMode:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
cullingMode:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
cullingDistance:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1000
|
||||
--- !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: VolumeRayTracingProfile Z
|
||||
m_EditorClassIdentifier:
|
||||
components:
|
||||
- {fileID: 6426704641791874640}
|
||||
- {fileID: 9153205287893682077}
|
||||
- {fileID: 3641022199399448222}
|
||||
- {fileID: -2847105570932170210}
|
||||
- {fileID: 5442155027611909722}
|
||||
- {fileID: 2677739484256048676}
|
||||
--- !u!114 &2677739484256048676
|
||||
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: 31394aa05878563408489d5c1688f3a0, type: 3}
|
||||
m_Name: PathTracing
|
||||
m_EditorClassIdentifier:
|
||||
active: 0
|
||||
enable:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
layerMask:
|
||||
m_OverrideState: 0
|
||||
m_Value:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
maximumSamples:
|
||||
m_OverrideState: 0
|
||||
m_Value: 256
|
||||
minimumDepth:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
maximumDepth:
|
||||
m_OverrideState: 0
|
||||
m_Value: 4
|
||||
maximumIntensity:
|
||||
m_OverrideState: 0
|
||||
m_Value: 10
|
||||
denoising:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
useAOVs:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
temporal:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
asyncDenoising:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
skyImportanceSampling:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
tilingParameters:
|
||||
m_OverrideState: 0
|
||||
m_Value: {x: 1, y: 1, z: 0, w: 0}
|
||||
--- !u!114 &3641022199399448222
|
||||
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: 9008a067f4d626c4d8bc4bc48f04bb89, type: 3}
|
||||
m_Name: ScreenSpaceAmbientOcclusion
|
||||
m_EditorClassIdentifier:
|
||||
active: 1
|
||||
quality:
|
||||
m_OverrideState: 1
|
||||
m_Value: 3
|
||||
rayTracing:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
intensity:
|
||||
m_OverrideState: 1
|
||||
m_Value: 2
|
||||
directLightingStrength:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
radius:
|
||||
m_OverrideState: 0
|
||||
m_Value: 2
|
||||
spatialBilateralAggressiveness:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.15
|
||||
temporalAccumulation:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
ghostingReduction:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.5
|
||||
blurSharpness:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.1
|
||||
layerMask:
|
||||
m_OverrideState: 1
|
||||
m_Value:
|
||||
serializedVersion: 2
|
||||
m_Bits: 819
|
||||
specularOcclusion:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.5
|
||||
occluderMotionRejection:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
receiverMotionRejection:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
m_StepCount:
|
||||
m_OverrideState: 1
|
||||
m_Value: 16
|
||||
m_FullResolution:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_MaximumRadiusInPixels:
|
||||
m_OverrideState: 1
|
||||
m_Value: 80
|
||||
m_BilateralUpsample:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_DirectionCount:
|
||||
m_OverrideState: 1
|
||||
m_Value: 4
|
||||
m_RayLength:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_SampleCount:
|
||||
m_OverrideState: 1
|
||||
m_Value: 8
|
||||
m_Denoise:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_DenoiserRadius:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.001
|
||||
--- !u!114 &5442155027611909722
|
||||
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: 2f1984a7ac01bf84b86559f7595cdc68, type: 3}
|
||||
m_Name: LightCluster
|
||||
m_EditorClassIdentifier:
|
||||
active: 1
|
||||
cameraClusterRange:
|
||||
m_OverrideState: 1
|
||||
m_Value: 50
|
||||
--- !u!114 &6426704641791874640
|
||||
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: 384c4d03a551c44448145f4093304119, type: 3}
|
||||
m_Name: ScreenSpaceReflection
|
||||
m_EditorClassIdentifier:
|
||||
active: 1
|
||||
quality:
|
||||
m_OverrideState: 1
|
||||
m_Value: 3
|
||||
enabled:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
enabledTransparent:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
tracing:
|
||||
m_OverrideState: 1
|
||||
m_Value: 4
|
||||
m_MinSmoothness:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.6
|
||||
m_SmoothnessFadeStart:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.8
|
||||
reflectSky:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
usedAlgorithm:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
depthBufferThickness:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.01
|
||||
screenFadeDistance:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.1
|
||||
accumulationFactor:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.75
|
||||
biasFactor:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.5
|
||||
speedRejectionParam:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.5
|
||||
speedRejectionScalerFactor:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.2
|
||||
speedSmoothReject:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
speedSurfaceOnly:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
speedTargetOnly:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
enableWorldSpeedRejection:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
m_RayMaxIterations:
|
||||
m_OverrideState: 0
|
||||
m_Value: 32
|
||||
rayMiss:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
lastBounceFallbackHierarchy:
|
||||
m_OverrideState: 1
|
||||
m_Value: 2
|
||||
ambientProbeDimmer:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
layerMask:
|
||||
m_OverrideState: 0
|
||||
m_Value:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
textureLodBias:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
m_RayLength:
|
||||
m_OverrideState: 1
|
||||
m_Value: 60
|
||||
m_ClampValue:
|
||||
m_OverrideState: 1
|
||||
m_Value: 10
|
||||
m_Denoise:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_DenoiserRadius:
|
||||
m_OverrideState: 1
|
||||
m_Value: 8
|
||||
m_AffectSmoothSurfaces:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
mode:
|
||||
m_OverrideState: 1
|
||||
m_Value: 2
|
||||
m_FullResolution:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
sampleCount:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
bounceCount:
|
||||
m_OverrideState: 0
|
||||
m_Value: 1
|
||||
m_RayMaxIterationsRT:
|
||||
m_OverrideState: 1
|
||||
m_Value: 48
|
||||
--- !u!114 &9153205287893682077
|
||||
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: 42ef2681fa3dc8c4fa031f044e68c63f, type: 3}
|
||||
m_Name: GlobalIllumination
|
||||
m_EditorClassIdentifier:
|
||||
active: 1
|
||||
quality:
|
||||
m_OverrideState: 1
|
||||
m_Value: 3
|
||||
enable:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
tracing:
|
||||
m_OverrideState: 1
|
||||
m_Value: 4
|
||||
rayMiss:
|
||||
m_OverrideState: 1
|
||||
m_Value: 3
|
||||
depthBufferThickness:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0.1
|
||||
fullResolutionSS:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
m_MaxRaySteps:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_DenoiseSS:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_HalfResolutionDenoiserSS:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
m_DenoiserRadiusSS:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.6
|
||||
m_SecondDenoiserPassSS:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
lastBounceFallbackHierarchy:
|
||||
m_OverrideState: 1
|
||||
m_Value: 2
|
||||
ambientProbeDimmer:
|
||||
m_OverrideState: 0
|
||||
m_Value: 0
|
||||
layerMask:
|
||||
m_OverrideState: 1
|
||||
m_Value:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
textureLodBias:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_RayLength:
|
||||
m_OverrideState: 1
|
||||
m_Value: 20
|
||||
m_ClampValue:
|
||||
m_OverrideState: 1
|
||||
m_Value: 10
|
||||
mode:
|
||||
m_OverrideState: 1
|
||||
m_Value: 2
|
||||
m_FullResolution:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
sampleCount:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
bounceCount:
|
||||
m_OverrideState: 1
|
||||
m_Value: 3
|
||||
m_Denoise:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_HalfResolutionDenoiser:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_DenoiserRadius:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0.001
|
||||
m_SecondDenoiserPass:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
m_MaxMixedRaySteps:
|
||||
m_OverrideState: 1
|
||||
m_Value: 48
|
||||
receiverMotionRejection:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 189fc5bfe6cebd143830919be9a0bf8f
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/ZMS/Prefab/UIUSE.meta
Normal file
8
Assets/ZMS/Prefab/UIUSE.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 881ac1463750d3243845d014a01eb8c6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
373
Assets/ZMS/Prefab/UIUSE/Toggle.prefab
Normal file
373
Assets/ZMS/Prefab/UIUSE/Toggle.prefab
Normal file
@@ -0,0 +1,373 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &245550353186765391
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5312849431017169694}
|
||||
- component: {fileID: 7617281403081634600}
|
||||
m_Layer: 5
|
||||
m_Name: Toggle
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &5312849431017169694
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 245550353186765391}
|
||||
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:
|
||||
- {fileID: 5294862559410752645}
|
||||
- {fileID: 8355933924819917442}
|
||||
m_Father: {fileID: 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: -859, y: 202}
|
||||
m_SizeDelta: {x: 191.2056, y: 63.6877}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &7617281403081634600
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 245550353186765391}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 8367084944928810191}
|
||||
toggleTransition: 1
|
||||
graphic: {fileID: 6105538390508509631}
|
||||
m_Group: {fileID: 0}
|
||||
onValueChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_IsOn: 1
|
||||
--- !u!1 &1702589068109422508
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 107093627559674794}
|
||||
- component: {fileID: 3290995213042799059}
|
||||
- component: {fileID: 6105538390508509631}
|
||||
m_Layer: 5
|
||||
m_Name: Checkmark
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &107093627559674794
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1702589068109422508}
|
||||
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: 5294862559410752645}
|
||||
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: 20, y: 20}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3290995213042799059
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1702589068109422508}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &6105538390508509631
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1702589068109422508}
|
||||
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: 10901, guid: 0000000000000000f000000000000000, type: 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!1 &2497619058499190019
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8355933924819917442}
|
||||
- component: {fileID: 7196149178956434448}
|
||||
- component: {fileID: 7544655081771924108}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8355933924819917442
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2497619058499190019}
|
||||
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: 5312849431017169694}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7196149178956434448
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2497619058499190019}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &7544655081771924108
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2497619058499190019}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, 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_text: "\u6F2B\u6E38"
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 48d1ada2a54a92e4ab38b79bf26d31ac, type: 2}
|
||||
m_sharedMaterial: {fileID: -4678973260185625890, guid: 48d1ada2a54a92e4ab38b79bf26d31ac, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4278190080
|
||||
m_fontColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 40
|
||||
m_fontSizeBase: 40
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &7581559365903851768
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5294862559410752645}
|
||||
- component: {fileID: 1564938835689541178}
|
||||
- component: {fileID: 8367084944928810191}
|
||||
m_Layer: 5
|
||||
m_Name: Background
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &5294862559410752645
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7581559365903851768}
|
||||
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:
|
||||
- {fileID: 107093627559674794}
|
||||
m_Father: {fileID: 5312849431017169694}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1564938835689541178
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7581559365903851768}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8367084944928810191
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7581559365903851768}
|
||||
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: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
7
Assets/ZMS/Prefab/UIUSE/Toggle.prefab.meta
Normal file
7
Assets/ZMS/Prefab/UIUSE/Toggle.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ff46e0f997b0a6e45b9e8bea740f3270
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
347
Assets/ZMS/Script/3D/CameraUSE/CameraPointWinding.cs
Normal file
347
Assets/ZMS/Script/3D/CameraUSE/CameraPointWinding.cs
Normal file
@@ -0,0 +1,347 @@
|
||||
using Sirenix.OdinInspector;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
namespace ZMS.CamareCustomUSE
|
||||
{
|
||||
/*
|
||||
* 1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Χ<EFBFBD><CEA7>ij<EFBFBD>㣨<EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD>ƶ<EFBFBD><C6B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɻ<EFBFBD><C9BB><EFBFBD>
|
||||
* 2<><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>У<D0A3><D7BC><EFBFBD>뾶<EFBFBD><EBBEB6>
|
||||
*/
|
||||
public class CameraPointWinding : MonoBehaviour
|
||||
{
|
||||
public static CameraPointWinding instance;
|
||||
public Transform CenObj;//<2F><><EFBFBD>ӵ<EFBFBD><D3B5><EFBFBD><EFBFBD><EFBFBD>
|
||||
private Vector2 museDelta_V2;//ƫ<><C6AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼
|
||||
public Vector2 eulerPeak = new Vector2(5, 85);//<2F><>ת<EFBFBD><D7AA>ֵ
|
||||
|
||||
public static ControlCamera_Enum controlCamera_Enum;
|
||||
public static Action fauscEndAction;//<2F>۽<EFBFBD><DBBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD>
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
instance = this;
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
MC = transform;
|
||||
}
|
||||
void Update()
|
||||
{
|
||||
if (controlCamera_Enum == ControlCamera_Enum.OverAll)
|
||||
{
|
||||
|
||||
}
|
||||
if (controlCamera_Enum == ControlCamera_Enum.Follw)
|
||||
{
|
||||
GetFollowTransform();
|
||||
|
||||
}
|
||||
if (controlCamera_Enum == ControlCamera_Enum.Winding)
|
||||
{
|
||||
|
||||
Ctrl_Cam_Move();
|
||||
Cam_Ctrl_Rotation();
|
||||
}
|
||||
if (controlCamera_Enum == ControlCamera_Enum.Focus)
|
||||
{
|
||||
FocusFunction();
|
||||
}
|
||||
}
|
||||
|
||||
public void LateUpdate()
|
||||
{
|
||||
if (MC && follow_target && controlCamera_Enum == ControlCamera_Enum.Follw)
|
||||
{
|
||||
HistoryLerping();
|
||||
}
|
||||
}
|
||||
//<2F><>ͷ<EFBFBD><CDB7>Զ<EFBFBD><D4B6><EFBFBD>ͽӽ<CDBD>
|
||||
public void Ctrl_Cam_Move()
|
||||
{
|
||||
if (Mouse.current.scroll.ReadValue().y > 0)
|
||||
{
|
||||
transform.Translate(Vector3.forward * 1f * Time.deltaTime);
|
||||
}
|
||||
if (Mouse.current.scroll.ReadValue().y < 0)
|
||||
{
|
||||
transform.Translate(Vector3.forward * -1f * Time.deltaTime);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת
|
||||
public void Cam_Ctrl_Rotation()
|
||||
{
|
||||
if (Mouse.current.rightButton.isPressed)
|
||||
{
|
||||
museDelta_V2.x = Mouse.current.delta.ReadValue().x;//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>X<EFBFBD><58><EFBFBD>ƶ<EFBFBD>
|
||||
museDelta_V2.y = -Mouse.current.delta.ReadValue().y;//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>Y<EFBFBD><59><EFBFBD>ƶ<EFBFBD>
|
||||
}
|
||||
|
||||
//museDelta_V2.x = Mathf.Lerp(museDelta_V2.x,0,Time.deltaTime);
|
||||
if (museDelta_V2.x != 0)
|
||||
{
|
||||
transform.RotateAround(CenObj.position, Vector3.up, museDelta_V2.x = Mathf.Lerp(museDelta_V2.x, 0, 0.5f) * 0.5f);
|
||||
Debug.Log("aa" + museDelta_V2.x);
|
||||
}
|
||||
if ((museDelta_V2.y > 0 && transform.eulerAngles.x < eulerPeak.y) || (museDelta_V2.y < 0 && transform.eulerAngles.x > eulerPeak.x))
|
||||
{
|
||||
print(museDelta_V2.y);
|
||||
//<2F>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7>ᳬ<EFBFBD><E1B3AC>
|
||||
if (museDelta_V2.y + transform.eulerAngles.x > eulerPeak.y)
|
||||
{
|
||||
museDelta_V2.y = eulerPeak.y - transform.eulerAngles.x;
|
||||
}
|
||||
if (transform.eulerAngles.x + museDelta_V2.y < eulerPeak.x)
|
||||
{
|
||||
museDelta_V2.y = eulerPeak.x - transform.eulerAngles.x;
|
||||
}
|
||||
//Debug.Log(museDelta_V2.y);
|
||||
transform.RotateAround(CenObj.position, transform.right, museDelta_V2.y = Mathf.Lerp(museDelta_V2.y, 0, 0.5f) * 0.5f);
|
||||
}
|
||||
}
|
||||
|
||||
#region <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
List<Vector3> Pos = new List<Vector3>();
|
||||
List<Quaternion> Rot = new List<Quaternion>();
|
||||
private float lerpRate;
|
||||
public float normalLerpRate = 1f;
|
||||
public float fasterLerpRate = 2f;
|
||||
public float closeEnough = 0;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>follow_target<65><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵʱ<D6B5><CAB1>ʹ<EFBFBD><CAB9>ƽ<EFBFBD><C6BD><EFBFBD>ƶ<EFBFBD>
|
||||
public bool follow_immediately = false;
|
||||
public bool follow_faster = false;
|
||||
|
||||
bool isRotate = true;
|
||||
public float angleSpeed = 0.1f;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ٶ<EFBFBD>
|
||||
public Transform MC;
|
||||
public Transform follow_target;
|
||||
|
||||
void GetFollowTransform()
|
||||
{
|
||||
if (MC && follow_target)
|
||||
{
|
||||
Pos.Add(follow_target.position);
|
||||
Rot.Add(follow_target.rotation);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//ʼ<>ճ<EFBFBD><D5B3><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD>岢<EFBFBD><E5B2A2><EFBFBD><EFBFBD>
|
||||
void HistoryLerping()
|
||||
{
|
||||
|
||||
int PC = Pos.Count;
|
||||
if (PC > 0)
|
||||
{
|
||||
//λ<><CEBB><EFBFBD>㹻<EFBFBD>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD>Ӷ<EFBFBD><D3B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƴ<EFBFBD><C6B3><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ž<EFBFBD><C5BE>ǵڶ<C7B5><DAB6><EFBFBD>
|
||||
if (Vector3.Distance(MC.transform.position, Pos[0]) < closeEnough)
|
||||
{
|
||||
Pos.RemoveAt(0);
|
||||
Rot.RemoveAt(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (follow_immediately)
|
||||
{
|
||||
MC.transform.position = Vector3.Lerp(MC.transform.position, Pos[0], 1);
|
||||
MC.transform.rotation = Quaternion.Lerp(MC.transform.rotation, Rot[0], 1);
|
||||
}
|
||||
else if (follow_faster)
|
||||
{
|
||||
MC.transform.position = Vector3.Lerp(MC.transform.position, Pos[0], Time.unscaledDeltaTime * lerpRate * 10);
|
||||
MC.transform.rotation = Quaternion.Lerp(MC.transform.rotation, Rot[0], 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
MC.transform.position = Vector3.Lerp(MC.transform.position, Pos[0], Time.unscaledDeltaTime * lerpRate);
|
||||
|
||||
|
||||
//MC.transform.rotation = Quaternion.Lerp(MC.transform.rotation, Rot[0], Time.unscaledDeltaTime * lerpRate);
|
||||
}
|
||||
Pos.RemoveAt(0);
|
||||
Rot.RemoveAt(0);
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><D0B9>ӿ<F3A3ACBC><D3BF><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD>ʣ<EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD>쵽<EFBFBD><ECB5BD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>
|
||||
if (PC > 1000)
|
||||
{
|
||||
lerpRate = 1000f;
|
||||
}
|
||||
else if (PC > 100)
|
||||
{
|
||||
lerpRate = 100f;
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD><EFBFBD><EFBFBD>ٶȹ<D9B6><C8B9><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>
|
||||
else if (PC > 10)
|
||||
{
|
||||
lerpRate = fasterLerpRate;
|
||||
}
|
||||
else
|
||||
{
|
||||
lerpRate = normalLerpRate;
|
||||
}
|
||||
if (follow_target)
|
||||
{
|
||||
//MC.transform.LookAt(follow_target);
|
||||
}
|
||||
}
|
||||
//MC.transform.LookAt(follow_target);
|
||||
//Quaternion rotate = Quaternion.LookRotation(follow_target.position - transform.position);
|
||||
//if (Vector3.Angle(vec, transform.forward) < 0.1f)
|
||||
//{
|
||||
// isRotate = false;
|
||||
//}
|
||||
//if (isRotate)
|
||||
//{
|
||||
// transform.localRotation = Quaternion.Slerp(transform.localRotation, rotate, angleSpeed);
|
||||
//}
|
||||
//if(controlCamera_Enum == ControlCamera_Enum.Follw)
|
||||
transform.localRotation = Quaternion.Slerp(transform.localRotation,
|
||||
Quaternion.LookRotation(follow_target.position - transform.position), angleSpeed);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>۽<EFBFBD>
|
||||
[LabelText("<22>۽<EFBFBD><DBBD>ٶ<EFBFBD>")]
|
||||
public float speed = 10f;
|
||||
|
||||
int method;
|
||||
bool isBreakSwitch = true;
|
||||
Transform startTransform;
|
||||
Transform targetTransform;
|
||||
Vector3 endPosition;
|
||||
Quaternion endQuaternion;
|
||||
|
||||
[LabelText("<22>۽<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>жϲ<D0B6><CFB2><EFBFBD>")]
|
||||
public float focusParameter_Distance = 0.5f;
|
||||
|
||||
[LabelText("<22>۽<EFBFBD> <20>Ƕ<EFBFBD><C7B6>жϲ<D0B6><CFB2><EFBFBD>")]
|
||||
public float focusParameter_Angle = 0.5f;
|
||||
|
||||
private Vector3 targetRelativeEulers = Vector3.zero;
|
||||
private Vector3 targetRelativePositon = Vector3.zero;
|
||||
|
||||
public Transform CameraJumpTarget;
|
||||
float maxdistance;
|
||||
void FocusFunction()
|
||||
{
|
||||
if (method == 0)
|
||||
ViewChange();
|
||||
}
|
||||
|
||||
void ViewChange()
|
||||
{
|
||||
if (!isBreakSwitch)
|
||||
{
|
||||
float distance = Vector3.Distance(startTransform.position, endPosition);
|
||||
float angle = Quaternion.Angle(startTransform.rotation, endQuaternion);
|
||||
if (distance <= focusParameter_Distance && angle <= focusParameter_Angle)
|
||||
{
|
||||
isBreakSwitch = true;
|
||||
print("<22>۽<EFBFBD><DBBD><EFBFBD><EFBFBD><EFBFBD>");
|
||||
//fauscEndAction?.Invoke();
|
||||
controlCamera_Enum = ControlCamera_Enum.Winding;
|
||||
return;
|
||||
}
|
||||
|
||||
//float speed = Mathf.Lerp(focusParameter_Distance, this.speed, Mathf.InverseLerp(focusParameter_Distance, maxdistance, distance));
|
||||
|
||||
startTransform.position = Vector3.Slerp(startTransform.position, endPosition, Time.unscaledDeltaTime * speed);
|
||||
startTransform.rotation = Quaternion.Slerp(startTransform.rotation, endQuaternion, Time.unscaledDeltaTime * speed);
|
||||
}
|
||||
}
|
||||
|
||||
public void DoFocus(Transform focusTo, Vector3 _relativeEulers, Vector3 _relativePositon, int i = 0)
|
||||
{
|
||||
targetRelativeEulers = _relativeEulers;
|
||||
targetRelativePositon = _relativePositon;
|
||||
isBreakSwitch = false;
|
||||
maxdistance = Vector3.Distance(focusTo.position, this.transform.position);
|
||||
GetStartTransform(this.transform);
|
||||
GetTargetTransform(focusTo);
|
||||
method = i;
|
||||
if (i == 1)
|
||||
ViewChangeImmediately();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the start transform.
|
||||
/// </summary>
|
||||
/// <returns>The start transform.</returns>
|
||||
/// <param name="start">Start.</param>
|
||||
Transform GetStartTransform(Transform start)
|
||||
{
|
||||
startTransform = start;
|
||||
return startTransform;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the target transform.
|
||||
/// </summary>
|
||||
/// <returns>The target transform.</returns>
|
||||
/// <param name="target">Target.</param>
|
||||
Transform GetTargetTransform(Transform target)
|
||||
{
|
||||
targetTransform = target;
|
||||
GetEndPosition();
|
||||
GetEndQuaternion();
|
||||
return targetTransform;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the end position.
|
||||
/// </summary>
|
||||
/// <returns>The end position.</returns>
|
||||
Vector3 GetEndPosition()
|
||||
{
|
||||
endPosition = targetTransform.position +
|
||||
targetTransform.forward * targetRelativePositon.x +
|
||||
targetTransform.up * targetRelativePositon.y +
|
||||
targetTransform.right * targetRelativePositon.z;
|
||||
return endPosition;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the end quaternion.
|
||||
/// </summary>
|
||||
/// <returns>The end quaternion.</returns>
|
||||
Quaternion GetEndQuaternion()
|
||||
{
|
||||
endQuaternion = Quaternion.Euler(Vector3.zero + targetRelativeEulers);
|
||||
return endQuaternion;
|
||||
}
|
||||
|
||||
void ViewChangeImmediately()
|
||||
{
|
||||
if (!isBreakSwitch)
|
||||
{
|
||||
startTransform.position = Vector3.Slerp(startTransform.position, endPosition, Time.time);
|
||||
startTransform.rotation = Quaternion.Slerp(startTransform.rotation, endQuaternion, Time.time);
|
||||
|
||||
if (Vector3.Distance(startTransform.position, endPosition) <= focusParameter_Distance &&
|
||||
Quaternion.Angle(startTransform.rotation, endQuaternion) <= focusParameter_Angle)
|
||||
{
|
||||
Debug.Log("Camera Arrived at the specified location!");
|
||||
isBreakSwitch = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
return;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
public enum ControlCamera_Enum
|
||||
{
|
||||
OverAll, Follw, Winding, Roam, Focus
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
8
Assets/ZMS/Script/3D/Configuration.meta
Normal file
8
Assets/ZMS/Script/3D/Configuration.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 639ef68e22524fb45ad8ea2113b5f700
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Assets/ZMS/Script/3D/Configuration/Configuration.cs
Normal file
24
Assets/ZMS/Script/3D/Configuration/Configuration.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ZMS.Configura
|
||||
{
|
||||
public class Configuration : MonoBehaviour
|
||||
{
|
||||
public string configFilepath;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
configFilepath = Application.persistentDataPath;
|
||||
}
|
||||
|
||||
|
||||
void Start()
|
||||
{
|
||||
print(configFilepath);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
11
Assets/ZMS/Script/3D/Configuration/Configuration.cs.meta
Normal file
11
Assets/ZMS/Script/3D/Configuration/Configuration.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0efb49266ae18e1499fbfd3fbef10813
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
11
Assets/ZMS/Script/3D/Configuration/ConstructConf.cs
Normal file
11
Assets/ZMS/Script/3D/Configuration/ConstructConf.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ZMS.Configura
|
||||
{
|
||||
public class ConstructConf : SiteConfigura
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/ZMS/Script/3D/Configuration/ConstructConf.cs.meta
Normal file
11
Assets/ZMS/Script/3D/Configuration/ConstructConf.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 450f6270807023d44a7d68294b1416e7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
42
Assets/ZMS/Script/3D/Configuration/SiteConfigura.cs
Normal file
42
Assets/ZMS/Script/3D/Configuration/SiteConfigura.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ZMS.Configura
|
||||
{
|
||||
public class SiteConfigura : MonoBehaviour
|
||||
{
|
||||
public Transform dimension_Trf;
|
||||
public float heigthSite;
|
||||
public Vector3 postionSite;
|
||||
|
||||
public virtual void Start()
|
||||
{
|
||||
SetPostionSite();
|
||||
}
|
||||
|
||||
//<2F>ֳ<EFBFBD><D6B3><EFBFBD><EFBFBD><EFBFBD>/<2F>豸λ<E8B1B8><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
public virtual void SetPostionSite()
|
||||
{
|
||||
transform.localPosition = postionSite;
|
||||
}
|
||||
|
||||
//<2F>ֳ<EFBFBD><D6B3><EFBFBD><EFBFBD><EFBFBD>/<2F>豸<EFBFBD>ߴ<EFBFBD><DFB4><EFBFBD><EFBFBD><EFBFBD>
|
||||
public virtual void SetDimensionsSite()
|
||||
{
|
||||
dimension_Trf.localScale = new Vector3(dimension_Trf.localScale.x,dimension_Trf.localScale .y,heigthSite);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
public enum HouseType
|
||||
{
|
||||
Singlek, BeConnected
|
||||
}
|
||||
|
||||
public enum Night
|
||||
{
|
||||
ѧϰ = 0,ߣ<EFBFBD><EFBFBD> = 1,<EFBFBD>ܲ<EFBFBD> = 2,<EFBFBD><EFBFBD><EFBFBD><EFBFBD> = 3,<EFBFBD>Ӱ<EFBFBD> = 4,<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϸ = 5,<EFBFBD><EFBFBD>ȥ<EFBFBD><EFBFBD> = 6,<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD> = 7,<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = 8
|
||||
}
|
||||
}
|
||||
11
Assets/ZMS/Script/3D/Configuration/SiteConfigura.cs.meta
Normal file
11
Assets/ZMS/Script/3D/Configuration/SiteConfigura.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9d7fb244001af6341b163955754c94e7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -3,61 +3,64 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using ZMS.CamareCustomUSE;
|
||||
|
||||
public class ViewPointSwitching : MonoBehaviour
|
||||
namespace ZMS.CamareCustomUSE
|
||||
{
|
||||
|
||||
public Toggle roam_Tog;//<2F><><EFBFBD><EFBFBD>
|
||||
public Toggle winding_Tog;//<2F><><EFBFBD><EFBFBD>
|
||||
public Toggle follow_Tog;//<2F><><EFBFBD><EFBFBD>
|
||||
public Toggle overAll_Tog;//ȫ<><C8AB>
|
||||
|
||||
public CameraPointWinding cameraPointWinding;
|
||||
public Transform tageTransf;
|
||||
void Start()
|
||||
public class ViewPointSwitching : MonoBehaviour
|
||||
{
|
||||
|
||||
roam_Tog.onValueChanged.AddListener((b)=>
|
||||
{
|
||||
print("<22><><EFBFBD><EFBFBD>");
|
||||
});
|
||||
public Toggle roam_Tog;//<2F><><EFBFBD><EFBFBD>
|
||||
public Toggle winding_Tog;//<2F><><EFBFBD><EFBFBD>
|
||||
public Toggle follow_Tog;//<2F><><EFBFBD><EFBFBD>
|
||||
public Toggle overAll_Tog;//ȫ<><C8AB>
|
||||
|
||||
winding_Tog.onValueChanged.AddListener((b) =>
|
||||
public CameraPointWinding cameraPointWinding;
|
||||
public Transform tageTransf;
|
||||
void Start()
|
||||
{
|
||||
print("<22><><EFBFBD><EFBFBD>");
|
||||
//CameraPointWinding.controlCamera_Enum = ControlCamera_Enum.Winding;
|
||||
CameraPointWinding.instance.DoFocus(tageTransf, tageTransf.eulerAngles,Vector3.zero);
|
||||
CameraPointWinding.controlCamera_Enum = ControlCamera_Enum.Focus;
|
||||
});
|
||||
follow_Tog.onValueChanged.AddListener((b) =>
|
||||
{
|
||||
print("<22><><EFBFBD><EFBFBD>");
|
||||
CameraPointWinding.controlCamera_Enum = ControlCamera_Enum.Follw;
|
||||
|
||||
});
|
||||
|
||||
overAll_Tog.onValueChanged.AddListener((b) =>
|
||||
{
|
||||
print("ȫ<><C8AB>");
|
||||
if (b)
|
||||
roam_Tog.onValueChanged.AddListener((b) =>
|
||||
{
|
||||
CameraPointWinding.controlCamera_Enum = ControlCamera_Enum.OverAll;
|
||||
Camera.main.GetComponent<CameraPerspective>().enabled = true;
|
||||
Camera.main.GetComponent<CameraPointWinding>().enabled = false;
|
||||
}
|
||||
else
|
||||
print("<22><><EFBFBD><EFBFBD>");
|
||||
});
|
||||
|
||||
winding_Tog.onValueChanged.AddListener((b) =>
|
||||
{
|
||||
Camera.main.GetComponent<CameraPerspective>().enabled = false;
|
||||
Camera.main.GetComponent<CameraPointWinding>().enabled = true;
|
||||
}
|
||||
});
|
||||
overAll_Tog.isOn = true;
|
||||
print("<22><><EFBFBD><EFBFBD>");
|
||||
//CameraPointWinding.controlCamera_Enum = ControlCamera_Enum.Winding;
|
||||
CameraPointWinding.instance.DoFocus(tageTransf, tageTransf.eulerAngles, Vector3.zero);
|
||||
CameraPointWinding.controlCamera_Enum = ControlCamera_Enum.Focus;
|
||||
});
|
||||
follow_Tog.onValueChanged.AddListener((b) =>
|
||||
{
|
||||
print("<22><><EFBFBD><EFBFBD>");
|
||||
CameraPointWinding.controlCamera_Enum = ControlCamera_Enum.Follw;
|
||||
|
||||
});
|
||||
|
||||
overAll_Tog.onValueChanged.AddListener((b) =>
|
||||
{
|
||||
print("ȫ<><C8AB>");
|
||||
if (b)
|
||||
{
|
||||
CameraPointWinding.controlCamera_Enum = ControlCamera_Enum.OverAll;
|
||||
Camera.main.GetComponent<CameraPerspective>().enabled = true;
|
||||
Camera.main.GetComponent<CameraPointWinding>().enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Camera.main.GetComponent<CameraPerspective>().enabled = false;
|
||||
Camera.main.GetComponent<CameraPointWinding>().enabled = true;
|
||||
}
|
||||
});
|
||||
overAll_Tog.isOn = true;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,352 +0,0 @@
|
||||
using Sirenix.OdinInspector;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
namespace ZMS
|
||||
{
|
||||
namespace CamareCustomUSE
|
||||
{
|
||||
/*
|
||||
* 1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Χ<EFBFBD><CEA7>ij<EFBFBD>㣨<EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD>ƶ<EFBFBD><C6B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɻ<EFBFBD><C9BB><EFBFBD>
|
||||
* 2<><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>У<D0A3><D7BC><EFBFBD>뾶<EFBFBD><EBBEB6>
|
||||
*/
|
||||
public class CameraPointWinding : MonoBehaviour
|
||||
{
|
||||
public static CameraPointWinding instance;
|
||||
public Transform CenObj;//<2F><><EFBFBD>ӵ<EFBFBD><D3B5><EFBFBD><EFBFBD><EFBFBD>
|
||||
private Vector2 museDelta_V2;//ƫ<><C6AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼
|
||||
public Vector2 eulerPeak = new Vector2(5,85);//<2F><>ת<EFBFBD><D7AA>ֵ
|
||||
|
||||
public static ControlCamera_Enum controlCamera_Enum;
|
||||
public static Action fauscEndAction;//<2F>۽<EFBFBD><DBBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD>
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
instance = this;
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
MC = transform;
|
||||
}
|
||||
void Update()
|
||||
{
|
||||
if (controlCamera_Enum == ControlCamera_Enum.OverAll)
|
||||
{
|
||||
|
||||
}
|
||||
if (controlCamera_Enum == ControlCamera_Enum.Follw)
|
||||
{
|
||||
GetFollowTransform();
|
||||
|
||||
}
|
||||
if (controlCamera_Enum == ControlCamera_Enum.Winding)
|
||||
{
|
||||
|
||||
Ctrl_Cam_Move();
|
||||
Cam_Ctrl_Rotation();
|
||||
}
|
||||
if (controlCamera_Enum == ControlCamera_Enum.Focus)
|
||||
{
|
||||
FocusFunction();
|
||||
}
|
||||
}
|
||||
|
||||
public void LateUpdate()
|
||||
{
|
||||
if (MC && follow_target&& controlCamera_Enum == ControlCamera_Enum.Follw)
|
||||
{
|
||||
HistoryLerping();
|
||||
}
|
||||
}
|
||||
//<2F><>ͷ<EFBFBD><CDB7>Զ<EFBFBD><D4B6><EFBFBD>ͽӽ<CDBD>
|
||||
public void Ctrl_Cam_Move()
|
||||
{
|
||||
if (Mouse.current.scroll.ReadValue().y > 0)
|
||||
{
|
||||
transform.Translate(Vector3.forward * 1f * Time.deltaTime);
|
||||
}
|
||||
if (Mouse.current.scroll.ReadValue().y < 0)
|
||||
{
|
||||
transform.Translate(Vector3.forward * -1f * Time.deltaTime);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת
|
||||
public void Cam_Ctrl_Rotation()
|
||||
{
|
||||
if (Mouse.current.rightButton.isPressed)
|
||||
{
|
||||
museDelta_V2.x = Mouse.current.delta.ReadValue().x;//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>X<EFBFBD><58><EFBFBD>ƶ<EFBFBD>
|
||||
museDelta_V2.y = -Mouse.current.delta.ReadValue().y;//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>Y<EFBFBD><59><EFBFBD>ƶ<EFBFBD>
|
||||
}
|
||||
|
||||
//museDelta_V2.x = Mathf.Lerp(museDelta_V2.x,0,Time.deltaTime);
|
||||
if (museDelta_V2.x != 0)
|
||||
{
|
||||
transform.RotateAround(CenObj.position, Vector3.up, museDelta_V2.x = Mathf.Lerp(museDelta_V2.x, 0, 0.5f) * 0.5f);
|
||||
Debug.Log("aa"+ museDelta_V2.x);
|
||||
}
|
||||
if ((museDelta_V2.y > 0 && transform.eulerAngles.x < eulerPeak.y) || (museDelta_V2.y < 0 && transform.eulerAngles.x > eulerPeak.x))
|
||||
{
|
||||
print(museDelta_V2.y);
|
||||
//<2F>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7>ᳬ<EFBFBD><E1B3AC>
|
||||
if (museDelta_V2.y + transform.eulerAngles.x > eulerPeak.y)
|
||||
{
|
||||
museDelta_V2.y = eulerPeak.y - transform.eulerAngles.x;
|
||||
}
|
||||
if (transform.eulerAngles.x + museDelta_V2.y < eulerPeak.x)
|
||||
{
|
||||
museDelta_V2.y = eulerPeak.x - transform.eulerAngles.x;
|
||||
}
|
||||
//Debug.Log(museDelta_V2.y);
|
||||
transform.RotateAround(CenObj.position, transform.right, museDelta_V2.y = Mathf.Lerp(museDelta_V2.y, 0, 0.5f) * 0.5f);
|
||||
}
|
||||
}
|
||||
|
||||
#region <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
List<Vector3> Pos = new List<Vector3>();
|
||||
List<Quaternion> Rot = new List<Quaternion>();
|
||||
private float lerpRate;
|
||||
public float normalLerpRate = 1f;
|
||||
public float fasterLerpRate = 2f;
|
||||
public float closeEnough = 0;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>follow_target<65><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵʱ<D6B5><CAB1>ʹ<EFBFBD><CAB9>ƽ<EFBFBD><C6BD><EFBFBD>ƶ<EFBFBD>
|
||||
public bool follow_immediately = false;
|
||||
public bool follow_faster = false;
|
||||
|
||||
bool isRotate = true;
|
||||
public float angleSpeed = 0.1f;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ٶ<EFBFBD>
|
||||
public Transform MC;
|
||||
public Transform follow_target;
|
||||
|
||||
void GetFollowTransform()
|
||||
{
|
||||
if (MC && follow_target)
|
||||
{
|
||||
Pos.Add(follow_target.position);
|
||||
Rot.Add(follow_target.rotation);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//ʼ<>ճ<EFBFBD><D5B3><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD><EFBFBD>岢<EFBFBD><E5B2A2><EFBFBD><EFBFBD>
|
||||
void HistoryLerping()
|
||||
{
|
||||
|
||||
int PC = Pos.Count;
|
||||
if (PC > 0)
|
||||
{
|
||||
//λ<><CEBB><EFBFBD>㹻<EFBFBD>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD>Ӷ<EFBFBD><D3B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƴ<EFBFBD><C6B3><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ž<EFBFBD><C5BE>ǵڶ<C7B5><DAB6><EFBFBD>
|
||||
if (Vector3.Distance(MC.transform.position, Pos[0]) < closeEnough)
|
||||
{
|
||||
Pos.RemoveAt(0);
|
||||
Rot.RemoveAt(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (follow_immediately)
|
||||
{
|
||||
MC.transform.position = Vector3.Lerp(MC.transform.position, Pos[0], 1);
|
||||
MC.transform.rotation = Quaternion.Lerp(MC.transform.rotation, Rot[0], 1);
|
||||
}
|
||||
else if (follow_faster)
|
||||
{
|
||||
MC.transform.position = Vector3.Lerp(MC.transform.position, Pos[0], Time.unscaledDeltaTime * lerpRate * 10);
|
||||
MC.transform.rotation = Quaternion.Lerp(MC.transform.rotation, Rot[0], 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
MC.transform.position = Vector3.Lerp(MC.transform.position, Pos[0], Time.unscaledDeltaTime * lerpRate);
|
||||
|
||||
|
||||
//MC.transform.rotation = Quaternion.Lerp(MC.transform.rotation, Rot[0], Time.unscaledDeltaTime * lerpRate);
|
||||
}
|
||||
Pos.RemoveAt(0);
|
||||
Rot.RemoveAt(0);
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><D0B9>ӿ<F3A3ACBC><D3BF><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD>ʣ<EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD>쵽<EFBFBD><ECB5BD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>
|
||||
if (PC > 1000)
|
||||
{
|
||||
lerpRate = 1000f;
|
||||
}
|
||||
else if (PC > 100)
|
||||
{
|
||||
lerpRate = 100f;
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD><EFBFBD><EFBFBD>ٶȹ<D9B6><C8B9><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>
|
||||
else if (PC > 10)
|
||||
{
|
||||
lerpRate = fasterLerpRate;
|
||||
}
|
||||
else
|
||||
{
|
||||
lerpRate = normalLerpRate;
|
||||
}
|
||||
if (follow_target)
|
||||
{
|
||||
//MC.transform.LookAt(follow_target);
|
||||
}
|
||||
}
|
||||
//MC.transform.LookAt(follow_target);
|
||||
//Quaternion rotate = Quaternion.LookRotation(follow_target.position - transform.position);
|
||||
//if (Vector3.Angle(vec, transform.forward) < 0.1f)
|
||||
//{
|
||||
// isRotate = false;
|
||||
//}
|
||||
//if (isRotate)
|
||||
//{
|
||||
// transform.localRotation = Quaternion.Slerp(transform.localRotation, rotate, angleSpeed);
|
||||
//}
|
||||
//if(controlCamera_Enum == ControlCamera_Enum.Follw)
|
||||
transform.localRotation = Quaternion.Slerp(transform.localRotation,
|
||||
Quaternion.LookRotation(follow_target.position - transform.position), angleSpeed);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>۽<EFBFBD>
|
||||
[LabelText("<22>۽<EFBFBD><DBBD>ٶ<EFBFBD>")]
|
||||
public float speed = 10f;
|
||||
|
||||
int method;
|
||||
bool isBreakSwitch = true;
|
||||
Transform startTransform;
|
||||
Transform targetTransform;
|
||||
Vector3 endPosition;
|
||||
Quaternion endQuaternion;
|
||||
|
||||
[LabelText("<22>۽<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>жϲ<D0B6><CFB2><EFBFBD>")]
|
||||
public float focusParameter_Distance = 0.5f;
|
||||
|
||||
[LabelText("<22>۽<EFBFBD> <20>Ƕ<EFBFBD><C7B6>жϲ<D0B6><CFB2><EFBFBD>")]
|
||||
public float focusParameter_Angle = 0.5f;
|
||||
|
||||
private Vector3 targetRelativeEulers = Vector3.zero;
|
||||
private Vector3 targetRelativePositon = Vector3.zero;
|
||||
|
||||
public Transform CameraJumpTarget;
|
||||
float maxdistance;
|
||||
void FocusFunction()
|
||||
{
|
||||
if (method == 0)
|
||||
ViewChange();
|
||||
}
|
||||
|
||||
void ViewChange()
|
||||
{
|
||||
if (!isBreakSwitch)
|
||||
{
|
||||
float distance = Vector3.Distance(startTransform.position, endPosition);
|
||||
float angle = Quaternion.Angle(startTransform.rotation, endQuaternion);
|
||||
if (distance <= focusParameter_Distance && angle <= focusParameter_Angle)
|
||||
{
|
||||
isBreakSwitch = true;
|
||||
print("<22>۽<EFBFBD><DBBD><EFBFBD><EFBFBD><EFBFBD>");
|
||||
//fauscEndAction?.Invoke();
|
||||
controlCamera_Enum = ControlCamera_Enum.Winding;
|
||||
return;
|
||||
}
|
||||
|
||||
//float speed = Mathf.Lerp(focusParameter_Distance, this.speed, Mathf.InverseLerp(focusParameter_Distance, maxdistance, distance));
|
||||
|
||||
startTransform.position = Vector3.Slerp(startTransform.position, endPosition, Time.unscaledDeltaTime * speed);
|
||||
startTransform.rotation = Quaternion.Slerp(startTransform.rotation, endQuaternion, Time.unscaledDeltaTime * speed);
|
||||
}
|
||||
}
|
||||
|
||||
public void DoFocus(Transform focusTo, Vector3 _relativeEulers, Vector3 _relativePositon, int i = 0)
|
||||
{
|
||||
targetRelativeEulers = _relativeEulers;
|
||||
targetRelativePositon = _relativePositon;
|
||||
isBreakSwitch = false;
|
||||
maxdistance = Vector3.Distance(focusTo.position, this.transform.position);
|
||||
GetStartTransform(this.transform);
|
||||
GetTargetTransform(focusTo);
|
||||
method = i;
|
||||
if (i == 1)
|
||||
ViewChangeImmediately();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the start transform.
|
||||
/// </summary>
|
||||
/// <returns>The start transform.</returns>
|
||||
/// <param name="start">Start.</param>
|
||||
Transform GetStartTransform(Transform start)
|
||||
{
|
||||
startTransform = start;
|
||||
return startTransform;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the target transform.
|
||||
/// </summary>
|
||||
/// <returns>The target transform.</returns>
|
||||
/// <param name="target">Target.</param>
|
||||
Transform GetTargetTransform(Transform target)
|
||||
{
|
||||
targetTransform = target;
|
||||
GetEndPosition();
|
||||
GetEndQuaternion();
|
||||
return targetTransform;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the end position.
|
||||
/// </summary>
|
||||
/// <returns>The end position.</returns>
|
||||
Vector3 GetEndPosition()
|
||||
{
|
||||
endPosition = targetTransform.position +
|
||||
targetTransform.forward * targetRelativePositon.x +
|
||||
targetTransform.up * targetRelativePositon.y +
|
||||
targetTransform.right * targetRelativePositon.z;
|
||||
return endPosition;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the end quaternion.
|
||||
/// </summary>
|
||||
/// <returns>The end quaternion.</returns>
|
||||
Quaternion GetEndQuaternion()
|
||||
{
|
||||
endQuaternion = Quaternion.Euler(Vector3.zero + targetRelativeEulers);
|
||||
return endQuaternion;
|
||||
}
|
||||
|
||||
void ViewChangeImmediately()
|
||||
{
|
||||
if (!isBreakSwitch)
|
||||
{
|
||||
startTransform.position = Vector3.Slerp(startTransform.position, endPosition, Time.time);
|
||||
startTransform.rotation = Quaternion.Slerp(startTransform.rotation, endQuaternion, Time.time);
|
||||
|
||||
if (Vector3.Distance(startTransform.position, endPosition) <= focusParameter_Distance &&
|
||||
Quaternion.Angle(startTransform.rotation, endQuaternion) <= focusParameter_Angle)
|
||||
{
|
||||
Debug.Log("Camera Arrived at the specified location!");
|
||||
isBreakSwitch = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
return;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
public enum ControlCamera_Enum
|
||||
{
|
||||
OverAll,Follw,Winding,Roam,Focus
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
QualitySettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_CurrentQuality: 3
|
||||
m_CurrentQuality: 0
|
||||
m_QualitySettings:
|
||||
- serializedVersion: 3
|
||||
name: Ray Tracing (Realtime GI)
|
||||
@@ -258,4 +258,4 @@ QualitySettings:
|
||||
PS4: 3
|
||||
PS5: 2
|
||||
Server: 3
|
||||
Standalone: 3
|
||||
Standalone: 0
|
||||
|
||||
Reference in New Issue
Block a user