同上一条
This commit is contained in:
@@ -141,7 +141,7 @@ Material:
|
|||||||
- _Anisotropy: 0
|
- _Anisotropy: 0
|
||||||
- _BlendMode: 0
|
- _BlendMode: 0
|
||||||
- _CoatMask: 0
|
- _CoatMask: 0
|
||||||
- _ColorLevel: 1
|
- _ColorLevel: 0.1
|
||||||
- _CullMode: 2
|
- _CullMode: 2
|
||||||
- _CullModeForward: 2
|
- _CullModeForward: 2
|
||||||
- _Cutoff: 0.5
|
- _Cutoff: 0.5
|
||||||
|
@@ -35,6 +35,8 @@ namespace Convention
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
|
{
|
||||||
|
if (isFocus)
|
||||||
{
|
{
|
||||||
Vector3 dxyz = Vector3.zero;
|
Vector3 dxyz = Vector3.zero;
|
||||||
//Vector3 rxyz = Vector3.zero;
|
//Vector3 rxyz = Vector3.zero;
|
||||||
@@ -72,7 +74,6 @@ namespace Convention
|
|||||||
dxyz -= Vector3.up;
|
dxyz -= Vector3.up;
|
||||||
|
|
||||||
var drotation = Vector3.zero;
|
var drotation = Vector3.zero;
|
||||||
if (isFocus)
|
|
||||||
{
|
{
|
||||||
var temp = Mouse.current.delta.ReadValue();
|
var temp = Mouse.current.delta.ReadValue();
|
||||||
drotation = new(-temp.y, temp.x, 0);
|
drotation = new(-temp.y, temp.x, 0);
|
||||||
@@ -88,7 +89,14 @@ namespace Convention
|
|||||||
if (Keyboard.current[Key.Escape].isPressed)
|
if (Keyboard.current[Key.Escape].isPressed)
|
||||||
isFocus = false;
|
isFocus = false;
|
||||||
if (Keyboard.current[Key.LeftCtrl].isPressed && Keyboard.current[Key.LeftShift].isPressed)
|
if (Keyboard.current[Key.LeftCtrl].isPressed && Keyboard.current[Key.LeftShift].isPressed)
|
||||||
|
{
|
||||||
TargetFollow.localEulerAngles = new(0, TargetFollow.eulerAngles.y, 0);
|
TargetFollow.localEulerAngles = new(0, TargetFollow.eulerAngles.y, 0);
|
||||||
|
if(Keyboard.current[Key.Z].wasPressedThisFrame)
|
||||||
|
{
|
||||||
|
TargetFollow.localPosition = Vector3.zero;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Convention.Internal;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Events;
|
using UnityEngine.Events;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
@@ -288,11 +289,11 @@ namespace Convention.WindowsUI.Variant
|
|||||||
private void ForceRebuildLayoutImmediate()
|
private void ForceRebuildLayoutImmediate()
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
if(this.parentEntry!=null)
|
|
||||||
{
|
{
|
||||||
|
RectTransformExtension.AdjustSizeToContainsChilds(ref_value.transform as RectTransform);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
/*
|
||||||
if (ref_value != null)
|
if (ref_value != null)
|
||||||
{
|
{
|
||||||
ConventionUtility.StartCoroutine(Adjuster(ref_value.transform as RectTransform));
|
ConventionUtility.StartCoroutine(Adjuster(ref_value.transform as RectTransform));
|
||||||
@@ -330,6 +331,7 @@ namespace Convention.WindowsUI.Variant
|
|||||||
parentEntry.ForceRebuildLayoutImmediate();
|
parentEntry.ForceRebuildLayoutImmediate();
|
||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DisableChilds(bool isForceRebuildLayoutImmediate)
|
public void DisableChilds(bool isForceRebuildLayoutImmediate)
|
||||||
|
Reference in New Issue
Block a user