Merge branch 'main' of http://220.90.135.190:3000/UVCXR/Studio
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 574 B After Width: | Height: | Size: 1.8 KiB |
@@ -49,7 +49,7 @@ TextureImporter:
|
|||||||
alignment: 0
|
alignment: 0
|
||||||
spritePivot: {x: 0.5, y: 0.5}
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
spritePixelsToUnits: 100
|
spritePixelsToUnits: 100
|
||||||
spriteBorder: {x: 4, y: 4, z: 4, w: 4}
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
spriteGenerateFallbackPhysicsShape: 1
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
alphaUsage: 1
|
alphaUsage: 1
|
||||||
alphaIsTransparency: 1
|
alphaIsTransparency: 1
|
||||||
@@ -101,7 +101,7 @@ TextureImporter:
|
|||||||
physicsShape: []
|
physicsShape: []
|
||||||
bones: []
|
bones: []
|
||||||
spriteID: 5e97eb03825dee720800000000000000
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
internalID: 1537655665
|
internalID: 0
|
||||||
vertices: []
|
vertices: []
|
||||||
indices:
|
indices:
|
||||||
edges: []
|
edges: []
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 401 B After Width: | Height: | Size: 1.5 KiB |
@@ -38,9 +38,9 @@ RectTransform:
|
|||||||
m_Father: {fileID: 9151118461914384115}
|
m_Father: {fileID: 9151118461914384115}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0.5}
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
m_AnchorMax: {x: 0, y: 0.5}
|
m_AnchorMax: {x: 1, y: 0.5}
|
||||||
m_AnchoredPosition: {x: -20, y: 7}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 460, y: 28}
|
m_SizeDelta: {x: 0, y: 35}
|
||||||
m_Pivot: {x: 0, y: 0.5}
|
m_Pivot: {x: 0, y: 0.5}
|
||||||
--- !u!114 &8577872390119345382
|
--- !u!114 &8577872390119345382
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@@ -400,8 +400,8 @@ MonoBehaviour:
|
|||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_text: New Text
|
m_text: New Text
|
||||||
m_isRightToLeft: 0
|
m_isRightToLeft: 0
|
||||||
m_fontAsset: {fileID: 11400000, guid: 69abd87f38225ed46aa612577c25f379, type: 2}
|
m_fontAsset: {fileID: 11400000, guid: 9a2c7e704ad3e62438526dc8aecaeb56, type: 2}
|
||||||
m_sharedMaterial: {fileID: -7290017371581542385, guid: 69abd87f38225ed46aa612577c25f379, type: 2}
|
m_sharedMaterial: {fileID: 682561501981441939, guid: 9a2c7e704ad3e62438526dc8aecaeb56, type: 2}
|
||||||
m_fontSharedMaterials: []
|
m_fontSharedMaterials: []
|
||||||
m_fontMaterial: {fileID: 0}
|
m_fontMaterial: {fileID: 0}
|
||||||
m_fontMaterials: []
|
m_fontMaterials: []
|
||||||
@@ -1078,7 +1078,6 @@ GameObject:
|
|||||||
- component: {fileID: 8781087111399529913}
|
- component: {fileID: 8781087111399529913}
|
||||||
- component: {fileID: 7596083260074090403}
|
- component: {fileID: 7596083260074090403}
|
||||||
- component: {fileID: 3260751984552170403}
|
- component: {fileID: 3260751984552170403}
|
||||||
- component: {fileID: 1619343650484821890}
|
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Line
|
m_Name: Line
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@@ -1126,10 +1125,10 @@ 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.78431374, g: 0.78431374, b: 0.78431374, 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: 0
|
||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
@@ -1143,21 +1142,6 @@ MonoBehaviour:
|
|||||||
m_FillOrigin: 0
|
m_FillOrigin: 0
|
||||||
m_UseSpriteMesh: 0
|
m_UseSpriteMesh: 0
|
||||||
m_PixelsPerUnitMultiplier: 1
|
m_PixelsPerUnitMultiplier: 1
|
||||||
--- !u!114 &1619343650484821890
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 7706922996775437488}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_EffectColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5}
|
|
||||||
m_EffectDistance: {x: 0, y: -1}
|
|
||||||
m_UseGraphicAlpha: 1
|
|
||||||
--- !u!1 &7801651291590131016
|
--- !u!1 &7801651291590131016
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@@ -734,7 +734,6 @@ MonoBehaviour:
|
|||||||
upperLine: {fileID: 2946232207523233411}
|
upperLine: {fileID: 2946232207523233411}
|
||||||
lowerLine: {fileID: 4764771198905317747}
|
lowerLine: {fileID: 4764771198905317747}
|
||||||
lineColor: {r: 1, g: 0, b: 0, a: 0.47058824}
|
lineColor: {r: 1, g: 0, b: 0, a: 0.47058824}
|
||||||
highLight: {fileID: 0}
|
|
||||||
isSelected: 0
|
isSelected: 0
|
||||||
--- !u!1 &3809916293675722094
|
--- !u!1 &3809916293675722094
|
||||||
GameObject:
|
GameObject:
|
||||||
@@ -989,8 +988,8 @@ MonoBehaviour:
|
|||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_text:
|
m_text:
|
||||||
m_isRightToLeft: 0
|
m_isRightToLeft: 0
|
||||||
m_fontAsset: {fileID: 11400000, guid: 4f170a218dfffe4489dc7ddd54bc15cf, type: 2}
|
m_fontAsset: {fileID: 11400000, guid: 69abd87f38225ed46aa612577c25f379, type: 2}
|
||||||
m_sharedMaterial: {fileID: 6975767319296004534, guid: 4f170a218dfffe4489dc7ddd54bc15cf, type: 2}
|
m_sharedMaterial: {fileID: -7290017371581542385, guid: 69abd87f38225ed46aa612577c25f379, type: 2}
|
||||||
m_fontSharedMaterials: []
|
m_fontSharedMaterials: []
|
||||||
m_fontMaterial: {fileID: 0}
|
m_fontMaterial: {fileID: 0}
|
||||||
m_fontMaterials: []
|
m_fontMaterials: []
|
||||||
@@ -1014,13 +1013,13 @@ MonoBehaviour:
|
|||||||
m_faceColor:
|
m_faceColor:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 4294967295
|
rgba: 4294967295
|
||||||
m_fontSize: 15
|
m_fontSize: 14
|
||||||
m_fontSizeBase: 15
|
m_fontSizeBase: 14
|
||||||
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: 1
|
m_fontStyle: 0
|
||||||
m_HorizontalAlignment: 2
|
m_HorizontalAlignment: 2
|
||||||
m_VerticalAlignment: 512
|
m_VerticalAlignment: 512
|
||||||
m_textAlignment: 65535
|
m_textAlignment: 65535
|
||||||
|
|||||||
85
Assets/Scenes/pre-0.24.0/GameObject Profile.asset
Normal file
85
Assets/Scenes/pre-0.24.0/GameObject Profile.asset
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3}
|
||||||
|
m_Name: GameObject Profile
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
components:
|
||||||
|
- {fileID: 7287459268429832391}
|
||||||
|
- {fileID: 1765677894710564828}
|
||||||
|
--- !u!114 &1765677894710564828
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 3
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 66f335fb1ffd8684294ad653bf1c7564, type: 3}
|
||||||
|
m_Name: ColorAdjustments
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
active: 1
|
||||||
|
postExposure:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 0
|
||||||
|
contrast:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 0
|
||||||
|
colorFilter:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
hueShift:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 0
|
||||||
|
saturation:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 0
|
||||||
|
--- !u!114 &7287459268429832391
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 3
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 97c23e3b12dc18c42a140437e53d3951, type: 3}
|
||||||
|
m_Name: Tonemapping
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
active: 1
|
||||||
|
mode:
|
||||||
|
m_OverrideState: 1
|
||||||
|
m_Value: 1
|
||||||
|
neutralHDRRangeReductionMode:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 2
|
||||||
|
acesPreset:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 3
|
||||||
|
hueShiftAmount:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 0
|
||||||
|
detectPaperWhite:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 0
|
||||||
|
paperWhite:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 300
|
||||||
|
detectBrightnessLimits:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 1
|
||||||
|
minNits:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 0.005
|
||||||
|
maxNits:
|
||||||
|
m_OverrideState: 0
|
||||||
|
m_Value: 1000
|
||||||
8
Assets/Scenes/pre-0.24.0/GameObject Profile.asset.meta
Normal file
8
Assets/Scenes/pre-0.24.0/GameObject Profile.asset.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b79d68419016700429b8165b3ca9685b
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -422,13 +422,15 @@ namespace Studio.AssetTool
|
|||||||
|
|
||||||
var shortcutTable = new Dictionary<KeyCode, Dictionary<KeyCode, Action>>();
|
var shortcutTable = new Dictionary<KeyCode, Dictionary<KeyCode, Action>>();
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
shortcutTable.Add(KeyCode.LeftShift, new Dictionary<KeyCode, Action>());
|
shortcutTable.Add(KeyCode.LeftControl, new Dictionary<KeyCode, Action>());
|
||||||
shortcutTable[KeyCode.LeftShift].Add(KeyCode.C, SaveItemsToCopy);
|
//shortcutTable[KeyCode.LeftShift].Add(KeyCode.C, SaveItemsToCopy);
|
||||||
shortcutTable[KeyCode.LeftShift].Add(KeyCode.V, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
|
//shortcutTable[KeyCode.LeftShift].Add(KeyCode.V, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
|
||||||
|
shortcutTable[KeyCode.LeftControl].Add(KeyCode.D, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
|
||||||
#else
|
#else
|
||||||
shortcutTable.Add(KeyCode.LeftControl, new Dictionary<KeyCode, Action>());
|
shortcutTable.Add(KeyCode.LeftControl, new Dictionary<KeyCode, Action>());
|
||||||
shortcutTable[KeyCode.LeftControl].Add(KeyCode.C, SaveItemsToCopy);
|
//shortcutTable[KeyCode.LeftControl].Add(KeyCode.C, SaveItemsToCopy);
|
||||||
shortcutTable[KeyCode.LeftControl].Add(KeyCode.V, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
|
//shortcutTable[KeyCode.LeftControl].Add(KeyCode.V, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
|
||||||
|
shortcutTable[KeyCode.LeftControl].Add(KeyCode.D, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
var handler = new InputHandler(getKeyActions, downKeyActions, upKeyActions, shortcutTable);
|
var handler = new InputHandler(getKeyActions, downKeyActions, upKeyActions, shortcutTable);
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ namespace Studio.AssetTool
|
|||||||
newObject.transform.parent = fbxAnchor;
|
newObject.transform.parent = fbxAnchor;
|
||||||
CustomAssetData assetData = newObject.AddComponent<CustomAssetData>();
|
CustomAssetData assetData = newObject.AddComponent<CustomAssetData>();
|
||||||
assetData.assetName = assetName;
|
assetData.assetName = assetName;
|
||||||
assetData.folderName = "Resouce";
|
assetData.folderName = "Base Library";
|
||||||
|
|
||||||
assetData.isLoading = true;
|
assetData.isLoading = true;
|
||||||
assetData.isLoadComplete = true;
|
assetData.isLoadComplete = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Pool;
|
using UnityEngine.Pool;
|
||||||
using UnityEngine.Events;
|
using UnityEngine.Events;
|
||||||
@@ -216,9 +216,11 @@ namespace Studio.AssetLibraryTree
|
|||||||
|
|
||||||
RectTransform itemRt;
|
RectTransform itemRt;
|
||||||
|
|
||||||
|
var width = 0f;
|
||||||
if (item.type == AssetLibraryItemType.folder)
|
if (item.type == AssetLibraryItemType.folder)
|
||||||
{
|
{
|
||||||
AssetLibraryScrollFolderUI itemUI = foldersPool.Get();
|
AssetLibraryScrollFolderUI itemUI = foldersPool.Get();
|
||||||
|
width = scrollRect.content.sizeDelta.x;
|
||||||
itemUI.SetItemData(item);
|
itemUI.SetItemData(item);
|
||||||
itemUI.transform.SetParent(content, false);
|
itemUI.transform.SetParent(content, false);
|
||||||
itemRt = itemUI.GetComponent<RectTransform>();
|
itemRt = itemUI.GetComponent<RectTransform>();
|
||||||
@@ -228,6 +230,7 @@ namespace Studio.AssetLibraryTree
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
AssetLibraryScrollItemUI itemUI = GetItemUI();
|
AssetLibraryScrollItemUI itemUI = GetItemUI();
|
||||||
|
width = itemWidth;
|
||||||
itemUI.SetItemData(item);
|
itemUI.SetItemData(item);
|
||||||
itemUI.SetSelected(selectedItems);
|
itemUI.SetSelected(selectedItems);
|
||||||
itemUI.transform.SetParent(content, false);
|
itemUI.transform.SetParent(content, false);
|
||||||
@@ -239,10 +242,10 @@ namespace Studio.AssetLibraryTree
|
|||||||
int row = i / rowItemCount;
|
int row = i / rowItemCount;
|
||||||
int col = i % rowItemCount;
|
int col = i % rowItemCount;
|
||||||
|
|
||||||
float x = col * (itemWidth + spacingX) - ((rowItemCount - 1) * (itemWidth + spacingX)) / 2f;
|
float x = item.type == AssetLibraryItemType.folder? 0f:col * (width + spacingX) - ((rowItemCount - 1) * (width + spacingX)) / 2f;
|
||||||
float y = -(row-folderCount) * ( itemHeight + spacingY) + (-folderCount * (folderHeight + spacingY)) - height / 2f;
|
float y = -(row-folderCount) * ( itemHeight + spacingY) + (-folderCount * (folderHeight + spacingY)) - height / 2f;
|
||||||
|
|
||||||
itemRt.sizeDelta = new Vector2(itemWidth, height);
|
itemRt.sizeDelta = new Vector2(width, height);
|
||||||
itemRt.anchoredPosition = new Vector2(x, y);
|
itemRt.anchoredPosition = new Vector2(x, y);
|
||||||
|
|
||||||
if (item.type == AssetLibraryItemType.folder)
|
if (item.type == AssetLibraryItemType.folder)
|
||||||
|
|||||||
Reference in New Issue
Block a user