bugfix & content update
This commit is contained in:
parent
1a0b118da1
commit
ee323f82e9
|
@ -0,0 +1,77 @@
|
||||||
|
package com.unity3d.player;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.hardware.usb.UsbDevice;
|
||||||
|
import android.hardware.usb.UsbManager;
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Iterator;
|
||||||
|
|
||||||
|
public class USBCamUtil {
|
||||||
|
static String RGBCamDeviceName = "";
|
||||||
|
static String TargetCamName0 = "WN-Camera-RGB";
|
||||||
|
static String TargetCamName1 = "RGB Camera";
|
||||||
|
|
||||||
|
static String IRCamDeviceName = "";
|
||||||
|
static String TargetCamName2 = "WN-Camera-IR";
|
||||||
|
static String TargetCamName3 = "IR Camera";
|
||||||
|
|
||||||
|
public static boolean CamIsRGB(String deviceName)
|
||||||
|
{
|
||||||
|
if(RGBCamDeviceName.isEmpty())
|
||||||
|
{
|
||||||
|
UsbManager usbManager = (UsbManager)UnityPlayer.currentActivity.getSystemService(Context.USB_SERVICE);
|
||||||
|
HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList();
|
||||||
|
Log.d("USBCamUtil", "device count: "+deviceList.size());
|
||||||
|
Iterator<UsbDevice> deviceIterator = deviceList.values().iterator();
|
||||||
|
while (deviceIterator.hasNext()) {
|
||||||
|
UsbDevice device = deviceIterator.next();
|
||||||
|
if(device.getProductName().equalsIgnoreCase(TargetCamName0) || device.getProductName().equalsIgnoreCase(TargetCamName1))
|
||||||
|
{
|
||||||
|
RGBCamDeviceName = device.getDeviceName();
|
||||||
|
}
|
||||||
|
Log.d("USBCamUtil", "ProductName: " + device.getProductName()+"-DeviceName:"+device.getDeviceName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return (deviceName.equalsIgnoreCase(RGBCamDeviceName));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean CamIsIR(String deviceName)
|
||||||
|
{
|
||||||
|
if(IRCamDeviceName.isEmpty())
|
||||||
|
{
|
||||||
|
UsbManager usbManager = (UsbManager)UnityPlayer.currentActivity.getSystemService(Context.USB_SERVICE);
|
||||||
|
HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList();
|
||||||
|
Log.d("USBCamUtil", "device count: "+deviceList.size());
|
||||||
|
Iterator<UsbDevice> deviceIterator = deviceList.values().iterator();
|
||||||
|
while (deviceIterator.hasNext()) {
|
||||||
|
UsbDevice device = deviceIterator.next();
|
||||||
|
if(device.getProductName().equalsIgnoreCase(TargetCamName2) || device.getProductName().equalsIgnoreCase(TargetCamName3))
|
||||||
|
{
|
||||||
|
IRCamDeviceName = device.getDeviceName();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return (deviceName.equalsIgnoreCase(IRCamDeviceName));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String[] GetAllDevice()
|
||||||
|
{
|
||||||
|
UsbManager usbManager = (UsbManager)UnityPlayer.currentActivity.getSystemService(Context.USB_SERVICE);
|
||||||
|
HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList();
|
||||||
|
String[] sts = new String[deviceList.size()];
|
||||||
|
|
||||||
|
int index = 0;
|
||||||
|
Iterator<UsbDevice> deviceIterator = deviceList.values().iterator();
|
||||||
|
while (deviceIterator.hasNext()) {
|
||||||
|
UsbDevice device = deviceIterator.next();
|
||||||
|
|
||||||
|
sts[index] = ("deviceName:"+device.getDeviceName()+" productname:"+device.getProductName());
|
||||||
|
index++;
|
||||||
|
Log.d("USBCamUtil", "ProductName: " + device.getProductName()+"-DeviceName:"+device.getDeviceName());
|
||||||
|
}
|
||||||
|
return sts;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 08d3bbaae1b2e1441932dfb499ad49dd
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Android: Android
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -6618,7 +6618,7 @@ AnimationClip:
|
||||||
m_Level: 0
|
m_Level: 0
|
||||||
m_CycleOffset: 0
|
m_CycleOffset: 0
|
||||||
m_HasAdditiveReferencePose: 0
|
m_HasAdditiveReferencePose: 0
|
||||||
m_LoopTime: 1
|
m_LoopTime: 0
|
||||||
m_LoopBlend: 0
|
m_LoopBlend: 0
|
||||||
m_LoopBlendOrientation: 0
|
m_LoopBlendOrientation: 0
|
||||||
m_LoopBlendPositionY: 0
|
m_LoopBlendPositionY: 0
|
||||||
|
|
|
@ -624,8 +624,9 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
backgroundImage: {fileID: 21300000, guid: 8a37bc349b0192441bdbd6e9b7ccd808, type: 3}
|
backgroundImage: {fileID: 21300000, guid: 8a37bc349b0192441bdbd6e9b7ccd808, type: 3}
|
||||||
buttonTitle: Shake head
|
buttonTitle: Sternocleidomastoid muscle
|
||||||
buttonDescription: Nodding to relieve neck pressure
|
buttonDescription: The sternocleidomastoid muscle is crucial for maintaining good
|
||||||
|
head and neck posture and stable cervical spine
|
||||||
useCustomResources: 0
|
useCustomResources: 0
|
||||||
enableStatus: 1
|
enableStatus: 1
|
||||||
statusItem: 0
|
statusItem: 0
|
||||||
|
@ -1578,8 +1579,8 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: 125, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 200, y: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &3299300514319254663
|
--- !u!222 &3299300514319254663
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
@ -3859,8 +3860,9 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
backgroundImage: {fileID: 21300000, guid: 599a6f48f62a43049a3b196a4b888d5a, type: 3}
|
backgroundImage: {fileID: 21300000, guid: 599a6f48f62a43049a3b196a4b888d5a, type: 3}
|
||||||
buttonTitle: Nod
|
buttonTitle: Splenius & Rectus capitis anterior
|
||||||
buttonDescription: Shaking head to relieve neck pressure
|
buttonDescription: Exercise of Splenius & Rectus capitis anterior. Aim to relieve
|
||||||
|
Splenius & Rectus capitis anterior muscle tension
|
||||||
useCustomResources: 0
|
useCustomResources: 0
|
||||||
enableStatus: 1
|
enableStatus: 1
|
||||||
statusItem: 0
|
statusItem: 0
|
||||||
|
@ -3996,8 +3998,8 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: 125, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 200, y: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &1105460671971188788
|
--- !u!222 &1105460671971188788
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
@ -7788,6 +7790,7 @@ RectTransform:
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
|
- {fileID: 4718637843428890479}
|
||||||
- {fileID: 592144192930351671}
|
- {fileID: 592144192930351671}
|
||||||
- {fileID: 7572955664812918570}
|
- {fileID: 7572955664812918570}
|
||||||
- {fileID: 3228235001121865301}
|
- {fileID: 3228235001121865301}
|
||||||
|
@ -8956,8 +8959,9 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
backgroundImage: {fileID: 21300000, guid: 59b9c7e480fc7b747826d40a7b03720c, type: 3}
|
backgroundImage: {fileID: 21300000, guid: 59b9c7e480fc7b747826d40a7b03720c, type: 3}
|
||||||
buttonTitle: Stretching shoulder
|
buttonTitle: Scalene muscle
|
||||||
buttonDescription: Stretching to relieve back pressure
|
buttonDescription: Exercise of Scalene muscle. Relieve the press of that. Also
|
||||||
|
help to protect vein and artery under it.
|
||||||
useCustomResources: 0
|
useCustomResources: 0
|
||||||
enableStatus: 1
|
enableStatus: 1
|
||||||
statusItem: 0
|
statusItem: 0
|
||||||
|
@ -9885,7 +9889,7 @@ MonoBehaviour:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
backgroundImage: {fileID: 21300000, guid: c915009cb3f74e9419f24d0ccdde6b95, type: 3}
|
backgroundImage: {fileID: 21300000, guid: c915009cb3f74e9419f24d0ccdde6b95, type: 3}
|
||||||
buttonTitle: Health Detect
|
buttonTitle: Health Detect
|
||||||
buttonDescription: Detect your Healthy State
|
buttonDescription: Detect your State
|
||||||
useCustomResources: 0
|
useCustomResources: 0
|
||||||
enableStatus: 1
|
enableStatus: 1
|
||||||
statusItem: 1
|
statusItem: 1
|
||||||
|
@ -11666,7 +11670,7 @@ MonoBehaviour:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
backgroundImage: {fileID: 21300000, guid: 71b8f375fd283b94db81f0ce51704ac0, type: 3}
|
backgroundImage: {fileID: 21300000, guid: 71b8f375fd283b94db81f0ce51704ac0, type: 3}
|
||||||
buttonTitle: Consulting
|
buttonTitle: Consulting
|
||||||
buttonDescription: DESCRIPTION
|
buttonDescription: Your private doctor
|
||||||
useCustomResources: 0
|
useCustomResources: 0
|
||||||
enableStatus: 1
|
enableStatus: 1
|
||||||
statusItem: 1
|
statusItem: 1
|
||||||
|
@ -14476,3 +14480,105 @@ MonoBehaviour:
|
||||||
m_FlexibleWidth: -1
|
m_FlexibleWidth: -1
|
||||||
m_FlexibleHeight: -1
|
m_FlexibleHeight: -1
|
||||||
m_LayoutPriority: 1
|
m_LayoutPriority: 1
|
||||||
|
--- !u!1001 &4272169378470169863
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TransformParent: {fileID: 6472390402513143558}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 4327728351019041244, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Background
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_Pivot.x
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_Pivot.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_AnchorMax.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_AnchorMax.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_AnchorMin.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_AnchorMin.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_SizeDelta.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_SizeDelta.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_AnchoredPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_RemovedGameObjects: []
|
||||||
|
m_AddedGameObjects: []
|
||||||
|
m_AddedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
--- !u!224 &4718637843428890479 stripped
|
||||||
|
RectTransform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 4272169378470169863}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
|
|
@ -27,15 +27,15 @@ RectTransform:
|
||||||
m_GameObject: {fileID: 467468288701006585}
|
m_GameObject: {fileID: 467468288701006585}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 2, y: 2, z: 2}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1305593576415872527}
|
m_Father: {fileID: 1305593576415872527}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
m_SizeDelta: {x: 250, y: 150}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &3738101260338914437
|
--- !u!222 &3738101260338914437
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
@ -58,15 +58,15 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
m_Color: {r: 0.40392157, g: 0.40392157, b: 0.40392157, a: 1}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_Maskable: 1
|
m_Maskable: 1
|
||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_Sprite: {fileID: 21300000, guid: 447f19d95ff0c504da9f0a9dacc358d7, type: 3}
|
m_Sprite: {fileID: 21300000, guid: 139541ce220ffc44fb9bf4993db13c99, type: 3}
|
||||||
m_Type: 1
|
m_Type: 0
|
||||||
m_PreserveAspect: 0
|
m_PreserveAspect: 0
|
||||||
m_FillCenter: 1
|
m_FillCenter: 1
|
||||||
m_FillMethod: 4
|
m_FillMethod: 4
|
||||||
|
@ -109,6 +109,7 @@ RectTransform:
|
||||||
- {fileID: 9023347130937077545}
|
- {fileID: 9023347130937077545}
|
||||||
- {fileID: 4669846630367257996}
|
- {fileID: 4669846630367257996}
|
||||||
- {fileID: 6569262126421687589}
|
- {fileID: 6569262126421687589}
|
||||||
|
- {fileID: 5009843812129736875}
|
||||||
m_Father: {fileID: 6876832796388901115}
|
m_Father: {fileID: 6876832796388901115}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
@ -259,8 +260,8 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
m_AnchoredPosition: {x: 0, y: -40}
|
m_AnchoredPosition: {x: 0, y: -25}
|
||||||
m_SizeDelta: {x: -40, y: -120}
|
m_SizeDelta: {x: -40, y: -150}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &1167518964908105557
|
--- !u!222 &1167518964908105557
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
@ -293,15 +294,15 @@ MonoBehaviour:
|
||||||
m_text: New TextNew TextNew TextNew TextNew TextNew TextNew TextNew TextNew TextNew
|
m_text: New TextNew TextNew TextNew TextNew TextNew TextNew TextNew TextNew TextNew
|
||||||
TextNew TextNew TextNew TextNew TextNew Text
|
TextNew TextNew TextNew TextNew TextNew Text
|
||||||
m_isRightToLeft: 0
|
m_isRightToLeft: 0
|
||||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
m_fontAsset: {fileID: 11400000, guid: 581c047ed60765249b12f37ff2895497, type: 2}
|
||||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
m_sharedMaterial: {fileID: 21082280118058838, guid: 581c047ed60765249b12f37ff2895497, type: 2}
|
||||||
m_fontSharedMaterials: []
|
m_fontSharedMaterials: []
|
||||||
m_fontMaterial: {fileID: 0}
|
m_fontMaterial: {fileID: 0}
|
||||||
m_fontMaterials: []
|
m_fontMaterials: []
|
||||||
m_fontColor32:
|
m_fontColor32:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 4289572269
|
rgba: 4278190080
|
||||||
m_fontColor: {r: 0.6784314, g: 0.6784314, b: 0.6784314, a: 1}
|
m_fontColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
m_enableVertexGradient: 0
|
m_enableVertexGradient: 0
|
||||||
m_colorMode: 3
|
m_colorMode: 3
|
||||||
m_fontColorGradient:
|
m_fontColorGradient:
|
||||||
|
@ -318,14 +319,14 @@ MonoBehaviour:
|
||||||
m_faceColor:
|
m_faceColor:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 4294967295
|
rgba: 4294967295
|
||||||
m_fontSize: 36
|
m_fontSize: 50
|
||||||
m_fontSizeBase: 36
|
m_fontSizeBase: 50
|
||||||
m_fontWeight: 400
|
m_fontWeight: 400
|
||||||
m_enableAutoSizing: 0
|
m_enableAutoSizing: 0
|
||||||
m_fontSizeMin: 18
|
m_fontSizeMin: 18
|
||||||
m_fontSizeMax: 72
|
m_fontSizeMax: 72
|
||||||
m_fontStyle: 0
|
m_fontStyle: 1
|
||||||
m_HorizontalAlignment: 1
|
m_HorizontalAlignment: 2
|
||||||
m_VerticalAlignment: 512
|
m_VerticalAlignment: 512
|
||||||
m_textAlignment: 65535
|
m_textAlignment: 65535
|
||||||
m_characterSpacing: 0
|
m_characterSpacing: 0
|
||||||
|
@ -601,6 +602,81 @@ MonoBehaviour:
|
||||||
m_hasFontAssetChanged: 0
|
m_hasFontAssetChanged: 0
|
||||||
m_baseMaterial: {fileID: 0}
|
m_baseMaterial: {fileID: 0}
|
||||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
--- !u!1 &3239961382231429169
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5009843812129736875}
|
||||||
|
- component: {fileID: 8934112858876014041}
|
||||||
|
- component: {fileID: 1813128883874316099}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Lock
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &5009843812129736875
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3239961382231429169}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.3, y: 0.3, z: 0.3}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 1305593576415872527}
|
||||||
|
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: 196.00002, y: 256}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &8934112858876014041
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3239961382231429169}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &1813128883874316099
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3239961382231429169}
|
||||||
|
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: 21300000, guid: a425b24d1df0f05429866e38afc635fa, type: 3}
|
||||||
|
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 &3554032430536705821
|
--- !u!1 &3554032430536705821
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -888,15 +964,15 @@ RectTransform:
|
||||||
m_GameObject: {fileID: 7404628379500909270}
|
m_GameObject: {fileID: 7404628379500909270}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 2, y: 2, z: 2}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1305593576415872527}
|
m_Father: {fileID: 1305593576415872527}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: -40, y: -40}
|
m_SizeDelta: {x: 200, y: 100}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &1876079931168093812
|
--- !u!222 &1876079931168093812
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
@ -919,15 +995,15 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
m_Color: {r: 0.44313726, g: 0.44313726, b: 0.44313726, a: 1}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_Maskable: 1
|
m_Maskable: 1
|
||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_Sprite: {fileID: 21300000, guid: bb72f5ca984e00d44aff91ecb54c2487, type: 3}
|
m_Sprite: {fileID: 21300000, guid: e2acc6ce5792dd443944d679719895e7, type: 3}
|
||||||
m_Type: 1
|
m_Type: 0
|
||||||
m_PreserveAspect: 0
|
m_PreserveAspect: 0
|
||||||
m_FillCenter: 1
|
m_FillCenter: 1
|
||||||
m_FillMethod: 4
|
m_FillMethod: 4
|
||||||
|
@ -1030,7 +1106,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 1}
|
m_AnchorMin: {x: 0.5, y: 1}
|
||||||
m_AnchorMax: {x: 0.5, y: 1}
|
m_AnchorMax: {x: 0.5, y: 1}
|
||||||
m_AnchoredPosition: {x: 0, y: -30}
|
m_AnchoredPosition: {x: 0, y: -50}
|
||||||
m_SizeDelta: {x: 200, y: 50}
|
m_SizeDelta: {x: 200, y: 50}
|
||||||
m_Pivot: {x: 0.5, y: 1}
|
m_Pivot: {x: 0.5, y: 1}
|
||||||
--- !u!222 &1808380685305513856
|
--- !u!222 &1808380685305513856
|
||||||
|
@ -1063,14 +1139,14 @@ MonoBehaviour:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_text: New Text
|
m_text: New Text
|
||||||
m_isRightToLeft: 0
|
m_isRightToLeft: 0
|
||||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
m_fontAsset: {fileID: 11400000, guid: b04f3173f946b754db673ac13842f4c1, type: 2}
|
||||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
m_sharedMaterial: {fileID: 21728410361126204, guid: b04f3173f946b754db673ac13842f4c1, type: 2}
|
||||||
m_fontSharedMaterials: []
|
m_fontSharedMaterials: []
|
||||||
m_fontMaterial: {fileID: 0}
|
m_fontMaterial: {fileID: 0}
|
||||||
m_fontMaterials: []
|
m_fontMaterials: []
|
||||||
m_fontColor32:
|
m_fontColor32:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 4294967295
|
rgba: 4294931249
|
||||||
m_fontColor: {r: 0.19215687, g: 0.4509804, b: 1, a: 1}
|
m_fontColor: {r: 0.19215687, g: 0.4509804, b: 1, a: 1}
|
||||||
m_enableVertexGradient: 0
|
m_enableVertexGradient: 0
|
||||||
m_colorMode: 3
|
m_colorMode: 3
|
||||||
|
|
|
@ -17,7 +17,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &1958927731802958260
|
--- !u!224 &1958927731802958260
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -134,7 +134,7 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 0.19607843}
|
m_Color: {r: 0.4862745, g: 0.6666667, b: 0.8784314, a: 0.19607843}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_Maskable: 1
|
m_Maskable: 1
|
||||||
|
@ -163,6 +163,140 @@ CanvasGroup:
|
||||||
m_Interactable: 1
|
m_Interactable: 1
|
||||||
m_BlocksRaycasts: 1
|
m_BlocksRaycasts: 1
|
||||||
m_IgnoreParentGroups: 0
|
m_IgnoreParentGroups: 0
|
||||||
|
--- !u!1 &2757657609315254747
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8411771944291717817}
|
||||||
|
- component: {fileID: 1982884316528622}
|
||||||
|
- component: {fileID: 3138386884910861036}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Text
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &8411771944291717817
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2757657609315254747}
|
||||||
|
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: 2576201504434113081}
|
||||||
|
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 &1982884316528622
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2757657609315254747}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &3138386884910861036
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2757657609315254747}
|
||||||
|
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: CoDriver
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 194c956b3d864664890e731c63fd4a02, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: 21704438749789640, guid: 194c956b3d864664890e731c63fd4a02, type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4292702227
|
||||||
|
m_fontColor: {r: 0.07450981, g: 0.4392157, b: 0.8666667, 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: 70
|
||||||
|
m_fontSizeBase: 70
|
||||||
|
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 &3239512571933529956
|
--- !u!1 &3239512571933529956
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -180,7 +314,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &1051210256180514997
|
--- !u!224 &1051210256180514997
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -238,6 +372,140 @@ MonoBehaviour:
|
||||||
m_FillOrigin: 0
|
m_FillOrigin: 0
|
||||||
m_UseSpriteMesh: 0
|
m_UseSpriteMesh: 0
|
||||||
m_PixelsPerUnitMultiplier: 1
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!1 &3276116198655259220
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3003885521091006085}
|
||||||
|
- component: {fileID: 4837327273038501092}
|
||||||
|
- component: {fileID: 6751648053537404087}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Text
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &3003885521091006085
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3276116198655259220}
|
||||||
|
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: 7867255813535008431}
|
||||||
|
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 &4837327273038501092
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3276116198655259220}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &6751648053537404087
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3276116198655259220}
|
||||||
|
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: Driver
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 194c956b3d864664890e731c63fd4a02, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: 21704438749789640, guid: 194c956b3d864664890e731c63fd4a02, type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontColor: {r: 1, g: 1, b: 1, 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: 70
|
||||||
|
m_fontSizeBase: 70
|
||||||
|
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 &4001795067869974423
|
--- !u!1 &4001795067869974423
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -297,7 +565,7 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 0.19607843}
|
m_Color: {r: 0.48235294, g: 0.6666667, b: 0.8784314, a: 0.23529412}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_Maskable: 1
|
m_Maskable: 1
|
||||||
|
@ -343,7 +611,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &1400966148747893423
|
--- !u!224 &1400966148747893423
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -418,7 +686,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &4138242365235796459
|
--- !u!224 &4138242365235796459
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -638,6 +906,81 @@ MonoBehaviour:
|
||||||
m_FillOrigin: 0
|
m_FillOrigin: 0
|
||||||
m_UseSpriteMesh: 0
|
m_UseSpriteMesh: 0
|
||||||
m_PixelsPerUnitMultiplier: 1
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!1 &5461356057146944130
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1724769963328776691}
|
||||||
|
- component: {fileID: 3008110882503550119}
|
||||||
|
- component: {fileID: 2265805038016120193}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: background_title
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1724769963328776691
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5461356057146944130}
|
||||||
|
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: 1888392902869825718}
|
||||||
|
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 &3008110882503550119
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5461356057146944130}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &2265805038016120193
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5461356057146944130}
|
||||||
|
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: 21300000, guid: 565c6bde9cad7a041bf103b2151526f4, type: 3}
|
||||||
|
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 &5611881615064894930
|
--- !u!1 &5611881615064894930
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -677,11 +1020,12 @@ RectTransform:
|
||||||
- {fileID: 1449208219289806508}
|
- {fileID: 1449208219289806508}
|
||||||
- {fileID: 4138242365235796459}
|
- {fileID: 4138242365235796459}
|
||||||
- {fileID: 173739580069041147}
|
- {fileID: 173739580069041147}
|
||||||
|
- {fileID: 3003885521091006085}
|
||||||
m_Father: {fileID: 1888392902869825718}
|
m_Father: {fileID: 1888392902869825718}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: -300, y: 0}
|
m_AnchoredPosition: {x: -500, y: 0}
|
||||||
m_SizeDelta: {x: 256, y: 256}
|
m_SizeDelta: {x: 256, y: 256}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &2054363549373963548
|
--- !u!222 &2054363549373963548
|
||||||
|
@ -845,7 +1189,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &6599526536569391515
|
--- !u!224 &6599526536569391515
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -920,7 +1264,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &6401048517044185304
|
--- !u!224 &6401048517044185304
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -1144,7 +1488,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &1449208219289806508
|
--- !u!224 &1449208219289806508
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -1223,7 +1567,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &3140601927184870215
|
--- !u!224 &3140601927184870215
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -1385,11 +1729,12 @@ RectTransform:
|
||||||
- {fileID: 6401048517044185304}
|
- {fileID: 6401048517044185304}
|
||||||
- {fileID: 1958927731802958260}
|
- {fileID: 1958927731802958260}
|
||||||
- {fileID: 8940443638627649355}
|
- {fileID: 8940443638627649355}
|
||||||
|
- {fileID: 8411771944291717817}
|
||||||
m_Father: {fileID: 1888392902869825718}
|
m_Father: {fileID: 1888392902869825718}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 300, y: 0}
|
m_AnchoredPosition: {x: 500, y: 0}
|
||||||
m_SizeDelta: {x: 256, y: 256}
|
m_SizeDelta: {x: 256, y: 256}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &6645283475793646557
|
--- !u!222 &6645283475793646557
|
||||||
|
@ -1551,6 +1896,7 @@ RectTransform:
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
|
- {fileID: 1724769963328776691}
|
||||||
- {fileID: 7867255813535008431}
|
- {fileID: 7867255813535008431}
|
||||||
- {fileID: 2576201504434113081}
|
- {fileID: 2576201504434113081}
|
||||||
- {fileID: 2472731737000828561}
|
- {fileID: 2472731737000828561}
|
||||||
|
@ -1620,7 +1966,7 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 0.19607843}
|
m_Color: {r: 0.4862745, g: 0.6666667, b: 0.8784314, a: 0.19607843}
|
||||||
m_RaycastTarget: 1
|
m_RaycastTarget: 1
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
m_Maskable: 1
|
m_Maskable: 1
|
||||||
|
|
|
@ -160,6 +160,140 @@ MonoBehaviour:
|
||||||
m_FillOrigin: 0
|
m_FillOrigin: 0
|
||||||
m_UseSpriteMesh: 0
|
m_UseSpriteMesh: 0
|
||||||
m_PixelsPerUnitMultiplier: 1
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!1 &1545361635887485632
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1541122899319779203}
|
||||||
|
- component: {fileID: 2128977099815298311}
|
||||||
|
- component: {fileID: 8491918615249412914}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Text (TMP)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1541122899319779203
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1545361635887485632}
|
||||||
|
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: 4633988811284681484}
|
||||||
|
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: 800, y: 300}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &2128977099815298311
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1545361635887485632}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &8491918615249412914
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1545361635887485632}
|
||||||
|
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: CareboX
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: b04f3173f946b754db673ac13842f4c1, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: 21728410361126204, guid: b04f3173f946b754db673ac13842f4c1, type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4283979864
|
||||||
|
m_fontColor: {r: 0.34509805, g: 0.34509805, b: 0.34509805, 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: 200
|
||||||
|
m_fontSizeBase: 200
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 0
|
||||||
|
m_fontSizeMin: 18
|
||||||
|
m_fontSizeMax: 72
|
||||||
|
m_fontStyle: 1
|
||||||
|
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 &4632708918913146321
|
--- !u!1 &4632708918913146321
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -190,6 +324,7 @@ RectTransform:
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 1359963822425158848}
|
- {fileID: 1359963822425158848}
|
||||||
- {fileID: 7608049162824954157}
|
- {fileID: 7608049162824954157}
|
||||||
|
- {fileID: 1541122899319779203}
|
||||||
m_Father: {fileID: 6067314191371097767}
|
m_Father: {fileID: 6067314191371097767}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
@ -215,7 +350,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &7608049162824954157
|
--- !u!224 &7608049162824954157
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -282,7 +282,7 @@ RectTransform:
|
||||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 832497118}
|
- {fileID: 1444775323}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
@ -290,11 +290,6 @@ RectTransform:
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0, y: 0}
|
m_Pivot: {x: 0, y: 0}
|
||||||
--- !u!224 &832497118 stripped
|
|
||||||
RectTransform:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 3911742382226554954}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1 &844504214
|
--- !u!1 &844504214
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -594,103 +589,81 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 799b8be35b51f624db9b877baf209311, type: 3}
|
m_Script: {fileID: 11500000, guid: 799b8be35b51f624db9b877baf209311, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
--- !u!1001 &3911742382226554954
|
--- !u!1 &1444775322
|
||||||
PrefabInstance:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
serializedVersion: 2
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_Modification:
|
m_PrefabInstance: {fileID: 0}
|
||||||
serializedVersion: 3
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_TransformParent: {fileID: 793991319}
|
serializedVersion: 6
|
||||||
m_Modifications:
|
m_Component:
|
||||||
- target: {fileID: 4327728351019041244, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
- component: {fileID: 1444775323}
|
||||||
propertyPath: m_Name
|
- component: {fileID: 1444775325}
|
||||||
value: Background
|
- component: {fileID: 1444775324}
|
||||||
objectReference: {fileID: 0}
|
m_Layer: 5
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_Name: background
|
||||||
propertyPath: m_Pivot.x
|
m_TagString: Untagged
|
||||||
value: 0.5
|
m_Icon: {fileID: 0}
|
||||||
objectReference: {fileID: 0}
|
m_NavMeshLayer: 0
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_StaticEditorFlags: 0
|
||||||
propertyPath: m_Pivot.y
|
m_IsActive: 1
|
||||||
value: 0.5
|
--- !u!224 &1444775323
|
||||||
objectReference: {fileID: 0}
|
RectTransform:
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_ObjectHideFlags: 0
|
||||||
propertyPath: m_AnchorMax.x
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
value: 1
|
m_PrefabInstance: {fileID: 0}
|
||||||
objectReference: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_GameObject: {fileID: 1444775322}
|
||||||
propertyPath: m_AnchorMax.y
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
value: 1
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
objectReference: {fileID: 0}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_ConstrainProportionsScale: 0
|
||||||
propertyPath: m_AnchorMin.x
|
m_Children: []
|
||||||
value: 0
|
m_Father: {fileID: 793991319}
|
||||||
objectReference: {fileID: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
propertyPath: m_AnchorMin.y
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
value: 0
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
objectReference: {fileID: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
propertyPath: m_SizeDelta.x
|
--- !u!114 &1444775324
|
||||||
value: 0
|
MonoBehaviour:
|
||||||
objectReference: {fileID: 0}
|
m_ObjectHideFlags: 0
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
propertyPath: m_SizeDelta.y
|
m_PrefabInstance: {fileID: 0}
|
||||||
value: 0
|
m_PrefabAsset: {fileID: 0}
|
||||||
objectReference: {fileID: 0}
|
m_GameObject: {fileID: 1444775322}
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_Enabled: 1
|
||||||
propertyPath: m_LocalPosition.x
|
m_EditorHideFlags: 0
|
||||||
value: 0
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
objectReference: {fileID: 0}
|
m_Name:
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_EditorClassIdentifier:
|
||||||
propertyPath: m_LocalPosition.y
|
m_Material: {fileID: 0}
|
||||||
value: 0
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
objectReference: {fileID: 0}
|
m_RaycastTarget: 1
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
propertyPath: m_LocalPosition.z
|
m_Maskable: 1
|
||||||
value: 0
|
m_OnCullStateChanged:
|
||||||
objectReference: {fileID: 0}
|
m_PersistentCalls:
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_Calls: []
|
||||||
propertyPath: m_LocalRotation.w
|
m_Sprite: {fileID: 0}
|
||||||
value: 1
|
m_Type: 0
|
||||||
objectReference: {fileID: 0}
|
m_PreserveAspect: 0
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_FillCenter: 1
|
||||||
propertyPath: m_LocalRotation.x
|
m_FillMethod: 4
|
||||||
value: 0
|
m_FillAmount: 1
|
||||||
objectReference: {fileID: 0}
|
m_FillClockwise: 1
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_FillOrigin: 0
|
||||||
propertyPath: m_LocalRotation.y
|
m_UseSpriteMesh: 0
|
||||||
value: 0
|
m_PixelsPerUnitMultiplier: 1
|
||||||
objectReference: {fileID: 0}
|
--- !u!222 &1444775325
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
CanvasRenderer:
|
||||||
propertyPath: m_LocalRotation.z
|
m_ObjectHideFlags: 0
|
||||||
value: 0
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
objectReference: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
m_PrefabAsset: {fileID: 0}
|
||||||
propertyPath: m_AnchoredPosition.x
|
m_GameObject: {fileID: 1444775322}
|
||||||
value: 0
|
m_CullTransparentMesh: 1
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
|
||||||
propertyPath: m_AnchoredPosition.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 8805156796672989800, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
|
||||||
m_RemovedGameObjects: []
|
|
||||||
m_AddedGameObjects: []
|
|
||||||
m_AddedComponents: []
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 85c5c8dc06b4f49419cf4b1751725a67, type: 3}
|
|
||||||
--- !u!1660057539 &9223372036854775807
|
--- !u!1660057539 &9223372036854775807
|
||||||
SceneRoots:
|
SceneRoots:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -785,7 +785,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!114 &1969623177
|
--- !u!114 &1969623177
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -18,8 +18,6 @@ public class Boot : MonoBehaviour
|
||||||
Application.targetFrameRate = 60;
|
Application.targetFrameRate = 60;
|
||||||
//设置屏幕不休眠
|
//设置屏幕不休眠
|
||||||
Screen.sleepTimeout = SleepTimeout.NeverSleep;
|
Screen.sleepTimeout = SleepTimeout.NeverSleep;
|
||||||
//设置屏幕方向
|
|
||||||
Screen.orientation = ScreenOrientation.LandscapeLeft;
|
|
||||||
_isInited = UIManager.IsInited;
|
_isInited = UIManager.IsInited;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,27 +42,22 @@ public class CVEstimator : Singleton<CVEstimator>
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
YogaManager.Instance.CurrentEstimator.Init();
|
YogaManager.Instance.CurrentEstimator.Init();
|
||||||
LogPrint.Log("Current Estimator Inited", PrintLevel.Important);
|
|
||||||
//IsRunning = false;
|
//IsRunning = false;
|
||||||
_mainThread = new Thread(new ThreadStart(MainThread));
|
_mainThread = new Thread(new ThreadStart(MainThread));
|
||||||
_mainThread.Start();
|
_mainThread.Start();
|
||||||
IsInited = true;
|
IsInited = true;
|
||||||
|
|
||||||
LogPrint.Log($"Inited:{IsInited}", PrintLevel.Important);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void MainThread()
|
private void MainThread()
|
||||||
{
|
{
|
||||||
//解析数据
|
//解析数据
|
||||||
_estimateThread = new Thread(new ThreadStart(Estimation));
|
_estimateThread = new Thread(new ThreadStart(Estimation));
|
||||||
LogPrint.Log("MainThread Executed");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void StartEstimation()
|
public void StartEstimation()
|
||||||
{
|
{
|
||||||
if (IsRunning)
|
if (IsRunning)
|
||||||
{
|
{
|
||||||
LogPrint.Log("Estimation running");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!IsInited)
|
if (!IsInited)
|
||||||
|
@ -111,19 +106,18 @@ public class CVEstimator : Singleton<CVEstimator>
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
LogPrint.Log($"Estimation Thread Running!IsRunning:{IsRunning} {DateTime.Now}", PrintLevel.Important);
|
|
||||||
Mat rgbaMat = YogaManager.Instance.RgbaMat;
|
Mat rgbaMat = YogaManager.Instance.RgbaMat;
|
||||||
if (rgbaMat == null)
|
if (rgbaMat == null)
|
||||||
{
|
{
|
||||||
LogPrint.Log("WebCamTexture is null. ");
|
//LogPrint.Log("WebCamTexture is null. ");
|
||||||
LogPrint.Log("Re-Estimation.");
|
//LogPrint.Log("Re-Estimation.");
|
||||||
continue; //重新检测
|
continue; //重新检测
|
||||||
}
|
}
|
||||||
Imgproc.cvtColor(rgbaMat, bgrMat, Imgproc.COLOR_RGBA2BGR);
|
Imgproc.cvtColor(rgbaMat, bgrMat, Imgproc.COLOR_RGBA2BGR);
|
||||||
|
|
||||||
if (!YogaManager.Instance.CurrentEstimator.Esitmate(bgrMat, rgbaMat, out List<Point> points))
|
if (!YogaManager.Instance.CurrentEstimator.Esitmate(bgrMat, rgbaMat, out List<Point> points))
|
||||||
{
|
{
|
||||||
LogPrint.Log("Pose estimation failed. Re-Estimating.");
|
//LogPrint.Log("Pose estimation failed. Re-Estimating.");
|
||||||
continue; //重新检测
|
continue; //重新检测
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ public class HeadTurnDown : PoseBase
|
||||||
//必要点位 Nose Neck
|
//必要点位 Nose Neck
|
||||||
//计算鼻子到头颈矢量
|
//计算鼻子到头颈矢量
|
||||||
//return GetAverageVector(startPoint, endPoint, "Nose");
|
//return GetAverageVector(startPoint, endPoint, "Nose");
|
||||||
return GetTwoPointAverageVector(startPoint, endPoint, "Nose", "Neck");
|
return GetTwoPointAverageVector(startPoint, endPoint, "Neck", "Nose");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool IsMovePoint(string tagName)
|
protected override bool IsMovePoint(string tagName)
|
||||||
|
|
|
@ -11,7 +11,7 @@ public class HeadTurnUp : PoseBase
|
||||||
//必要点位 Nose Neck
|
//必要点位 Nose Neck
|
||||||
//计算鼻子到头颈矢量
|
//计算鼻子到头颈矢量
|
||||||
//return GetAverageVector(startPoint, endPoint, "Nose");
|
//return GetAverageVector(startPoint, endPoint, "Nose");
|
||||||
return GetTwoPointAverageVector(startPoint, endPoint, "Nose", "Neck");
|
return GetTwoPointAverageVector(startPoint, endPoint, "Neck", "Nose");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool IsMovePoint(string tagName)
|
protected override bool IsMovePoint(string tagName)
|
||||||
|
|
|
@ -1,10 +1,46 @@
|
||||||
using OpenCVForUnity.CoreModule;
|
using OpenCVForUnity.CoreModule;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class HoldPosition : PoseBase
|
public class HoldPosition : PoseBase
|
||||||
{
|
{
|
||||||
|
public override bool? AnalyzingAction(List<(DateTime, List<Point>)> points, bool isDataReGather = false)
|
||||||
|
{
|
||||||
|
if (points.Count < 2) // 0级实现逻辑 不做操作
|
||||||
|
return null;
|
||||||
|
|
||||||
|
var distance = Vector2.zero;
|
||||||
|
TimeSpan totalTimeSpan = TimeSpan.MinValue;
|
||||||
|
|
||||||
|
var startPoint = points.FirstOrDefault().Item2;
|
||||||
|
var endPoint = points.LastOrDefault().Item2;
|
||||||
|
|
||||||
|
var startDir = "Nose".vector(startPoint) - "Neck".vector(startPoint);
|
||||||
|
var endDir = "Nose".vector(endPoint) - "Neck".vector(endPoint);
|
||||||
|
|
||||||
|
var angle = Vector2.SignedAngle(startDir, endDir);
|
||||||
|
|
||||||
|
|
||||||
|
for (int i = 0; i < points.Count - 1; i++)
|
||||||
|
{
|
||||||
|
var p1 = points[i].Item2;
|
||||||
|
var p2 = points[i + 1].Item2;
|
||||||
|
|
||||||
|
var vector = GetBasicVectorDirection(p1, p2);
|
||||||
|
distance += vector;
|
||||||
|
|
||||||
|
TimeSpan timeSpan = points[i + 1].Item1 - points[i].Item1;
|
||||||
|
totalTimeSpan = timeSpan;
|
||||||
|
}
|
||||||
|
|
||||||
|
LogPrint.Warning($"angle: {angle}", PrintLevel.Normal);
|
||||||
|
LogPrint.Log($"distance: {distance}, totalTimeSpan: {totalTimeSpan}", PrintLevel.Normal);
|
||||||
|
|
||||||
|
return (angle < 10 || MovementValidation(distance, totalTimeSpan, 1).GetValueOrDefault());
|
||||||
|
}
|
||||||
|
|
||||||
public override Vector2 GetBasicVectorDirection(List<Point> startPoint, List<Point> endPoint)
|
public override Vector2 GetBasicVectorDirection(List<Point> startPoint, List<Point> endPoint)
|
||||||
{
|
{
|
||||||
List<Vector2> vectors = new List<Vector2>();
|
List<Vector2> vectors = new List<Vector2>();
|
||||||
|
@ -30,7 +66,7 @@ public class HoldPosition : PoseBase
|
||||||
|
|
||||||
//保持姿势不发生移动
|
//保持姿势不发生移动
|
||||||
|
|
||||||
if (distance.magnitude < 10f)//允许一定误差
|
if (distance.magnitude < 15f)//允许一定误差
|
||||||
{
|
{
|
||||||
//EventManager.Instance.Dispatch(YogaEventType.Action_Success);
|
//EventManager.Instance.Dispatch(YogaEventType.Action_Success);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -28,15 +28,15 @@ public abstract class PoseBase
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 侦测两帧之间的平均矢量
|
/// 侦测两帧之间的平均矢量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="startPoint">起始帧</param>
|
/// <param name="firstPoints">起始帧</param>
|
||||||
/// <param name="endPoint">结束帧</param>
|
/// <param name="lastPoints">结束帧</param>
|
||||||
/// <param name="movePoint">必须为必要点</param>
|
/// <param name="startPoint">必须为必要点</param>
|
||||||
/// <param name="staticPoint">必须为必要点</param>
|
/// <param name="endPoint">必须为必要点</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
protected Vector2 GetTwoPointAverageVector(List<Point> startPoint, List<Point> endPoint, string movePoint, string staticPoint)
|
protected Vector2 GetTwoPointAverageVector(List<Point> firstPoints, List<Point> lastPoints, string startPoint, string endPoint)
|
||||||
{
|
{
|
||||||
Vector2 startEyeV = new Vector2((float)movePoint.p(startPoint).x - (float)staticPoint.p(startPoint).x, (float)movePoint.p(startPoint).y - (float)staticPoint.p(startPoint).y);
|
Vector2 startEyeV = new Vector2((float)startPoint.p(firstPoints).x - (float)endPoint.p(firstPoints).x, (float)startPoint.p(firstPoints).y - (float)endPoint.p(firstPoints).y);
|
||||||
Vector2 endEyeV = new Vector2((float)movePoint.p(endPoint).x - (float)staticPoint.p(endPoint).x, (float)movePoint.p(endPoint).y - (float)staticPoint.p(endPoint).y);
|
Vector2 endEyeV = new Vector2((float)startPoint.p(lastPoints).x - (float)endPoint.p(lastPoints).x, (float)startPoint.p(lastPoints).y - (float)endPoint.p(lastPoints).y);
|
||||||
return endEyeV - startEyeV;
|
return endEyeV - startEyeV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -132,8 +132,6 @@ public class YogaManager : MonoSingleton<YogaManager>
|
||||||
EventManager.Instance.AddEventListener(YogaEventType.Action_SpeedTooFast, ExtraSpeedTooFast);
|
EventManager.Instance.AddEventListener(YogaEventType.Action_SpeedTooFast, ExtraSpeedTooFast);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void OnDisable()
|
private void OnDisable()
|
||||||
{
|
{
|
||||||
EventManager.Instance.RemoveEventListener(YogaEventType.UI_LevelFinished, ClearingSettlement);
|
EventManager.Instance.RemoveEventListener(YogaEventType.UI_LevelFinished, ClearingSettlement);
|
||||||
|
@ -195,6 +193,7 @@ public class YogaManager : MonoSingleton<YogaManager>
|
||||||
//采样质量评估
|
//采样质量评估
|
||||||
public bool? SampleQualityEvaluation(AvatarAction actionType, DateTime startTime, DateTime endTime)
|
public bool? SampleQualityEvaluation(AvatarAction actionType, DateTime startTime, DateTime endTime)
|
||||||
{
|
{
|
||||||
|
var pointsSource = new List<(DateTime, List<Point>)>(_estimateKeyPointsCache);
|
||||||
//获取时间间隔内的所有点及向量变化
|
//获取时间间隔内的所有点及向量变化
|
||||||
var framePoints = _estimateKeyPointsCache.Where(x => x.Item1 >= startTime && x.Item1 <= endTime).ToList();
|
var framePoints = _estimateKeyPointsCache.Where(x => x.Item1 >= startTime && x.Item1 <= endTime).ToList();
|
||||||
if (framePoints == null)
|
if (framePoints == null)
|
||||||
|
|
|
@ -16,7 +16,6 @@ public class TestGuideUI : UIPanelBase
|
||||||
//计时进度条
|
//计时进度条
|
||||||
private Image _progressBar;
|
private Image _progressBar;
|
||||||
private DateTime _startTime;
|
private DateTime _startTime;
|
||||||
private float _totalSeconds;
|
|
||||||
|
|
||||||
//面板显示数据
|
//面板显示数据
|
||||||
private TextMeshProUGUI _successText;
|
private TextMeshProUGUI _successText;
|
||||||
|
@ -146,12 +145,6 @@ public class TestGuideUI : UIPanelBase
|
||||||
}
|
}
|
||||||
|
|
||||||
YogaData data = pageData[0] as YogaData;
|
YogaData data = pageData[0] as YogaData;
|
||||||
_totalSeconds = data.TotalSeconds;
|
|
||||||
if (_totalSeconds == 0)
|
|
||||||
{
|
|
||||||
LogPrint.Error("TotalSeconds is 0");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
//重置显示数据
|
//重置显示数据
|
||||||
if (_successText != null)
|
if (_successText != null)
|
||||||
|
@ -185,7 +178,7 @@ public class TestGuideUI : UIPanelBase
|
||||||
private void ProgressUpdate()
|
private void ProgressUpdate()
|
||||||
{
|
{
|
||||||
var passedTime = Math.Abs((_startTime - DateTime.Now).TotalSeconds);
|
var passedTime = Math.Abs((_startTime - DateTime.Now).TotalSeconds);
|
||||||
_progressBar.fillAmount = (float)(passedTime / _totalSeconds);
|
_progressBar.fillAmount = (float)(passedTime / GuideMgr.AnimationLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnEnter()
|
public override void OnEnter()
|
||||||
|
|
|
@ -39,18 +39,6 @@ namespace Yoga
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
InvokeRepeating("GCCollection", 0, 1f);
|
|
||||||
}
|
|
||||||
private void GCCollection()
|
|
||||||
{
|
|
||||||
if (_isOnCamCapture && enabled == true && gameObject.activeInHierarchy == true)
|
|
||||||
StartCoroutine(CleanUp());
|
|
||||||
}
|
|
||||||
private IEnumerator CleanUp()
|
|
||||||
{
|
|
||||||
GC.Collect();
|
|
||||||
yield return Resources.UnloadUnusedAssets();
|
|
||||||
GC.Collect();
|
|
||||||
}
|
}
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
|
@ -91,9 +79,6 @@ namespace Yoga
|
||||||
{
|
{
|
||||||
YogaManager.Instance.RgbaMat = img.clone();
|
YogaManager.Instance.RgbaMat = img.clone();
|
||||||
|
|
||||||
//打印
|
|
||||||
if (GlobalData.Instance.IsEstimationPrintMode)
|
|
||||||
{
|
|
||||||
if (YogaManager.Instance.PersonRectResult.Count > 0)
|
if (YogaManager.Instance.PersonRectResult.Count > 0)
|
||||||
{
|
{
|
||||||
var box = YogaManager.Instance.PersonRectResult[0];
|
var box = YogaManager.Instance.PersonRectResult[0];
|
||||||
|
@ -101,8 +86,14 @@ namespace Yoga
|
||||||
float top = box[1];
|
float top = box[1];
|
||||||
float right = box[2];
|
float right = box[2];
|
||||||
float bottom = box[3];
|
float bottom = box[3];
|
||||||
Imgproc.rectangle(img, new Point(left, top), new Point(right, bottom), new Scalar(0, 0, 255), 20);
|
//Imgproc.rectangle(img, new Point(left, top), new Point(right, bottom), new Scalar(0, 0, 255), 5, 3);
|
||||||
|
|
||||||
|
DrawAimBox(img, left + 10, top + 10, right - 10, bottom - 10, 40);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//打印
|
||||||
|
if (GlobalData.Instance.IsEstimationPrintMode)
|
||||||
|
{
|
||||||
//YogaManager.Instance.CurrentEstimator.DebugPrint(ref img);
|
//YogaManager.Instance.CurrentEstimator.DebugPrint(ref img);
|
||||||
|
|
||||||
if (YogaManager.Instance.CurrEstimateKeyPoints != null && YogaManager.Instance.CurrEstimateKeyPoints.Count > 0)
|
if (YogaManager.Instance.CurrEstimateKeyPoints != null && YogaManager.Instance.CurrEstimateKeyPoints.Count > 0)
|
||||||
|
@ -122,9 +113,9 @@ namespace Yoga
|
||||||
|
|
||||||
if (points[idFrom] != null && points[idTo] != null)
|
if (points[idFrom] != null && points[idTo] != null)
|
||||||
{
|
{
|
||||||
Imgproc.line(img, points[idFrom], points[idTo], new Scalar(0, 255, 0), 3);
|
Imgproc.line(img, points[idFrom], points[idTo], new Scalar(255, 255, 255), 3);
|
||||||
Imgproc.ellipse(img, points[idFrom], new Size(3, 3), 0, 0, 360, new Scalar(0, 0, 255), Core.FILLED);
|
Imgproc.ellipse(img, points[idFrom], new Size(3, 3), 0, 0, 360, new Scalar(255, 0, 0), Core.FILLED);
|
||||||
Imgproc.ellipse(img, points[idTo], new Size(3, 3), 0, 0, 360, new Scalar(0, 0, 255), Core.FILLED);
|
Imgproc.ellipse(img, points[idTo], new Size(3, 3), 0, 0, 360, new Scalar(255, 0, 0), Core.FILLED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -134,6 +125,27 @@ namespace Yoga
|
||||||
Utils.matToTexture2D(img, DisplayTexture);
|
Utils.matToTexture2D(img, DisplayTexture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void DrawAimBox(Mat img, float left, float top, float right, float bottom, int lineLength)
|
||||||
|
{
|
||||||
|
Imgproc.cvtColor(img, img, Imgproc.COLOR_RGBA2RGB);
|
||||||
|
|
||||||
|
//界面蓝 RGB = 19, 115, 230
|
||||||
|
Imgproc.rectangle(img, new Point(left, top), new Point(right, bottom), new Scalar(255, 255, 255, 50), 2, 3);
|
||||||
|
//右下角
|
||||||
|
Imgproc.line(img, new Point(right, bottom), new Point(right - lineLength, bottom), new Scalar(255, 255, 255, 255), 10, 3);
|
||||||
|
Imgproc.line(img, new Point(right, bottom), new Point(right, bottom - lineLength), new Scalar(255, 255, 255, 255), 10, 3);
|
||||||
|
//左下角
|
||||||
|
Imgproc.line(img, new Point(left, bottom), new Point(left + lineLength, bottom), new Scalar(255, 255, 255, 255), 10, 3);
|
||||||
|
Imgproc.line(img, new Point(left, bottom), new Point(left, bottom - lineLength), new Scalar(255, 255, 255, 255), 10, 3);
|
||||||
|
//右上角
|
||||||
|
Imgproc.line(img, new Point(right, top), new Point(right - lineLength, top), new Scalar(255, 255, 255, 255), 10, 3);
|
||||||
|
Imgproc.line(img, new Point(right, top), new Point(right, top + lineLength), new Scalar(255, 255, 255, 255), 10, 3);
|
||||||
|
//左上角
|
||||||
|
Imgproc.line(img, new Point(left, top), new Point(left + lineLength, top), new Scalar(255, 255, 255, 255), 10, 3);
|
||||||
|
Imgproc.line(img, new Point(left, top), new Point(left, top + lineLength), new Scalar(255, 255, 255, 255), 10, 3);
|
||||||
|
Imgproc.cvtColor(img, img, Imgproc.COLOR_RGB2RGBA);
|
||||||
|
}
|
||||||
|
|
||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
{
|
{
|
||||||
OnRelease();
|
OnRelease();
|
||||||
|
|
|
@ -2,13 +2,37 @@
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.UIElements;
|
||||||
|
|
||||||
public class GudieAnimationManager : MonoBehaviour
|
public class GudieAnimationManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
private Animator _animator;
|
private Animator _animator;
|
||||||
private string _currName;
|
private string _currName;
|
||||||
|
private bool _isAnimationStartPlay;
|
||||||
private List<AvatarAction> _actionList = new List<AvatarAction>();
|
private List<AvatarAction> _actionList = new List<AvatarAction>();
|
||||||
|
|
||||||
|
private List<string> _actionNameList = new List<string>();
|
||||||
|
|
||||||
|
private float _animationLength = 0;
|
||||||
|
public float AnimationLength
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (_animationLength == 0)
|
||||||
|
{
|
||||||
|
AnimationClip[] clips = Animator.runtimeAnimatorController.animationClips;
|
||||||
|
foreach (AnimationClip clip in clips)
|
||||||
|
{
|
||||||
|
if (_actionNameList.Contains(clip.name))
|
||||||
|
{
|
||||||
|
_animationLength += clip.length;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return _animationLength;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Animator Animator
|
public Animator Animator
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -21,11 +45,30 @@ public class GudieAnimationManager : MonoBehaviour
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<string> ActionNameList
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (_actionNameList.Count == 0)
|
||||||
|
{
|
||||||
|
foreach (var item in Enum.GetNames(typeof(AvatarAction)))
|
||||||
|
{
|
||||||
|
_actionNameList.Add(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return _actionNameList;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_animator = transform.GetComponentInChildren<Animator>();
|
_animator = transform.GetComponentInChildren<Animator>();
|
||||||
|
_isAnimationStartPlay = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void Play(string name)
|
public void Play(string name)
|
||||||
{
|
{
|
||||||
Animator.CrossFade(name, 0.5f);
|
Animator.CrossFade(name, 0.5f);
|
||||||
|
@ -34,8 +77,20 @@ public class GudieAnimationManager : MonoBehaviour
|
||||||
|
|
||||||
public void PlayCurrentActionList(List<AvatarAction> actionList)
|
public void PlayCurrentActionList(List<AvatarAction> actionList)
|
||||||
{
|
{
|
||||||
|
_isAnimationStartPlay = true;
|
||||||
_actionList = actionList;
|
_actionList = actionList;
|
||||||
YogaManager.Instance.ActionIndex = 0;
|
|
||||||
|
AnimationClip[] clips = Animator.runtimeAnimatorController.animationClips;
|
||||||
|
_animationLength = 0;
|
||||||
|
foreach (AnimationClip clip in clips)
|
||||||
|
{
|
||||||
|
if (_actionNameList.Contains(clip.name))
|
||||||
|
{
|
||||||
|
_animationLength += clip.length;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Play(Enum.GetName(typeof(AvatarAction), _actionList[YogaManager.Instance.ActionIndex]));
|
Play(Enum.GetName(typeof(AvatarAction), _actionList[YogaManager.Instance.ActionIndex]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,8 +98,19 @@ public class GudieAnimationManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(_currName))
|
if (string.IsNullOrEmpty(_currName))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!_isAnimationStartPlay)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var currName = GetCurrentAnimationName();
|
||||||
|
if (!ActionNameList.Contains(currName))
|
||||||
|
{
|
||||||
|
Play(ActionNameList[YogaManager.Instance.ActionIndex]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//当未达到指标且动画播放完毕时,重新播放
|
//当未达到指标且动画播放完毕时,重新播放
|
||||||
if (Animator.GetCurrentAnimatorStateInfo(0).normalizedTime >= 1.0f)
|
if (Animator.GetCurrentAnimatorStateInfo(0).normalizedTime >= 1.0f && GetCurrentAnimationName().Equals(Enum.GetName(typeof(AvatarAction), _actionList[YogaManager.Instance.ActionIndex])))
|
||||||
{
|
{
|
||||||
//如果列表动画index小于列表长度,播放下一个动画
|
//如果列表动画index小于列表长度,播放下一个动画
|
||||||
YogaManager.Instance.ActionIndex++;
|
YogaManager.Instance.ActionIndex++;
|
||||||
|
@ -59,6 +125,22 @@ public class GudieAnimationManager : MonoBehaviour
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string GetCurrentAnimationName()
|
||||||
|
{
|
||||||
|
if (Animator == null)
|
||||||
|
{
|
||||||
|
return string.Empty;
|
||||||
|
}
|
||||||
|
var clipInfo = Animator.GetCurrentAnimatorClipInfo(0);
|
||||||
|
|
||||||
|
if (clipInfo.Length > 0)
|
||||||
|
{
|
||||||
|
var name = clipInfo[0].clip.name;
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
return string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
public void Stop()
|
public void Stop()
|
||||||
{
|
{
|
||||||
Animator.StopPlayback();
|
Animator.StopPlayback();
|
||||||
|
|
|
@ -15,8 +15,20 @@ namespace Yoga
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_flipImg = Resources.Load<Material>("Materials/Unlit_FlipHorizontal");
|
_flipImg = Resources.Load<Material>("Materials/Unlit_FlipHorizontal");
|
||||||
|
InvokeRepeating("GCCollection", 0, 1f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void GCCollection()
|
||||||
|
{
|
||||||
|
if (_isOnCamCapture && enabled == true && gameObject.activeInHierarchy == true)
|
||||||
|
StartCoroutine(CleanUp());
|
||||||
|
}
|
||||||
|
protected IEnumerator CleanUp()
|
||||||
|
{
|
||||||
|
GC.Collect();
|
||||||
|
yield return Resources.UnloadUnusedAssets();
|
||||||
|
GC.Collect();
|
||||||
|
}
|
||||||
protected override void ManagerEnable()
|
protected override void ManagerEnable()
|
||||||
{
|
{
|
||||||
GlobalData.Instance.IsFlip = true;
|
GlobalData.Instance.IsFlip = true;
|
||||||
|
@ -30,7 +42,6 @@ namespace Yoga
|
||||||
{
|
{
|
||||||
Mat img = null;
|
Mat img = null;
|
||||||
|
|
||||||
LogPrint.Log("USB Camera!");
|
|
||||||
if (UVCManager.Instance != null &&
|
if (UVCManager.Instance != null &&
|
||||||
UVCManager.Instance.GetAttachedDevices() != null && UVCManager.Instance.GetAttachedDevices().Count > 0)
|
UVCManager.Instance.GetAttachedDevices() != null && UVCManager.Instance.GetAttachedDevices().Count > 0)
|
||||||
{
|
{
|
||||||
|
@ -38,12 +49,10 @@ namespace Yoga
|
||||||
for (int i = 0; i < devices.Count; i++)
|
for (int i = 0; i < devices.Count; i++)
|
||||||
{
|
{
|
||||||
UVCManager.CameraInfo device = devices[i];
|
UVCManager.CameraInfo device = devices[i];
|
||||||
LogPrint.Log($"id:{i},pid:{device.Pid},vid:{device.Vid},deviceName:{device.DeviceName}");
|
|
||||||
}
|
}
|
||||||
var index = PlayerPrefs.GetInt("USBCameraIndex");
|
var index = PlayerPrefs.GetInt("USBCameraIndex");
|
||||||
if (index >= devices.Count || index < 0) //数量超出时候改为默认第一个
|
if (index >= devices.Count || index < 0) //数量超出时候改为默认第一个
|
||||||
index = 0;
|
index = 0;
|
||||||
LogPrint.Log($"current ID {index} name:" + devices[index].DeviceName);
|
|
||||||
if (devices[index].previewTexture == null)
|
if (devices[index].previewTexture == null)
|
||||||
throw new Exception("No preview Texture found!");
|
throw new Exception("No preview Texture found!");
|
||||||
|
|
||||||
|
@ -52,7 +61,6 @@ namespace Yoga
|
||||||
img = new Mat(UVCManager.Instance.DefaultHeight, UVCManager.Instance.DefaultWidth, CvType.CV_8UC3);
|
img = new Mat(UVCManager.Instance.DefaultHeight, UVCManager.Instance.DefaultWidth, CvType.CV_8UC3);
|
||||||
Utils.texture2DToMat(tmpTex, img);
|
Utils.texture2DToMat(tmpTex, img);
|
||||||
}
|
}
|
||||||
|
|
||||||
return img;
|
return img;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
public class PanelItemManager : MonoBehaviour
|
public class PanelItemManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
@ -10,5 +11,22 @@ public class PanelItemManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
Title = transform.Find("Title").GetComponent<TMP_Text>();
|
Title = transform.Find("Title").GetComponent<TMP_Text>();
|
||||||
Description = transform.Find("Description").GetComponent<TMP_Text>();
|
Description = transform.Find("Description").GetComponent<TMP_Text>();
|
||||||
|
transform.Find("Lock").gameObject.SetActive(false);
|
||||||
|
transform.Find("background").GetComponent<Image>().color = new Color(1, 1, 1, 1);
|
||||||
|
Description.gameObject.SetActive(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Lock()
|
||||||
|
{
|
||||||
|
transform.Find("Lock").gameObject.SetActive(true);
|
||||||
|
transform.Find("background").GetComponent<Image>().color = new Color(0.5f, 0.5f, 0.5f, 0.5f);
|
||||||
|
Description.gameObject.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UnLock()
|
||||||
|
{
|
||||||
|
transform.Find("Lock").gameObject.SetActive(false);
|
||||||
|
transform.Find("background").GetComponent<Image>().color = new Color(1, 1, 1, 1);
|
||||||
|
Description.gameObject.SetActive(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ public class FaceDetectUI : UIPanelBase
|
||||||
|
|
||||||
private Dictionary<string, string> itemDetail = new Dictionary<string, string>();
|
private Dictionary<string, string> itemDetail = new Dictionary<string, string>();
|
||||||
private Transform _content;
|
private Transform _content;
|
||||||
|
private List<string> _lockedItem = new List<string>() { "Blond_Hair", "Wearing_Hat" };
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
|
@ -37,6 +38,9 @@ public class FaceDetectUI : UIPanelBase
|
||||||
|
|
||||||
foreach (var item in items)
|
foreach (var item in items)
|
||||||
{
|
{
|
||||||
|
if (item.Key.Equals("Bald"))
|
||||||
|
continue;
|
||||||
|
|
||||||
GameObject go;
|
GameObject go;
|
||||||
if (index < count)
|
if (index < count)
|
||||||
{
|
{
|
||||||
|
@ -56,6 +60,16 @@ public class FaceDetectUI : UIPanelBase
|
||||||
mgr.Description.text = item.Value;
|
mgr.Description.text = item.Value;
|
||||||
go.transform.gameObject.SetActive(true);
|
go.transform.gameObject.SetActive(true);
|
||||||
go.transform.SetSiblingIndex(index);
|
go.transform.SetSiblingIndex(index);
|
||||||
|
|
||||||
|
if (_lockedItem.Contains(item.Key))
|
||||||
|
{
|
||||||
|
mgr.Lock();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mgr.UnLock();
|
||||||
|
}
|
||||||
|
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,6 @@ public class GuideUI : UIPanelBase
|
||||||
//计时进度条
|
//计时进度条
|
||||||
private Image _progressBar;
|
private Image _progressBar;
|
||||||
private DateTime _startTime;
|
private DateTime _startTime;
|
||||||
private float _totalSeconds;
|
|
||||||
|
|
||||||
//面板显示数据
|
//面板显示数据
|
||||||
private TextMeshProUGUI _successText;
|
private TextMeshProUGUI _successText;
|
||||||
|
@ -78,12 +77,6 @@ public class GuideUI : UIPanelBase
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (animeType is AvatarAction)
|
|
||||||
{
|
|
||||||
GuideMgr.Play(Enum.GetName(typeof(AvatarAction), animeType));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (animeType is List<AvatarAction>)
|
if (animeType is List<AvatarAction>)
|
||||||
{
|
{
|
||||||
var actionList = animeType as List<AvatarAction>;
|
var actionList = animeType as List<AvatarAction>;
|
||||||
|
@ -146,12 +139,6 @@ public class GuideUI : UIPanelBase
|
||||||
}
|
}
|
||||||
|
|
||||||
YogaData data = pageData[0] as YogaData;
|
YogaData data = pageData[0] as YogaData;
|
||||||
_totalSeconds = data.TotalSeconds;
|
|
||||||
if (_totalSeconds == 0)
|
|
||||||
{
|
|
||||||
LogPrint.Error("TotalSeconds is 0");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
//重置显示数据
|
//重置显示数据
|
||||||
if (_successText != null)
|
if (_successText != null)
|
||||||
|
@ -185,7 +172,7 @@ public class GuideUI : UIPanelBase
|
||||||
private void ProgressUpdate()
|
private void ProgressUpdate()
|
||||||
{
|
{
|
||||||
var passedTime = Math.Abs((_startTime - DateTime.Now).TotalSeconds);
|
var passedTime = Math.Abs((_startTime - DateTime.Now).TotalSeconds);
|
||||||
_progressBar.fillAmount = (float)(passedTime / _totalSeconds);
|
_progressBar.fillAmount = (float)(passedTime / GuideMgr.AnimationLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnEnter()
|
public override void OnEnter()
|
||||||
|
@ -193,9 +180,8 @@ public class GuideUI : UIPanelBase
|
||||||
base.OnEnter();
|
base.OnEnter();
|
||||||
_guide.SetActive(true);
|
_guide.SetActive(true);
|
||||||
EventManager.Instance.Dispatch(YogaEventType.StartMotionCapture);
|
EventManager.Instance.Dispatch(YogaEventType.StartMotionCapture);
|
||||||
|
YogaManager.Instance.ActionIndex = 0;
|
||||||
EventManager.Instance.Dispatch(YogaEventType.PlayAnimation, YogaManager.Instance.LevelData.Actions);
|
EventManager.Instance.Dispatch(YogaEventType.PlayAnimation, YogaManager.Instance.LevelData.Actions);
|
||||||
//EventManager.Instance.Dispatch(YogaEventType.PlayAnimation, YogaManager.Instance.LevelData.Action);
|
|
||||||
|
|
||||||
_startTime = DateTime.Now;
|
_startTime = DateTime.Now;
|
||||||
InvokeRepeating("ProgressUpdate", 0, 0.05f); //20fps
|
InvokeRepeating("ProgressUpdate", 0, 0.05f); //20fps
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,11 +14,10 @@ public class YogaDataLoader
|
||||||
data[-1] = new YogaData()
|
data[-1] = new YogaData()
|
||||||
{
|
{
|
||||||
VideoPath = "Video/Action3",
|
VideoPath = "Video/Action3",
|
||||||
Actions = new List<AvatarAction>() { AvatarAction.SitUpright, AvatarAction.HeadShake },
|
Actions = new List<AvatarAction>() { AvatarAction.SitUpright, AvatarAction.Nod },
|
||||||
Action = AvatarAction.Nod,
|
//Action = AvatarAction.Nod,
|
||||||
ModelType = ModelType.OpenPose,
|
ModelType = ModelType.OpenPose,
|
||||||
MaxCheckPointCount = 1000,
|
MaxCheckPointCount = 1000,
|
||||||
TotalSeconds = 20.0f,
|
|
||||||
RectCutRate = 0.2f,
|
RectCutRate = 0.2f,
|
||||||
MustPoints = new List<string>() { "Nose", "Neck" },//{"REye", "LEye"}
|
MustPoints = new List<string>() { "Nose", "Neck" },//{"REye", "LEye"}
|
||||||
//AnyPoints = new List<string>() { "RWrist", "LWrist" }
|
//AnyPoints = new List<string>() { "RWrist", "LWrist" }
|
||||||
|
@ -28,10 +27,9 @@ public class YogaDataLoader
|
||||||
{
|
{
|
||||||
VideoPath = "Video/Action1",
|
VideoPath = "Video/Action1",
|
||||||
Actions = new List<AvatarAction>() { AvatarAction.SitUpright, AvatarAction.HeadShake },
|
Actions = new List<AvatarAction>() { AvatarAction.SitUpright, AvatarAction.HeadShake },
|
||||||
Action = AvatarAction.HeadShake,
|
//Action = AvatarAction.HeadShake,
|
||||||
ModelType = ModelType.OpenPose,
|
ModelType = ModelType.OpenPose,
|
||||||
MaxCheckPointCount = 4,
|
MaxCheckPointCount = 4,
|
||||||
TotalSeconds = 20.0f,
|
|
||||||
RectCutRate = 0.25f,
|
RectCutRate = 0.25f,
|
||||||
MustPoints = new List<string>() { "Nose", /*"REye", "LEye", */"Neck" }
|
MustPoints = new List<string>() { "Nose", /*"REye", "LEye", */"Neck" }
|
||||||
};
|
};
|
||||||
|
@ -39,10 +37,9 @@ public class YogaDataLoader
|
||||||
{
|
{
|
||||||
VideoPath = "Video/Action2",
|
VideoPath = "Video/Action2",
|
||||||
Actions = new List<AvatarAction>() { AvatarAction.SitUpright, AvatarAction.Nod },
|
Actions = new List<AvatarAction>() { AvatarAction.SitUpright, AvatarAction.Nod },
|
||||||
Action = AvatarAction.Nod,
|
//Action = AvatarAction.Nod,
|
||||||
ModelType = ModelType.OpenPose,
|
ModelType = ModelType.OpenPose,
|
||||||
MaxCheckPointCount = 4,
|
MaxCheckPointCount = 4,
|
||||||
TotalSeconds = 20.0f,
|
|
||||||
RectCutRate = 0.25f,
|
RectCutRate = 0.25f,
|
||||||
MustPoints = new List<string>() { "Nose",/* "REye", "LEye", */"Neck" }
|
MustPoints = new List<string>() { "Nose",/* "REye", "LEye", */"Neck" }
|
||||||
};
|
};
|
||||||
|
@ -50,10 +47,9 @@ public class YogaDataLoader
|
||||||
{
|
{
|
||||||
VideoPath = "Video/Action3",
|
VideoPath = "Video/Action3",
|
||||||
Actions = new List<AvatarAction>() { AvatarAction.SitUpright, AvatarAction.LateralHead },
|
Actions = new List<AvatarAction>() { AvatarAction.SitUpright, AvatarAction.LateralHead },
|
||||||
Action = AvatarAction.LateralHead,
|
//Action = AvatarAction.LateralHead,
|
||||||
ModelType = ModelType.OpenPose,
|
ModelType = ModelType.OpenPose,
|
||||||
MaxCheckPointCount = 4,
|
MaxCheckPointCount = 4,
|
||||||
TotalSeconds = 12.66f,
|
|
||||||
MustPoints = new List<string>() { "REye", "LEye" }
|
MustPoints = new List<string>() { "REye", "LEye" }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -72,10 +68,9 @@ public class YogaData
|
||||||
{
|
{
|
||||||
public string VideoPath;
|
public string VideoPath;
|
||||||
internal List<AvatarAction> Actions;
|
internal List<AvatarAction> Actions;
|
||||||
public AvatarAction Action;
|
//public AvatarAction Action;
|
||||||
public ModelType ModelType;
|
public ModelType ModelType;
|
||||||
public int MaxCheckPointCount;
|
public int MaxCheckPointCount;
|
||||||
public float TotalSeconds;
|
|
||||||
public float RectCutRate;
|
public float RectCutRate;
|
||||||
public List<string> MustPoints = new List<string>();
|
public List<string> MustPoints = new List<string>();
|
||||||
public List<string> AnyPoints = new List<string>();
|
public List<string> AnyPoints = new List<string>();
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
|
@ -0,0 +1,124 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 565c6bde9cad7a041bf103b2151526f4
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
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: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
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: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
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: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Android
|
||||||
|
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: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
After Width: | Height: | Size: 829 B |
|
@ -0,0 +1,124 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e2acc6ce5792dd443944d679719895e7
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
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: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
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: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
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: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Android
|
||||||
|
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: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
|
@ -0,0 +1,124 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 139541ce220ffc44fb9bf4993db13c99
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
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: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
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: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
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: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Android
|
||||||
|
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: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -498,7 +498,7 @@ namespace Serenegiant.UVC
|
||||||
{
|
{
|
||||||
//return FilterDevice(device.name);
|
//return FilterDevice(device.name);
|
||||||
|
|
||||||
if (device.name == "/dev/bus/usb/002/007")
|
if (IsIRDevice(device))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ((UVCDrawers == null) || (UVCDrawers.Length == 0))
|
if ((UVCDrawers == null) || (UVCDrawers.Length == 0))
|
||||||
|
@ -530,12 +530,25 @@ namespace Serenegiant.UVC
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="deviceName"></param>
|
/// <param name="deviceName"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
bool FilterDevice(string deviceName)
|
bool IsIRDevice(UVCDevice device)
|
||||||
{
|
{
|
||||||
Debug.Log(deviceName + " :" + (deviceName == "/dev/bus/usb/002/008"));
|
#if UNITY_ANDROID
|
||||||
return deviceName == "/dev/bus/usb/002/008";
|
AndroidJavaClass util = new AndroidJavaClass("com.unity3d.player.USBCamUtil");
|
||||||
|
bool f = util.CallStatic<bool>("CamIsIR", device.name);
|
||||||
|
Debug.Log(device.name + " 过滤结果:" + f);
|
||||||
|
return f;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
void PrintAllDevices()
|
||||||
|
{
|
||||||
|
AndroidJavaClass util = new AndroidJavaClass("com.unity3d.player.USBCamUtil");
|
||||||
|
string[] strs = util.CallStatic<string[]>("GetAllDevice");
|
||||||
|
Debug.Log("设备数量:" + strs.Length);
|
||||||
|
foreach (var item in strs)
|
||||||
|
{
|
||||||
|
Debug.Log(item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UVC機器が取り外されたときの処理の実体
|
* UVC機器が取り外されたときの処理の実体
|
||||||
* @param info
|
* @param info
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
"com.unity.2d.sprite": "1.0.0",
|
"com.unity.2d.sprite": "1.0.0",
|
||||||
"com.unity.adaptiveperformance": "5.0.2",
|
"com.unity.adaptiveperformance": "5.0.2",
|
||||||
"com.unity.adaptiveperformance.google.android": "1.1.2",
|
"com.unity.adaptiveperformance.google.android": "1.1.2",
|
||||||
"com.unity.adaptiveperformance.samsung.android": "5.0.0",
|
|
||||||
"com.unity.feature.characters-animation": "1.0.0",
|
"com.unity.feature.characters-animation": "1.0.0",
|
||||||
"com.unity.ide.visualstudio": "2.0.22",
|
"com.unity.ide.visualstudio": "2.0.22",
|
||||||
"com.unity.memoryprofiler": "1.1.0",
|
"com.unity.memoryprofiler": "1.1.0",
|
||||||
|
|
|
@ -31,15 +31,6 @@
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.cn"
|
||||||
},
|
},
|
||||||
"com.unity.adaptiveperformance.samsung.android": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"depth": 0,
|
|
||||||
"source": "registry",
|
|
||||||
"dependencies": {
|
|
||||||
"com.unity.adaptiveperformance": "5.0.0"
|
|
||||||
},
|
|
||||||
"url": "https://packages.unity.cn"
|
|
||||||
},
|
|
||||||
"com.unity.animation.rigging": {
|
"com.unity.animation.rigging": {
|
||||||
"version": "1.2.1",
|
"version": "1.2.1",
|
||||||
"depth": 1,
|
"depth": 1,
|
||||||
|
|
Loading…
Reference in New Issue