This commit is contained in:
2026-06-04 10:42:23 +07:00
parent e7e90790c9
commit 9be2242378
4166 changed files with 53005 additions and 11401 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9a61d8dd2057358449ba4a10812f65a3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 37f223e0a67f76246b008bdad1aaaf02
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,104 @@
fileFormatVersion: 2
guid: 115de49d5a92a5146ba0852ac80712a7
ModelImporter:
serializedVersion: 23
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2100000: VBOT__main_torso1.001
2100002: VBOT__secondary_torso1.001
2100004: VBOT__Main_members1.001
2100006: VBOT__Secondary_members1.001
2100008: VBOT__metal3.001
2100010: VBOT__metal4.001
2100012: VBOT__rubber1.001
2100014: No Name
2300000: //RootNode
3300000: //RootNode
4300000: EntityPreview
externalObjects: {}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
previousCalculatedGlobalScale: 1
hasPreviousCalculatedGlobalScale: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 2
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,128 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: EntityPreview
m_Shader: {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords:
- ETC1_EXTERNAL_ALPHA
- _ALPHABLEND_ON
m_LightmapFlags: 0
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _AlphaTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 65afb4cbeb47dc14ea879b97a296e19f, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- PixelSnap: 0
- _BlendOp: 0
- _BumpScale: 1
- _CameraFadingEnabled: 0
- _CameraFarFadeDistance: 2
- _CameraNearFadeDistance: 1
- _ColorMask: 15
- _Cull: 2
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DistortionBlend: 0.5
- _DistortionEnabled: 0
- _DistortionStrength: 1
- _DistortionStrengthScaled: 0
- _DstBlend: 1
- _EmissionEnabled: 0
- _EnableExternalAlpha: 0
- _FlipbookMode: 0
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _LightingEnabled: 1
- _Metallic: 0
- _Mode: 4
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Shininess: 0.01
- _SmoothnessTextureChannel: 0
- _SoftParticlesEnabled: 0
- _SoftParticlesFarFadeDistance: 1
- _SoftParticlesNearFadeDistance: 0
- _SpecularHighlights: 1
- _SrcBlend: 5
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _Strength: 0.347
- _UVSec: 0
- _UseUIAlphaClip: 0
- _ZWrite: 0
m_Colors:
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 0.8260788, b: 0.08962262, a: 0.25}
- _Emission: {r: 0, g: 0, b: 0, a: 0}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Flip: {r: 1, g: 1, b: 1, a: 1}
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
- _SpecColor: {r: 0, g: 0, b: 0, a: 0}
- _Specular: {r: 1, g: 1, b: 1, a: 0}
- _TintColor: {r: 1, g: 0.8260788, b: 0.08962262, a: 0.25}
m_BuildTextureStacks: []
m_AllowLocking: 1

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4b81f57418ba1a74194ccf6757901fbc
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,98 @@
fileFormatVersion: 2
guid: 7cbea9d34df844f47a2214ce2a3072e0
ModelImporter:
serializedVersion: 23
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2100000: Material
2300000: //RootNode
3300000: //RootNode
4300000: Cube
4300002: LocationPreview
externalObjects: {}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
previousCalculatedGlobalScale: 1
hasPreviousCalculatedGlobalScale: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 2
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,121 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public partial class vMenuComponent
{
public const string path = "Invector/Utils/";
[MenuItem(path + "SimpleTrigger")]
public static void AddSimpleTrigger()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.vSimpleTrigger>();
}
[MenuItem(path + "AnimatorEventReceiver")]
public static void AddAnimatorEventReceiver()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.vEventSystems.vAnimatorEventReceiver>();
}
[MenuItem(path + "MessageReceiver")]
public static void AddMessageReceiver()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.vMessageReceiver>();
}
[MenuItem(path + "MessageSender")]
public static void AddMessageSender()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.vMessageSender>();
}
[MenuItem(path + "EventWithDelay")]
public static void AddEventWithDelay()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.Utils.vEventWithDelay>();
}
[MenuItem(path + "DestroyGameObject")]
public static void AddDestroyGameObject()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.vDestroyGameObject>();
}
[MenuItem(path + "DestroyOnTrigger")]
public static void AddDestroyOnTrigger()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.vDestroyOnTrigger>();
}
[MenuItem(path + "PlayRandomClip")]
public static void AddPlayRandomClip()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.vPlayRandomClip>();
}
[MenuItem(path + "RotateObject")]
public static void AddRotateObject()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.vRotateObject>();
}
[MenuItem(path + "LookAtCamera")]
public static void AddLookAtCamera()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.vLookAtCamera>();
}
[MenuItem(path + "Instantiate")]
public static void AddInstantiate()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.Utils.vInstantiate>();
}
[MenuItem(path + "SetParent")]
public static void AddSetParent()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.Utils.vSetParent>();
}
[MenuItem(path + "ResetTransform")]
public static void AddResetTransform()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.Utils.vResetTransform>();
}
[MenuItem(path + "DestroyChildrens")]
public static void AddDestroyChildrens()
{
var currentObject = Selection.activeGameObject;
if (currentObject)
currentObject.AddComponent<Invector.Utils.vDestroyChildrens>();
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: cfad9801586f60944b29e51fbca43950
timeCreated: 1544056336
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,105 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEngine;
namespace Invector.vCharacterController
{
[InitializeOnLoad]
public class vCheckForProjectSettings
{
#if UNITY_EDITOR
public static bool isClosed;
public static int checkLayer;
public static GUIStyle style;
static vCheckForProjectSettings()
{
#if UNITY_2018
SceneView.onSceneGUIDelegate -= OnScene;
SceneView.onSceneGUIDelegate += OnScene;
#elif UNITY_2019_1_OR_NEWER
SceneView.duringSceneGui -= OnScene;
SceneView.duringSceneGui += OnScene;
#endif
}
public static void OnScene(SceneView sceneView)
{
CheckLayer();
}
static bool IsAxisAvailable(string axisName)
{
try
{
Input.GetAxis(axisName);
return true;
}
catch
{
return false;
}
}
public static void CheckLayer()
{
Handles.BeginGUI();
checkLayer = LayerMask.NameToLayer("Player");
var rect = new Rect();
bool validation = Validation();
var content = EditorGUIUtility.IconContent("console.warnicon.sml");
GUILayout.Space(-20);
content.tooltip = " INVECTOR WARNING!\nClick to open or close the message";
if (validation && isClosed && GUILayout.Button(content, GUILayout.ExpandHeight(false), GUILayout.ExpandWidth(false)))
{
isClosed = !isClosed;
}
if (validation && !isClosed)
{
if (style == null)
{
style = new GUIStyle(EditorStyles.whiteLabel);
style.fontSize = 20;
style.alignment = TextAnchor.MiddleCenter;
style.fontStyle = FontStyle.Bold;
style.wordWrap = true;
style.clipping = TextClipping.Overflow;
}
rect.width = 400;
rect.height = 200;
string myString = "Missing ProjectSettings\nGo to the Menu Invector/Import ProjectSettings";
GUILayout.BeginArea(rect);
if (GUILayout.Button(content, EditorStyles.popup))
{
isClosed = true;
}
GUILayout.Box("", EditorStyles.textField, GUILayout.ExpandHeight(true), GUILayout.ExpandWidth(true));
rect = GUILayoutUtility.GetLastRect();
GUI.Label(rect, myString, style);
GUILayout.EndArea();
}
Handles.EndGUI();
}
private static bool Validation()
{
return checkLayer != 8 || !IsAxisAvailable("LeftAnalogHorizontal");
}
public static void ResetMethod()
{
#if UNITY_2018
SceneView.onSceneGUIDelegate += OnScene;
#elif UNITY_2019_1_OR_NEWER
SceneView.duringSceneGui += OnScene;
#endif
}
#endif
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 95de98cb992ef4546815b25d2a8e760e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,93 @@
using UnityEditor;
using UnityEngine;
namespace Invector.Utils
{
[CustomEditor(typeof(vComment))]
public class vCommentEditor : UnityEditor.Editor
{
SerializedProperty inEdit;
SerializedProperty comment;
SerializedProperty header;
GUIContent textContent, headerContent, editButtonContent;
GUIStyle window, iconStyle, textStyle;
GUISkin skin;
private void OnEnable()
{
inEdit = serializedObject.FindProperty("inEdit");
comment = serializedObject.FindProperty("comment");
header = serializedObject.FindProperty("header");
skin = Resources.Load("vSkin") as GUISkin;
textContent = new GUIContent();
editButtonContent = new GUIContent("", Resources.Load("vCommentEditIcon") as Texture2D, "Enable or Disable Edit Mode");
headerContent = new GUIContent(Resources.Load("icon_v2") as Texture2D);
}
private void OnDisable()
{
inEdit.boolValue = false; if (serializedObject != null && serializedObject.targetObject != null) serializedObject.ApplyModifiedProperties();
}
public override bool UseDefaultMargins()
{
return false;
}
public override void OnInspectorGUI()
{
serializedObject.Update();
textStyle = new GUIStyle(EditorStyles.label);
window = skin.GetStyle("vCommentWindow");
iconStyle = skin.GetStyle("vCommentHeader");
EditorGUILayout.BeginVertical(window);
{
GUILayout.Space(-(window.padding.top - 5));
GUILayout.BeginHorizontal();
{
Color color = GUI.color;
headerContent.text = header.stringValue;
GUILayout.Box(headerContent, iconStyle, GUILayout.Height(30));
GUILayout.Space(-10);
if (GUILayout.Button(editButtonContent, GUIStyle.none, GUILayout.Width(30), GUILayout.Height(30)))
{
GenericMenu menu = new GenericMenu();
menu.AddSeparator("");
menu.AddItem(new GUIContent(!inEdit.boolValue ? "Edit Comment" : "Exit Edit"), false, () => { inEdit.boolValue = !inEdit.boolValue; serializedObject.ApplyModifiedProperties(); });
menu.AddSeparator("");
menu.ShowAsContext();
}
}
GUILayout.EndHorizontal();
GUILayout.Space((window.padding.top));
if (inEdit.boolValue)
{
EditorGUILayout.HelpBox("You can use RichText to customize your comment and header", MessageType.Info);
GUILayout.Label("Header", EditorStyles.centeredGreyMiniLabel);
header.stringValue = GUILayout.TextField(header.stringValue, 50);
GUILayout.Label("Comment", EditorStyles.boldLabel);
EditorGUILayout.PropertyField(comment, GUIContent.none);
}
else
{
if (textContent != null && textStyle != null)
{
textStyle.richText = true;
textStyle.normal.background = null;
textStyle.wordWrap = true;
textStyle.font = window.font;
textStyle.fontStyle = window.fontStyle;
textStyle.fontSize = window.fontSize;
textStyle.alignment = window.alignment;
GUILayout.Box(comment.stringValue, textStyle);
}
}
}
EditorGUILayout.EndVertical();
serializedObject.ApplyModifiedProperties();
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: d3fcd47da60e70c4c93314b7d5fcb298
timeCreated: 1557867630
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,44 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace Invector.Utils
{
[CustomPropertyDrawer(typeof(vSelectableStringAttribute))]
public class vSelectableStringDrawer : DecoratorDrawer
{
GUIStyle _selectableAreaStyle;
public GUIStyle SelectableAreaStyle
{
get
{
if(_selectableAreaStyle==null)
{
_selectableAreaStyle = new GUIStyle(EditorStyles.textArea);
}
return _selectableAreaStyle;
}
}
vSelectableStringAttribute selectableString
{
get { return ((vSelectableStringAttribute)attribute); }
}
public override float GetHeight()
{
float height = SelectableAreaStyle.CalcSize(new GUIContent(selectableString.selectableText)).y;
return height + EditorGUIUtility.singleLineHeight+8;
}
public override void OnGUI(Rect position)
{
var rect = position;
rect.height = EditorGUIUtility.singleLineHeight;
GUI.Label(rect, selectableString.tittle);
var textArea = rect;
textArea.y += rect.height+5;
textArea.height = (position.height - rect.height)-10;
GUI.TextArea(textArea, selectableString.selectableText);
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a6ce58a22b98ee447a609bababec06da
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: