This commit is contained in:
2025-05-13 05:18:03 +03:00
parent 0790b782f2
commit 2ca246b75c
1494 changed files with 22057 additions and 0 deletions
BIN
View File
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 8851d22c2244435479d083433e3f5ea5
DefaultImporter:
userData:
+5
View File
@@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: 4a81132d848b12c40811c576bc164571
folderAsset: yes
DefaultImporter:
userData:
Binary file not shown.
+64
View File
@@ -0,0 +1,64 @@
fileFormatVersion: 2
guid: a1119be4bacbbe04ab1833e2ad331015
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: Box001
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:
Binary file not shown.
+64
View File
@@ -0,0 +1,64 @@
fileFormatVersion: 2
guid: d848aea3f3140c74abd9abf5eacf34f0
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: GeoSphere001
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 0
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:
+5
View File
@@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: 5f96c4de7534cb440933bc742a078675
folderAsset: yes
DefaultImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 43e8d2e90d7734f439ea780b327f9569
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 62b0f2321ab38804bacb8a3409fa444b
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 35eeffb2f3551484a9a03290cd29ebfe
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: c54a7fbd86c81f2458421f6fc16c3738
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 6933352c065e78548a4d26c5f2e3c783
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: f989de912a93fbf4390297e356d22a54
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 90f2aca96ff99dd40abfed12b0d2bcf1
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 8c7fec6c5c519e646ba786a94e6f3203
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 713ba1b6cea397d49ae8455f5388a8b7
NativeFormatImporter:
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: c33c984cbcd783040b72636ae62fbb51
NativeFormatImporter:
userData:
Binary file not shown.
+65
View File
@@ -0,0 +1,65 @@
fileFormatVersion: 2
guid: a2f874bea4019784a8796e365afde8cc
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: Box001
6400000: //RootNode
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 1
importBlendShapes: 0
swapUVChannels: 0
generateSecondaryUV: 1
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 537ba6e2e3b4430419531a03bfc529f6
NativeFormatImporter:
userData:
Binary file not shown.
+64
View File
@@ -0,0 +1,64 @@
fileFormatVersion: 2
guid: 862d8f2e765ff454cbab502f6b5bf9e2
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: Box002
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: efd4c756155d42547afcb74fee0c9540
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: dc60b5e91b058f74295a3404a33e6452
NativeFormatImporter:
userData:
Binary file not shown.
+81
View File
@@ -0,0 +1,81 @@
fileFormatVersion: 2
guid: e3d9c47e21488044981e0751fc178651
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: Box001
100002: Object001
100004: //RootNode
100006: Box002
100008: GeoSphere001
400000: Box001
400002: Object001
400004: //RootNode
400006: Box002
400008: GeoSphere001
2300000: Box001
2300002: Object001
2300004: Box002
2300006: GeoSphere001
3300000: Box001
3300002: Object001
3300004: Box002
3300006: GeoSphere001
4300000: Box001
4300002: Object001
4300004: Box002
4300006: GeoSphere001
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: c6a390e6c633ccc41aae5579573e8cac
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 2d21044d0a3fb994e97c80314c36f728
NativeFormatImporter:
userData:
Binary file not shown.
+64
View File
@@ -0,0 +1,64 @@
fileFormatVersion: 2
guid: 04629705d1d35694b9f6e6cc8d662280
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: Box001
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 5933f8cabb173524cadd5b27c6dda430
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: ff4d1e38f6731014b8cbd27573b7a8cf
NativeFormatImporter:
userData:
Binary file not shown.
+64
View File
@@ -0,0 +1,64 @@
fileFormatVersion: 2
guid: b25a09afd0a49454999b5f9eede3683b
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: Box001
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: afee94bcc1ed0fb49ad32057a879b851
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,64 @@
fileFormatVersion: 2
guid: e9927dd67c133254eab79ba4abfa138e
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: Box001
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:
Binary file not shown.
@@ -0,0 +1,64 @@
fileFormatVersion: 2
guid: 45c6a7eb4a877a546b6a116162d92aae
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: Box001
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:
Binary file not shown.
+64
View File
@@ -0,0 +1,64 @@
fileFormatVersion: 2
guid: 77c6421978ee3fe499314f3a4f33aed0
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: Cylinder001
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:
Binary file not shown.
@@ -0,0 +1,64 @@
fileFormatVersion: 2
guid: 46949a067f91f5343a152cd6dd6eb864
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: GeoSphere001
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
additionalBone: 0
userData:
+5
View File
@@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: cff192a6efefcb54f80466562a77c260
folderAsset: yes
DefaultImporter:
userData:
@@ -0,0 +1,43 @@
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
[CustomEditor(typeof(AdvancedPhysicsMaterial))]
[CanEditMultipleObjects]
public class AdvancedPhysicsMaterialEditor : Editor {
public override void OnInspectorGUI(){
AdvancedPhysicsMaterial mat = (AdvancedPhysicsMaterial)target;
serializedObject.Update();
EditorGUIUtility.LookLikeInspector();
if (mat != null) {
EditorGUILayout.LabelField("Selection name: " + mat.name.ToString());
var mt = typeof(AdvancedPhysics.Matters);
var matters = mt.GetFields();
int selectedMatter = 0;
List<string> matterNames = new List<string>();
for(int i = 0; i < matters.Length; ++i){
var m = matters[i];
if(m.FieldType == typeof(AdvancedPhysics.Matter)){
matterNames.Add(m.Name);
}
if(mat.matter != null && (mat.matter == m.GetValue(null))){
//Debug.Log("LOL " + i);
selectedMatter = i;
}
}
EditorGUILayout.LabelField("Matter:");
selectedMatter = EditorGUILayout.Popup(selectedMatter, matterNames.ToArray());
mat.matter = (AdvancedPhysics.Matter)matters[selectedMatter].GetValue(null);
EditorGUILayout.LabelField("Volume (m^3): " + mat.Volume);
EditorGUILayout.LabelField("Mass (kg): " + mat.Mass);
mat.UpdateParameters();
}
}
}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6e5708ff13c0b0d48817b9d96fefc8ff
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
+62
View File
@@ -0,0 +1,62 @@
using UnityEngine;
using UnityEditor;
using System.Collections;
public class LevelEditor : EditorWindow
{
string myString = "Hello World";
bool groupEnabled;
bool myBool = true;
float myFloat = 1.23f;
// Add menu item named "My Window" to the Window menu
[MenuItem("Window/LevelEditor")]
public static void ShowWindow()
{
//Show existing window instance. If one doesn't exist, make one.
EditorWindow.GetWindow(typeof(LevelEditor));
}
float AlingToGrid(float value, float gridStep = 0.5f){
float div = value / gridStep;
int cellId = Mathf.FloorToInt (div);
float frac = div - (float)cellId;
return (float)cellId * gridStep + (Mathf.Abs(frac) > 0.5f ? gridStep : 0.0f);
}
Vector3 AlingToGrid(Vector3 value, float gridStep = 0.5f){
return new Vector3 (
AlingToGrid(value.x, gridStep),
AlingToGrid(value.y, gridStep),
AlingToGrid(value.z, gridStep));
}
void OnGUI()
{
GUILayout.Label ("Blocks alignment", EditorStyles.boldLabel);
if (GUILayout.Button ("Aling position to grid")) {
foreach(var obj in Selection.objects){
GameObject go = obj as GameObject;
if(go != null){
go.transform.position = AlingToGrid(go.transform.position);
}
}
}
if (GUILayout.Button ("Aling rotation to grid")) {
foreach(var obj in Selection.objects){
GameObject go = obj as GameObject;
if(go != null){
go.transform.rotation = Quaternion.Euler(AlingToGrid(go.transform.rotation.eulerAngles, 45.0f));
}
}
}
/*myString = EditorGUILayout.TextField ("Text Field", myString);
groupEnabled = EditorGUILayout.BeginToggleGroup ("Optional Settings", groupEnabled);
myBool = EditorGUILayout.Toggle ("Toggle", myBool);
myFloat = EditorGUILayout.Slider ("Slider", myFloat, -3, 3);
EditorGUILayout.EndToggleGroup ();*/
}
}
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 543c11bf5e047644c850e14160bcb163
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
+131
View File
@@ -0,0 +1,131 @@
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public interface IMeshGenerator{
void OnGUI();
}
public class NodeEditor : EditorWindow {
List<Rect> windows = new List<Rect>();
List<int> windowsToAttach = new List<int>();
List<int> attachedWindows = new List<int>();
[MenuItem("Window/Node editor")]
static void ShowEditor() {
NodeEditor editor = EditorWindow.GetWindow<NodeEditor>();
}
void OnGUI() {
if (windowsToAttach.Count == 2) {
attachedWindows.Add(windowsToAttach[0]);
attachedWindows.Add(windowsToAttach[1]);
windowsToAttach = new List<int>();
}
if (attachedWindows.Count >= 2) {
for (int i = 0; i < attachedWindows.Count; i += 2) {
DrawNodeCurve(windows[attachedWindows[i]], windows[attachedWindows[i + 1]]);
}
}
BeginWindows();
if (GUILayout.Button("Create Node")) {
windows.Add(new Rect(10, 10, 100, 100));
}
for (int i = 0; i < windows.Count; i++) {
windows[i] = GUI.Window(i, windows[i], DrawNodeWindow, "Window " + i);
}
EndWindows();
}
void DrawNodeWindow(int id) {
if (GUILayout.Button("Attach")) {
windowsToAttach.Add(id);
}
GUI.DragWindow();
}
void DrawNodeCurve(Rect start, Rect end) {
Vector3 startPos = new Vector3(start.x + start.width, start.y + start.height / 2, 0);
Vector3 endPos = new Vector3(end.x, end.y + end.height / 2, 0);
Vector3 startTan = startPos + Vector3.right * 50;
Vector3 endTan = endPos + Vector3.left * 50;
Color shadowCol = new Color(0, 0, 0, 0.06f);
for (int i = 0; i < 3; i++) {// Draw a shadow
Handles.DrawBezier(startPos, endPos, startTan, endTan, shadowCol, null, (i + 1) * 5);
}
Handles.DrawBezier(startPos, endPos, startTan, endTan, Color.black, null, 1);
}
}
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9b5b804e4dc23aa4ab9657639ff5a3d6
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
+5
View File
@@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: 4f2e2a24ccb3ec54e827fdef1488f8bc
folderAsset: yes
DefaultImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 79fa61d3b1d7bb142bd613ead517b8c5
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 3cfc62a942ce88d46a4087658c031747
NativeFormatImporter:
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 839986574c625194d90c5728aecf89a7
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 4a969fd544f369c489931b6723c2e90e
NativeFormatImporter:
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: ab90675bed51af84a837969ff8603f51
NativeFormatImporter:
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: c83129347bf281e438a60604dd248f8f
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 5977be3c5850f4c41bebab62b15bac5e
NativeFormatImporter:
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: ff49e43995176094e8d614090eeb1373
NativeFormatImporter:
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 483f42f762af81b4d9e4fdb6ccb55286
NativeFormatImporter:
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: fd284b9f4a598ce49a52a10de59cc64f
NativeFormatImporter:
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 2c89b63c3cbb4604e88cdcaecb066128
NativeFormatImporter:
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: e2726c6746af0024aab9f65e7b77c152
NativeFormatImporter:
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 5a619c521d6bc9341ba871311a4cad96
NativeFormatImporter:
userData:
Binary file not shown.
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: ff3f173052e8dd94eb12cd8402833195
NativeFormatImporter:
userData:
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: ee4ad7880b4adc5408d19724e66ad7f0
NativeFormatImporter:
userData:

Some files were not shown because too many files have changed in this diff Show More