This commit is contained in:
wangzhixun 2025-11-04 21:45:34 +08:00
parent 9c6a653b91
commit 7df0bf4b6f
8 changed files with 22 additions and 22 deletions

View File

@ -204,9 +204,9 @@ namespace HighlightPlus {
void SwitchesCollider (Transform newObject) {
if (currentEffect != null) {
if (highlightOnHover) {
Highlight(false);
}
currentEffect = null;
}
currentObject = newObject;
@ -222,7 +222,7 @@ namespace HighlightPlus {
if (parentEffect != null && parentEffect.Includes(newObject)) {
currentEffect = parentEffect;
Highlight(true);
return;
}
@ -232,7 +232,7 @@ namespace HighlightPlus {
currentEffect.SetTarget(currentObject);
Highlight(true);
}

View File

@ -44,10 +44,10 @@ namespace ZTools
{
zCalendarController.ChangeRangeType(this);
}
//if (zCalendarController.zCalendarModel.isPopupCalendar && zCalendarController.isInit)
//{
// zCalendarController.Hide();
//}
}
}
}

View File

@ -91,10 +91,10 @@ namespace RenderHeads.Media.AVProVideo.Demos
{
float h = _maxSpinSpeed * -Input.GetAxis("Mouse X") * Time.deltaTime;
float v = 0f;
if (!_lockPitch)
{
v = _maxSpinSpeed * Input.GetAxis("Mouse Y") * Time.deltaTime;
}
h = Mathf.Clamp(h, -0.5f, 0.5f);
v = Mathf.Clamp(v, -0.5f, 0.5f);
_spinX += h;

View File

@ -344,14 +344,14 @@ namespace RenderHeads.Media.AVProVideo.Editor
{
GUILayout.BeginHorizontal();
GUILayout.FlexibleSpace();
if (style == null)
{
GUILayout.Label(text);
if (style != null)
{
GUILayout.Label(text, style);
}
else
{
GUILayout.Label(text, style);
}
{
GUILayout.Label(text);
}
GUILayout.FlexibleSpace();
GUILayout.EndHorizontal();
}

View File

@ -77,7 +77,7 @@ namespace RenderHeads.Media.AVProVideo
private string PrepareText(string text)
{
// Crop text that is too long
if (_maxCharacters >= 0 && text.Length > _maxCharacters)
if (text.Length > _maxCharacters)
{
text = text.Substring(0, _maxCharacters);
}

View File

@ -122,7 +122,7 @@ namespace RenderHeads.Media.AVProVideo
{
Shader result = null;
if (result == null && _mediaPlayer.TextureProducer != null)
if (_mediaPlayer.TextureProducer != null)
{
switch (_mediaPlayer.TextureProducer.GetTextureAlphaPacking())
{

View File

@ -113,7 +113,7 @@ namespace UnityStandardAssets.Vehicles.Car
{
// for 1 channel engine sound, it's oh so simple:
m_HighAccel.pitch = pitch*pitchMultiplier*highPitchMultiplier;
m_HighAccel.dopplerLevel = useDoppler ? dopplerLevel : 0;
m_HighAccel.dopplerLevel = dopplerLevel;
m_HighAccel.volume = 1;
}
else

View File

@ -17,7 +17,7 @@ public class DragWindow : MonoBehaviour, IDragHandler, IBeginDragHandler, IEndDr
//刚开始拖拽时第一下触发这个函数
public void OnBeginDrag(PointerEventData eventData)
{
if (!IgnoretheUI)
if (EventSystem.current.IsPointerOverGameObject()) return;
if (RectTransformUtility.RectangleContainsScreenPoint(transform as RectTransform, Input.mousePosition))
{