mirror of
https://github.com/DCFApixels/Unity-DebugX.git
synced 2025-09-18 01:54:37 +08:00
stash
This commit is contained in:
parent
0f91ae3ef8
commit
7672285a03
@ -31,7 +31,27 @@ namespace DCFApixels
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Spherecast
|
#region Raycast2D
|
||||||
|
//[IN(LINE)] public DrawHandler Raycast2D(Ray ray, RaycastHit hit) => Raycast(ray.origin, ray.direction, hit);
|
||||||
|
[IN(LINE)]
|
||||||
|
public DrawHandler Raycast2D(Vector2 origin, Vector2 direction, RaycastHit2D hit)
|
||||||
|
{
|
||||||
|
if (hit.collider == null)
|
||||||
|
{
|
||||||
|
RayFade(origin, direction * 3f);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Line(origin, origin + direction * hit.distance);
|
||||||
|
|
||||||
|
DotDiamond(hit.point);
|
||||||
|
RayArrow(hit.point, hit.normal);
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region SphereCast
|
||||||
[IN(LINE)] public DrawHandler SphereCast(Ray ray, float radius, RaycastHit hit) => SphereCast(ray.origin, ray.direction, radius, hit);
|
[IN(LINE)] public DrawHandler SphereCast(Ray ray, float radius, RaycastHit hit) => SphereCast(ray.origin, ray.direction, radius, hit);
|
||||||
[IN(LINE)]
|
[IN(LINE)]
|
||||||
public DrawHandler SphereCast(Vector3 origin, Vector3 direction, float radius, RaycastHit hit)
|
public DrawHandler SphereCast(Vector3 origin, Vector3 direction, float radius, RaycastHit hit)
|
||||||
@ -57,7 +77,7 @@ namespace DCFApixels
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Spherecast
|
#region BoxCast
|
||||||
[IN(LINE)] public DrawHandler BoxCast(Ray ray, Quaternion rotation, Vector3 size, RaycastHit hit) => BoxCast(ray.origin, ray.direction, rotation, size, hit);
|
[IN(LINE)] public DrawHandler BoxCast(Ray ray, Quaternion rotation, Vector3 size, RaycastHit hit) => BoxCast(ray.origin, ray.direction, rotation, size, hit);
|
||||||
[IN(LINE)]
|
[IN(LINE)]
|
||||||
public DrawHandler BoxCast(Vector3 origin, Vector3 direction, Quaternion rotation, Vector3 size, RaycastHit hit)
|
public DrawHandler BoxCast(Vector3 origin, Vector3 direction, Quaternion rotation, Vector3 size, RaycastHit hit)
|
||||||
@ -84,7 +104,7 @@ namespace DCFApixels
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Spherecast
|
#region CapsuleCast
|
||||||
[IN(LINE)]
|
[IN(LINE)]
|
||||||
public DrawHandler CapsuleCast(Vector3 point1, Vector3 point2, Vector3 direction, float radius, RaycastHit hit)
|
public DrawHandler CapsuleCast(Vector3 point1, Vector3 point2, Vector3 direction, float radius, RaycastHit hit)
|
||||||
{
|
{
|
||||||
|
@ -142,7 +142,7 @@ Material:
|
|||||||
- _QueueOffset: 0
|
- _QueueOffset: 0
|
||||||
- _ReceiveShadows: 0
|
- _ReceiveShadows: 0
|
||||||
- _Shininess: 0
|
- _Shininess: 0
|
||||||
- _Smoothness: 0
|
- _Smoothness: 0.5
|
||||||
- _SmoothnessSource: 0
|
- _SmoothnessSource: 0
|
||||||
- _SmoothnessTextureChannel: 0
|
- _SmoothnessTextureChannel: 0
|
||||||
- _SoftParticlesEnabled: 0
|
- _SoftParticlesEnabled: 0
|
||||||
@ -157,9 +157,9 @@ Material:
|
|||||||
- _WorkflowMode: 1
|
- _WorkflowMode: 1
|
||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.29222003, g: 0.20719114, b: 0.45283014, a: 0.23529412}
|
- _BaseColor: {r: 0.5568628, g: 0.13333331, b: 0.34645054, a: 0.23529412}
|
||||||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||||
- _Color: {r: 0.29222, g: 0.20719111, b: 0.45283008, a: 0.23529412}
|
- _Color: {r: 0.5568628, g: 0.13333327, b: 0.3464505, a: 0.23529412}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _Flip: {r: 1, g: 1, b: 1, a: 1}
|
- _Flip: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
@ -158,7 +158,7 @@ Material:
|
|||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.29222006, g: 0.20719118, b: 0.4528302, a: 1}
|
- _BaseColor: {r: 0.29222006, g: 0.20719118, b: 0.4528302, a: 1}
|
||||||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||||
- _Color: {r: 0.124131784, g: 0.031772874, b: 0.13207549, a: 1}
|
- _Color: {r: 0.12668991, g: 0.03800285, b: 0.13207549, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _Flip: {r: 1, g: 1, b: 1, a: 1}
|
- _Flip: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
@ -142,7 +142,7 @@ Material:
|
|||||||
- _QueueOffset: 0
|
- _QueueOffset: 0
|
||||||
- _ReceiveShadows: 0
|
- _ReceiveShadows: 0
|
||||||
- _Shininess: 0
|
- _Shininess: 0
|
||||||
- _Smoothness: 0
|
- _Smoothness: 0.5
|
||||||
- _SmoothnessSource: 0
|
- _SmoothnessSource: 0
|
||||||
- _SmoothnessTextureChannel: 0
|
- _SmoothnessTextureChannel: 0
|
||||||
- _SoftParticlesEnabled: 0
|
- _SoftParticlesEnabled: 0
|
||||||
@ -157,9 +157,9 @@ Material:
|
|||||||
- _WorkflowMode: 1
|
- _WorkflowMode: 1
|
||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.25627127, g: 0.148851, b: 0.333, a: 0.23529412}
|
- _BaseColor: {r: 0.3584906, g: 0.038892854, b: 0.21198066, a: 0.23529412}
|
||||||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||||
- _Color: {r: 0.25627124, g: 0.14885098, b: 0.33299997, a: 0.23529412}
|
- _Color: {r: 0.35849056, g: 0.038892854, b: 0.21198061, a: 0.23529412}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _Flip: {r: 1, g: 1, b: 1, a: 1}
|
- _Flip: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
@ -360,16 +360,16 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Gradient:
|
Gradient:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
key0: {r: 1, g: 0, b: 0.38202333, a: 1}
|
key0: {r: 0, g: 0.8781085, b: 1, a: 1}
|
||||||
key1: {r: 1, g: 0, b: 0.03915453, a: 1}
|
key1: {r: 0, g: 1, b: 0.7648356, a: 1}
|
||||||
key2: {r: 1, g: 0.20264319, b: 0, a: 0}
|
key2: {r: 0.05271268, g: 1, b: 0, a: 0}
|
||||||
key3: {r: 0, g: 0, b: 0, a: 0}
|
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||||
ctime0: 0
|
ctime0: 0
|
||||||
ctime1: 36623
|
ctime1: 20624
|
||||||
ctime2: 65535
|
ctime2: 65535
|
||||||
ctime3: 0
|
ctime3: 0
|
||||||
ctime4: 0
|
ctime4: 0
|
||||||
@ -388,7 +388,7 @@ MonoBehaviour:
|
|||||||
m_ColorSpace: -1
|
m_ColorSpace: -1
|
||||||
m_NumColorKeys: 3
|
m_NumColorKeys: 3
|
||||||
m_NumAlphaKeys: 2
|
m_NumAlphaKeys: 2
|
||||||
GradientMultiplier: 3
|
GradientMultiplier: 1.5
|
||||||
Points:
|
Points:
|
||||||
- {fileID: 2035901457}
|
- {fileID: 2035901457}
|
||||||
- {fileID: 464141237}
|
- {fileID: 464141237}
|
||||||
@ -446,16 +446,16 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Gradient:
|
Gradient:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
key0: {r: 1, g: 0, b: 0.38202333, a: 1}
|
key0: {r: 0, g: 0.8781085, b: 1, a: 1}
|
||||||
key1: {r: 1, g: 0, b: 0.03915453, a: 1}
|
key1: {r: 0, g: 1, b: 0.7648356, a: 1}
|
||||||
key2: {r: 1, g: 0.20264319, b: 0, a: 0}
|
key2: {r: 0.05271268, g: 1, b: 0, a: 0}
|
||||||
key3: {r: 0, g: 0, b: 0, a: 0}
|
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||||
ctime0: 0
|
ctime0: 0
|
||||||
ctime1: 36623
|
ctime1: 20624
|
||||||
ctime2: 65535
|
ctime2: 65535
|
||||||
ctime3: 0
|
ctime3: 0
|
||||||
ctime4: 0
|
ctime4: 0
|
||||||
@ -474,7 +474,7 @@ MonoBehaviour:
|
|||||||
m_ColorSpace: -1
|
m_ColorSpace: -1
|
||||||
m_NumColorKeys: 3
|
m_NumColorKeys: 3
|
||||||
m_NumAlphaKeys: 2
|
m_NumAlphaKeys: 2
|
||||||
GradientMultiplier: 3
|
GradientMultiplier: 1.5
|
||||||
Points:
|
Points:
|
||||||
- {fileID: 307416459}
|
- {fileID: 307416459}
|
||||||
- {fileID: 403282598}
|
- {fileID: 403282598}
|
||||||
@ -733,16 +733,16 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Gradient:
|
Gradient:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
key0: {r: 1, g: 0, b: 0.38202333, a: 1}
|
key0: {r: 0, g: 0.8781085, b: 1, a: 1}
|
||||||
key1: {r: 1, g: 0, b: 0.03915453, a: 1}
|
key1: {r: 0, g: 1, b: 0.7648356, a: 1}
|
||||||
key2: {r: 1, g: 0.20264319, b: 0, a: 0}
|
key2: {r: 0.05271268, g: 1, b: 0, a: 0}
|
||||||
key3: {r: 0, g: 0, b: 0, a: 0}
|
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||||
ctime0: 0
|
ctime0: 0
|
||||||
ctime1: 36623
|
ctime1: 20624
|
||||||
ctime2: 65535
|
ctime2: 65535
|
||||||
ctime3: 0
|
ctime3: 0
|
||||||
ctime4: 0
|
ctime4: 0
|
||||||
@ -1002,16 +1002,16 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Gradient:
|
Gradient:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
key0: {r: 1, g: 0, b: 0.38202333, a: 1}
|
key0: {r: 0, g: 0.8781085, b: 1, a: 1}
|
||||||
key1: {r: 1, g: 0, b: 0.03915453, a: 1}
|
key1: {r: 0, g: 1, b: 0.7648356, a: 1}
|
||||||
key2: {r: 1, g: 0.20264319, b: 0, a: 0}
|
key2: {r: 0.05271268, g: 1, b: 0, a: 0}
|
||||||
key3: {r: 0, g: 0, b: 0, a: 0}
|
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||||
ctime0: 0
|
ctime0: 0
|
||||||
ctime1: 36623
|
ctime1: 20624
|
||||||
ctime2: 65535
|
ctime2: 65535
|
||||||
ctime3: 0
|
ctime3: 0
|
||||||
ctime4: 0
|
ctime4: 0
|
||||||
@ -1030,7 +1030,7 @@ MonoBehaviour:
|
|||||||
m_ColorSpace: -1
|
m_ColorSpace: -1
|
||||||
m_NumColorKeys: 3
|
m_NumColorKeys: 3
|
||||||
m_NumAlphaKeys: 2
|
m_NumAlphaKeys: 2
|
||||||
GradientMultiplier: 3
|
GradientMultiplier: 1.5
|
||||||
Points:
|
Points:
|
||||||
- {fileID: 839916827}
|
- {fileID: 839916827}
|
||||||
- {fileID: 307094390}
|
- {fileID: 307094390}
|
||||||
@ -1147,7 +1147,7 @@ Light:
|
|||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 11
|
serializedVersion: 11
|
||||||
m_Type: 1
|
m_Type: 1
|
||||||
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
|
m_Color: {r: 1, g: 0.7641603, b: 0.7311321, a: 1}
|
||||||
m_Intensity: 1
|
m_Intensity: 1
|
||||||
m_Range: 10
|
m_Range: 10
|
||||||
m_SpotAngle: 30
|
m_SpotAngle: 30
|
||||||
@ -1271,16 +1271,16 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Gradient:
|
Gradient:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
key0: {r: 1, g: 0, b: 0.38202333, a: 1}
|
key0: {r: 0, g: 0.8781085, b: 1, a: 1}
|
||||||
key1: {r: 1, g: 0, b: 0.03915453, a: 1}
|
key1: {r: 0, g: 1, b: 0.7648356, a: 1}
|
||||||
key2: {r: 1, g: 0.20264319, b: 0, a: 0}
|
key2: {r: 0.05271268, g: 1, b: 0, a: 0}
|
||||||
key3: {r: 0, g: 0, b: 0, a: 0}
|
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||||
ctime0: 0
|
ctime0: 0
|
||||||
ctime1: 40285
|
ctime1: 20624
|
||||||
ctime2: 65535
|
ctime2: 65535
|
||||||
ctime3: 0
|
ctime3: 0
|
||||||
ctime4: 0
|
ctime4: 0
|
||||||
@ -1299,7 +1299,7 @@ MonoBehaviour:
|
|||||||
m_ColorSpace: -1
|
m_ColorSpace: -1
|
||||||
m_NumColorKeys: 3
|
m_NumColorKeys: 3
|
||||||
m_NumAlphaKeys: 2
|
m_NumAlphaKeys: 2
|
||||||
GradientMultiplier: 2.5
|
GradientMultiplier: 1.5
|
||||||
StartLines:
|
StartLines:
|
||||||
- {fileID: 305571596}
|
- {fileID: 305571596}
|
||||||
- {fileID: 1228208157}
|
- {fileID: 1228208157}
|
||||||
|
Loading…
Reference in New Issue
Block a user