1
0
mirror of https://github.com/xiaopeng12138/MaiDXR.git synced 2025-01-19 01:24:13 +01:00

Change uWindowCapture to UPM

This commit is contained in:
xpeng 2022-07-18 19:49:52 +02:00
parent f969d3cacb
commit 90ca2e368a
145 changed files with 23 additions and 15693 deletions

View File

@ -763,7 +763,7 @@ Light:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 740743302} m_GameObject: {fileID: 740743302}
m_Enabled: 1 m_Enabled: 0
serializedVersion: 10 serializedVersion: 10
m_Type: 0 m_Type: 0
m_Shape: 0 m_Shape: 0
@ -964,7 +964,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -8699732548318090483, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: -8699732548318090483, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled propertyPath: m_Enabled
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -8699732548318090483, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: -8699732548318090483, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_DrawHalo propertyPath: m_DrawHalo
@ -1220,7 +1220,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -6930015188872202325, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: -6930015188872202325, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled propertyPath: m_Enabled
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -6930015188872202325, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: -6930015188872202325, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_DrawHalo propertyPath: m_DrawHalo
@ -1348,7 +1348,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -5428391844021183974, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: -5428391844021183974, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled propertyPath: m_Enabled
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -5428391844021183974, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: -5428391844021183974, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_DrawHalo propertyPath: m_DrawHalo
@ -1624,7 +1624,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -3152379998560609391, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: -3152379998560609391, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled propertyPath: m_Enabled
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -3152379998560609391, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: -3152379998560609391, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_DrawHalo propertyPath: m_DrawHalo
@ -1992,7 +1992,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -159454732624697724, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: -159454732624697724, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled propertyPath: m_Enabled
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -159454732624697724, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: -159454732624697724, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_DrawHalo propertyPath: m_DrawHalo
@ -2308,7 +2308,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3513320045853961206, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: 3513320045853961206, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled propertyPath: m_Enabled
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3513320045853961206, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: 3513320045853961206, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_DrawHalo propertyPath: m_DrawHalo
@ -2572,7 +2572,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6449048586731311642, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: 6449048586731311642, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled propertyPath: m_Enabled
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6449048586731311642, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: 6449048586731311642, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_DrawHalo propertyPath: m_DrawHalo
@ -2664,7 +2664,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7893704435040825264, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: 7893704435040825264, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled propertyPath: m_Enabled
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7893704435040825264, guid: ea6463ca199d52046962b69f2ab654ef, type: 3} - target: {fileID: 7893704435040825264, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_DrawHalo propertyPath: m_DrawHalo
@ -5624,7 +5624,7 @@ Light:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1297605543} m_GameObject: {fileID: 1297605543}
m_Enabled: 1 m_Enabled: 0
serializedVersion: 10 serializedVersion: 10
m_Type: 0 m_Type: 0
m_Shape: 0 m_Shape: 0

View File

@ -20,6 +20,7 @@ public class LedSerial : MonoBehaviour
public float DisplayLedIntensity = 0.0f; public float DisplayLedIntensity = 0.0f;
Color32 PrevFadeColor; Color32 PrevFadeColor;
Color32 nowCorlor; Color32 nowCorlor;
float FadeTime = 0.0f;
void Start() void Start()
{ {
Debug.Log("Started LED Serial"); Debug.Log("Started LED Serial");

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: c5a1d3e834485444fb0be9281037fe15
folderAsset: yes
timeCreated: 1480839364
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: bd4d6d92d1cb1834688b6cb463cc62fe
folderAsset: yes
timeCreated: 1483419091
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,86 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: uWC_Icon
m_Shader: {fileID: 10751, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _EMISSION
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _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}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
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:
- _BumpScale: 1
- _ColorMask: 15
- _Cutoff: 0.438
- _DetailNormalMapScale: 1
- _DstBlend: 10
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 3
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UVSec: 0
- _UseUIAlphaClip: 0
- _ZWrite: 0
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 9df9684506de35d489337088e8723ed2
timeCreated: 1484987710
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,92 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: uWC_Transparent
m_Shader: {fileID: 4800000, guid: 79ea1c0595c91464d80b93155aa890de, type: 3}
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _EMISSION
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _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}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
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:
- _Bend: 0
- _BlendDst: 10
- _BlendSrc: 5
- _BumpScale: 1
- _ColorMask: 15
- _Cull: 2
- _Cutoff: 0.258
- _DetailNormalMapScale: 1
- _DstBlend: 10
- _FlipX: 0
- _FlipY: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 3
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UVSec: 0
- _UseUIAlphaClip: 0
- _ZWrite: 0
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 2a939a96427023b4ba408f4d29630749
timeCreated: 1483419084
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,91 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: uWC_Unlit
m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: UWC_FLIP_Y _ALPHAPREMULTIPLY_ON _EMISSION
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _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}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
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_Floats:
- _Bend: 0
- _BlendDst: 10
- _BlendSrc: 5
- _BumpScale: 1
- _ColorMask: 15
- _Cull: 2
- _Cutoff: 0.258
- _DetailNormalMapScale: 1
- _DstBlend: 10
- _FlipX: 0
- _FlipY: 1
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 3
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UVSec: 0
- _UseUIAlphaClip: 0
- _ZWrite: 0
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 1ebb28175c99f574d895870a01e00d21
timeCreated: 1483419084
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: a7c79f0d5bbb1b745bedb5d746c861fc
folderAsset: yes
timeCreated: 1483419468
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,95 +0,0 @@
fileFormatVersion: 2
guid: 785ad35802dd7e64cb3ac7adf3fcdfcf
ModelImporter:
serializedVersion: 23
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: uDD_Board
4300002: uWC_Board
9500000: //RootNode
externalObjects: {}
materials:
importMaterials: 0
materialName: 0
materialSearch: 1
materialLocation: 0
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: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importVisibility: 0
importBlendShapes: 0
importCameras: 0
importLights: 0
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
indexFormat: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
previousCalculatedGlobalScale: 1
hasPreviousCalculatedGlobalScale: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 0
importAnimation: 0
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:
rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1}
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,95 +0,0 @@
fileFormatVersion: 2
guid: 5cfff36e1a0553743a62b0996d7a646f
ModelImporter:
serializedVersion: 23
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: uDD_Plane
4300002: uWC_Plane
9500000: //RootNode
externalObjects: {}
materials:
importMaterials: 0
materialName: 0
materialSearch: 1
materialLocation: 0
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: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importVisibility: 0
importBlendShapes: 0
importCameras: 0
importLights: 0
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
indexFormat: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
previousCalculatedGlobalScale: 1
hasPreviousCalculatedGlobalScale: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 0
importAnimation: 0
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:
rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1}
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 281c8c25ec944b247bcb7b1c0a6badb8
folderAsset: yes
timeCreated: 1482996589
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,141 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1000013424883394
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4000011764941622}
- component: {fileID: 33000013129465062}
- component: {fileID: 23000014254880126}
- component: {fileID: 65083943844815220}
- component: {fileID: 114000013686570872}
- component: {fileID: 114203295424323036}
m_Layer: 0
m_Name: uWC Window Object Child
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4000011764941622
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
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_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &33000013129465062
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
m_Mesh: {fileID: 4300002, guid: 785ad35802dd7e64cb3ac7adf3fcdfcf, type: 3}
--- !u!23 &23000014254880126
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 4294967295
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 1ebb28175c99f574d895870a01e00d21, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!65 &65083943844815220
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 0.01}
m_Center: {x: 0.000000074505806, y: 0, z: 0.005}
--- !u!114 &114000013686570872
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6c150c011a6544b4b8054bba7ee5e5ca, type: 3}
m_Name:
m_EditorClassIdentifier:
searchTiming_: 2
type_: 0
altTabWindow_: 0
createChildWindows_: 1
childWindowPrefab: {fileID: 1000013424883394}
childWindowZDistance: 0.02
partialWindowTitle_:
desktopIndex_: 0
captureMode: 3
capturePriority: -1
captureRequestTiming: 1
captureFrameRate: -1
drawCursor: 1
updateTitle: 0
searchAnotherWindowWhenInvalid: 0
scaleControlType: 0
scalePer1000Pixel: 1
updateScaleForcely: 0
--- !u!114 &114203295424323036
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f0aadff77bae0d04caf917b138266088, type: 3}
m_Name:
m_EditorClassIdentifier:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: c5da36a19c9eb294189d814568b18089
timeCreated: 1482997094
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,141 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1000013424883394
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4000011764941622}
- component: {fileID: 33000013129465062}
- component: {fileID: 23000014254880126}
- component: {fileID: 65083943844815220}
- component: {fileID: 114000013686570872}
- component: {fileID: 114203295424323036}
m_Layer: 0
m_Name: uWC Window Object
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4000011764941622
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
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_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &33000013129465062
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
m_Mesh: {fileID: 4300002, guid: 785ad35802dd7e64cb3ac7adf3fcdfcf, type: 3}
--- !u!23 &23000014254880126
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 4294967295
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 1ebb28175c99f574d895870a01e00d21, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!65 &65083943844815220
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 0.01}
m_Center: {x: 0.000000074505806, y: 0, z: 0.005}
--- !u!114 &114000013686570872
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6c150c011a6544b4b8054bba7ee5e5ca, type: 3}
m_Name:
m_EditorClassIdentifier:
searchTiming_: 2
type_: 0
altTabWindow_: 0
createChildWindows_: 1
childWindowPrefab: {fileID: 1000013424883394, guid: c5da36a19c9eb294189d814568b18089, type: 3}
childWindowZDistance: 0.02
partialWindowTitle_:
desktopIndex_: 0
captureMode: 3
capturePriority: 0
captureRequestTiming: 1
captureFrameRate: -1
drawCursor: 1
updateTitle: 0
searchAnotherWindowWhenInvalid: 0
scaleControlType: 0
scalePer1000Pixel: 1
updateScaleForcely: 0
--- !u!114 &114203295424323036
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1000013424883394}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f0aadff77bae0d04caf917b138266088, type: 3}
m_Name:
m_EditorClassIdentifier:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 2f55dbed71ab1a849aebe5c717f1de9d
timeCreated: 1482997094
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 118a4f8f4e73d024e9279814b51b8780
folderAsset: yes
timeCreated: 1485003197
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 5bd46acb63868f843ae9f604571041fd
folderAsset: yes
timeCreated: 1485003306
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 3127d7dbc3a67eb45a0dafc6d8c63d6e
folderAsset: yes
timeCreated: 1485003268
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -1,84 +0,0 @@
fileFormatVersion: 2
guid: ed2e39c96ebaecd49ac894b5fde4fc1b
timeCreated: 1485002655
licenseType: Pro
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 0
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: 1
mipBias: -1
wrapMode: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 2
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 128
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
- buildTarget: Standalone
maxTextureSize: 128
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
- buildTarget: WebGL
maxTextureSize: 128
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -1,50 +0,0 @@
#ifndef UWC_COMMON_CGINC
#define UWC_COMMON_CGINC
#include "UnityCG.cginc"
float4 _Color;
sampler2D _MainTex;
float4 _MainTex_ST;
inline void UwcFlipUV(inout float2 uv)
{
#ifdef UWC_FLIP_X
uv.x = 1.0 - uv.x;
#endif
#ifdef UWC_FLIP_Y
uv.y = 1.0 - uv.y;
#endif
}
struct appdata
{
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
struct v2f
{
float4 vertex : SV_POSITION;
float2 uv : TEXCOORD0;
UNITY_FOG_COORDS(1)
};
v2f vert(appdata v)
{
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
o.uv = TRANSFORM_TEX(v.uv, _MainTex);
UwcFlipUV(o.uv);
UNITY_TRANSFER_FOG(o,o.vertex);
return o;
}
fixed4 frag(v2f i) : SV_Target
{
float4 col = float4(tex2D(_MainTex, i.uv).rgb * _Color, _Color.a);
UNITY_APPLY_FOG(i.fogCoord, col);
return col;
}
#endif

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 8b5a5aab74a9a12499c91f8b3c334e86
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,45 +0,0 @@
Shader "uWindowCapture/Transparent"
{
Properties
{
_Color("Color", Color) = (1, 1, 1, 1)
_MainTex("Texture", 2D) = "white" {}
[Enum(UnityEngine.Rendering.CullMode)] _Cull("Culling", Int) = 2
[Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc("Blend Src", Float) = 5
[Enum(UnityEngine.Rendering.BlendMode)] _BlendDst("Blend Dst", Float) = 10
[Toggle][KeyEnum(Off, On)] _ZWrite("ZWrite", Float) = 1
[Toggle(UWC_FLIP_X)] _FlipX("Flip X", Int) = 0
[Toggle(UWC_FLIP_Y)] _FlipY("Flip Y", Int) = 0
}
SubShader
{
Tags
{
"Queue" = "Transparent"
"RenderType" = "Transparent"
"IgnoreProjector" = "True"
"PreviewType" = "Plane"
}
Pass
{
Cull [_Cull]
Blend [_BlendSrc] [_BlendDst]
ZWrite [_ZWrite]
CGPROGRAM
#include "./UwcCommon.cginc"
#pragma vertex vert
#pragma fragment frag
#pragma multi_compile_fog
#pragma multi_compile ___ UWC_FLIP_X
#pragma multi_compile ___ UWC_FLIP_Y
ENDCG
}
}
Fallback "Unlit/Transparent"
}

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 79ea1c0595c91464d80b93155aa890de
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,39 +0,0 @@
Shader "uWindowCapture/Unlit"
{
Properties
{
_Color("Color", Color) = (1, 1, 1, 1)
_MainTex("Texture", 2D) = "white" {}
[Enum(UnityEngine.Rendering.CullMode)] _Cull("Culling", Int) = 2
[Toggle(UWC_FLIP_X)] _FlipX("Flip X", Int) = 0
[Toggle(UWC_FLIP_Y)] _FlipY("Flip Y", Int) = 0
}
SubShader
{
Tags
{
"RenderType" = "Opaque"
"Queue" = "Geometry"
"PreviewType" = "Plane"
}
Pass
{
Cull [_Cull]
CGPROGRAM
#include "./UwcCommon.cginc"
#pragma vertex vert
#pragma fragment frag
#pragma multi_compile_fog
#pragma multi_compile ___ UWC_FLIP_X
#pragma multi_compile ___ UWC_FLIP_Y
ENDCG
}
}
Fallback "Unlit/Texture"
}

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 6661b5a6c9b5f6e45ae07f0fa22876e2
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -1,49 +0,0 @@
using UnityEngine;
using UnityEditor;
namespace uWindowCapture
{
public static class EditorUtils
{
public static bool Foldout(string title, bool display)
{
var style = new GUIStyle("ShurikenModuleTitle");
style.font = new GUIStyle(EditorStyles.label).font;
style.border = new RectOffset(15, 7, 4, 4);
style.fixedHeight = 22;
style.contentOffset = new Vector2(20f, -2f);
var rect = GUILayoutUtility.GetRect(16f, 22f, style);
GUI.Box(rect, title, style);
var e = Event.current;
var toggleRect = new Rect(rect.x + 4f, rect.y + 2f, 13f, 13f);
if (e.type == EventType.Repaint)
{
EditorStyles.foldout.Draw(toggleRect, false, false, display, false);
}
if (e.type == EventType.MouseDown && rect.Contains(e.mousePosition))
{
display = !display;
e.Use();
}
return display;
}
public static void Fold(string name, ref bool folded, System.Action func)
{
folded = Foldout(name, folded);
if (folded)
{
++EditorGUI.indentLevel;
func();
--EditorGUI.indentLevel;
}
}
}
}

View File

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

View File

@ -1,24 +0,0 @@
using UnityEngine;
using UnityEditor;
namespace uWindowCapture
{
[CustomEditor(typeof(UwcIconTexture))]
public class UwcIconTextureEditor : Editor
{
UwcIconTexture texture
{
get { return target as UwcIconTexture; }
}
public override void OnInspectorGUI()
{
var windowTexture = (UwcWindowTexture)EditorGUILayout.ObjectField("Window Texture", texture.windowTexture, typeof(UwcWindowTexture), true);
if (texture.windowTexture != windowTexture) {
texture.windowTexture = windowTexture;
}
}
}
}

View File

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

View File

@ -1,41 +0,0 @@
using UnityEngine;
using UnityEditor;
namespace uWindowCapture
{
[CustomEditor(typeof(UwcManager))]
public class UwcManagerEditor : Editor
{
UwcManager manager
{
get { return target as UwcManager; }
}
SerializedProperty windowTitlesUpdateTiming;
void OnEnable()
{
windowTitlesUpdateTiming = serializedObject.FindProperty("windowTitlesUpdateTiming");
}
public override void OnInspectorGUI()
{
serializedObject.Update();
Draw();
serializedObject.ApplyModifiedProperties();
}
void Draw()
{
var debugMode = (DebugMode)EditorGUILayout.EnumPopup("Debug Mode", manager.debugModeFromInspector);
if (debugMode != manager.debugModeFromInspector)
{
manager.debugModeFromInspector = debugMode;
}
EditorGUILayout.PropertyField(windowTitlesUpdateTiming);
}
}
}

View File

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

View File

@ -1,192 +0,0 @@
using UnityEngine;
using UnityEditor;
namespace uWindowCapture
{
[CustomEditor(typeof(UwcWindowTexture))]
public class UwcWindowTextureEditor : Editor
{
UwcWindowTexture texture
{
get { return target as UwcWindowTexture; }
}
UwcWindow window
{
get { return texture.window; }
}
string error_;
string error
{
get
{
return error_;
}
set
{
if (string.IsNullOrEmpty(value)) {
error_ = "";
} else {
error_ = string.IsNullOrEmpty(error_) ? value : (error_ + "\n" + value);
}
}
}
bool targetFold_ = true;
bool captureSettingFold_ = true;
bool scaleSettingFold_ = true;
bool windowInformationFold_ = true;
SerializedProperty updateTitle;
SerializedProperty childWindowPrefab;
SerializedProperty childWindowZDistance;
SerializedProperty captureMode;
SerializedProperty capturePriority;
SerializedProperty captureRequestTiming;
SerializedProperty captureFrameRate;
SerializedProperty drawCursor;
SerializedProperty scaleControlType;
SerializedProperty scalePer1000Pixel;
void OnEnable()
{
updateTitle = serializedObject.FindProperty("updateTitle");
childWindowPrefab = serializedObject.FindProperty("childWindowPrefab");
childWindowZDistance = serializedObject.FindProperty("childWindowZDistance");
captureMode = serializedObject.FindProperty("captureMode");
capturePriority = serializedObject.FindProperty("capturePriority");
captureRequestTiming = serializedObject.FindProperty("captureRequestTiming");
captureFrameRate = serializedObject.FindProperty("captureFrameRate");
drawCursor = serializedObject.FindProperty("drawCursor");
scaleControlType = serializedObject.FindProperty("scaleControlType");
scalePer1000Pixel = serializedObject.FindProperty("scalePer1000Pixel");
}
public override void OnInspectorGUI()
{
error = "";
serializedObject.Update();
{
EditorGUILayout.Space();
EditorUtils.Fold("Target", ref targetFold_, () => { DrawTargetSettings(); });
EditorUtils.Fold("Capture Settings", ref captureSettingFold_, () => { DrawCaptureSettings(); });
EditorUtils.Fold("Scale Settings", ref scaleSettingFold_, () => { DrawScaleSettings(); });
EditorUtils.Fold("Window Information", ref windowInformationFold_, () => { DrawWindowInformation(); });
}
serializedObject.ApplyModifiedProperties();
DrawError();
}
void DrawError()
{
if (!string.IsNullOrEmpty(error)) {
EditorGUILayout.HelpBox(error, UnityEditor.MessageType.Error);
}
}
void DrawTargetSettings()
{
var type = (WindowTextureType)EditorGUILayout.EnumPopup("Type", texture.type);
if (type != texture.type) {
Undo.RecordObject(target, "Inspector");
texture.type = type;
}
var searchTiming = (WindowSearchTiming)EditorGUILayout.EnumPopup("Search Timing", texture.searchTiming);
if (searchTiming != texture.searchTiming) {
Undo.RecordObject(target, "Inspector");
texture.searchTiming = searchTiming;
}
switch (type)
{
case WindowTextureType.Window:
var title = EditorGUILayout.TextField("Partial Window Title", texture.partialWindowTitle);
if (title != texture.partialWindowTitle) {
Undo.RecordObject(target, "Inspector");
texture.partialWindowTitle = title;
}
EditorGUILayout.PropertyField(updateTitle);
var altTabWindow = EditorGUILayout.Toggle("Alt Tab Window", texture.altTabWindow);
if (altTabWindow != texture.altTabWindow) {
Undo.RecordObject(target, "Inspector");
texture.altTabWindow = altTabWindow;
}
var createChildWindows = EditorGUILayout.Toggle("Create Child Windows", texture.createChildWindows);
if (createChildWindows != texture.createChildWindows) {
Undo.RecordObject(target, "Inspector");
texture.createChildWindows = createChildWindows;
}
if (texture.createChildWindows) {
EditorGUILayout.PropertyField(childWindowPrefab);
EditorGUILayout.PropertyField(childWindowZDistance);
}
break;
case WindowTextureType.Desktop:
var index = EditorGUILayout.IntField("Desktop Index", texture.desktopIndex);
if (index != texture.desktopIndex) {
Undo.RecordObject(target, "Inspector");
texture.desktopIndex = index;
}
break;
case WindowTextureType.Child:
if (window == null || !window.isChild) {
error += "Type: Child should be set only by UwcWindowTextureChildrenManager.";
}
break;
}
EditorGUILayout.Space();
}
void DrawCaptureSettings()
{
EditorGUILayout.PropertyField(captureMode);
EditorGUILayout.PropertyField(capturePriority);
EditorGUILayout.PropertyField(captureRequestTiming);
EditorGUILayout.PropertyField(captureFrameRate);
EditorGUILayout.PropertyField(drawCursor);
EditorGUILayout.Space();
}
void DrawScaleSettings()
{
EditorGUILayout.PropertyField(scaleControlType);
if (texture.scaleControlType == WindowTextureScaleControlType.BaseScale) {
EditorGUILayout.PropertyField(scalePer1000Pixel);
}
EditorGUILayout.Space();
}
void DrawWindowInformation()
{
if (!Application.isPlaying) {
EditorGUILayout.HelpBox("Window information will be shown here while playing.", UnityEditor.MessageType.Info);
return;
} else if (window == null) {
EditorGUILayout.HelpBox("Window is not assigned.", UnityEditor.MessageType.Info);
return;
}
EditorGUILayout.IntField("ID", window.id);
EditorGUILayout.TextField("Window Title", window.title);
EditorGUILayout.IntField("Window X", window.x);
EditorGUILayout.IntField("Window Y", window.y);
EditorGUILayout.IntField("Window Width", window.width);
EditorGUILayout.IntField("Window Height", window.height);
EditorGUILayout.IntField("Window Z-Order", window.zOrder);
EditorGUILayout.Toggle("Alt-Tab Window", window.isAltTabWindow);
EditorGUILayout.Toggle("Minimized", window.isMinimized);
EditorGUILayout.Toggle("Maximized", window.isMaximized);
EditorGUILayout.Space();
}
}
}

View File

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

View File

@ -1,17 +0,0 @@
{
"name": "uWindowCapture.Editor",
"references": [
"GUID:56dd35f9b6f21364494ed8365264cbf6"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [],
"autoReferenced": false,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 908211c618dbc0c49a127390f52e61c8
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 142b1e3a3b850a444b82786db2db22b0
folderAsset: yes
timeCreated: 1480839364
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 7ea233e07a0bb394bbe472347f5eb1fe
folderAsset: yes
timeCreated: 1480938389
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,88 +0,0 @@
fileFormatVersion: 2
guid: 1d1093db765ce824398c4018f90c79c4
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: OSXIntel
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
: OSXIntel64
second:
enabled: 0
settings:
CPU: None
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
CPU: x86
DefaultValueInitialized: true
- first:
Facebook: Win
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Facebook: Win64
second:
enabled: 0
settings:
CPU: None
- first:
Standalone: Linux
second:
enabled: 1
settings:
CPU: x86
- first:
Standalone: Linux64
second:
enabled: 0
settings:
CPU: None
- first:
Standalone: LinuxUniversal
second:
enabled: 1
settings:
CPU: x86
- first:
Standalone: OSXUniversal
second:
enabled: 0
settings:
CPU: x86
- first:
Standalone: Win
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: Win64
second:
enabled: 0
settings:
CPU: None
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 4bafa1d76cad46b4d9671ce5243df9e3
folderAsset: yes
timeCreated: 1479742619
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: 10857d04af36c0e469bde8a246342742
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Linux
second:
enabled: 0
settings:
CPU: None
- first:
: LinuxUniversal
second:
enabled: 1
settings:
CPU: x86_64
- first:
: OSXIntel
second:
enabled: 0
settings:
CPU: None
- first:
: OSXIntel64
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
CPU: x86_64
DefaultValueInitialized: true
- first:
Standalone: Linux64
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: OSXUniversal
second:
enabled: 0
settings:
CPU: x86_64
- first:
Standalone: Win
second:
enabled: 0
settings:
CPU: None
- first:
Standalone: Win64
second:
enabled: 1
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 84c0063251f93e348a6d80dc312f51f4
folderAsset: yes
timeCreated: 1480839748
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,33 +0,0 @@
using UnityEngine;
namespace uWindowCapture
{
public class UwcAltTabWindowTextureManager : UwcWindowTextureManager
{
void Start()
{
UwcManager.onWindowAdded.AddListener(OnWindowAdded);
UwcManager.onWindowRemoved.AddListener(OnWindowRemoved);
foreach (var pair in UwcManager.windows) {
OnWindowAdded(pair.Value);
}
}
void OnWindowAdded(UwcWindow window)
{
if (window.parentWindow != null) return; // handled by UwcWindowTextureChildrenManager
if (!window.isVisible || !window.isAltTabWindow || window.isBackground) return;
window.RequestCapture();
AddWindowTexture(window);
}
void OnWindowRemoved(UwcWindow window)
{
RemoveWindowTexture(window);
}
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 3ad596c8e295aac46ab74933954a7679
timeCreated: 1485690998
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,74 +0,0 @@
using UnityEngine;
using UnityEngine.Events;
namespace uWindowCapture
{
public enum WindowTextureType
{
Window = 0,
Desktop = 1,
Child = 2,
}
public enum WindowTextureCaptureTiming
{
EveryFrame = 0,
OnlyWhenVisible = 1,
Manual = 2,
}
public enum WindowTextureScaleControlType
{
BaseScale = 0,
FixedWidth = 1,
FixedHeight = 2,
Manual = 3,
}
public enum WindowSearchTiming
{
Always = 0,
Manual = 1,
OnlyWhenParameterChanged = 2,
}
public enum WindowTitlesUpdateTiming
{
Manual = 0,
AlwaysAllWindows = 1,
AlwaysAltTabWindows = 2,
}
public class UwcEvent : UnityEvent
{
}
public class UwcWindowEvent : UnityEvent<UwcWindow>
{
}
public class UwcWindowChangeEvent : UnityEvent<UwcWindow, UwcWindow>
{
}
public class UwcWindowTextureEvent : UnityEvent<UwcWindowTexture>
{
}
public struct RayCastResult
{
public bool hit;
public UwcWindowTexture texture;
public Vector3 position;
public Vector3 normal;
public Vector2 windowCoord;
public Vector2 desktopCoord;
}
public static class UwcSetting
{
public const int MiddlePriorityMaxZ = 5;
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 13ddde73026a5aa4e8729d7d1b784786
timeCreated: 1485666741
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,76 +0,0 @@
using UnityEngine;
namespace uWindowCapture
{
public class UwcCursor
{
public UwcCursor()
{
onCaptured.AddListener(OnCaptured);
}
public int x
{
get { return Lib.GetCursorX(); }
}
public int y
{
get { return Lib.GetCursorY(); }
}
public int width
{
get { return Lib.GetCursorWidth(); }
}
public int height
{
get { return Lib.GetCursorHeight(); }
}
public Texture2D texture
{
get;
private set;
}
UwcEvent onCaptured_ = new UwcEvent();
public UwcEvent onCaptured
{
get { return onCaptured_; }
}
UwcEvent onTextureChanged_ = new UwcEvent();
public UwcEvent onTextureChanged
{
get { return onTextureChanged_; }
}
public void RequestCapture()
{
Lib.RequestCaptureCursor();
}
void OnCaptured()
{
}
public void CreateTextureIfNeeded()
{
var w = width;
var h = height;
if (w == 0 || h == 0) return;
if (!texture || texture.width != w || texture.height != h) {
texture = new Texture2D(w, h, TextureFormat.BGRA32, false);
texture.filterMode = FilterMode.Point;
texture.wrapMode = TextureWrapMode.Clamp;
Lib.SetCursorTexturePtr(texture.GetNativeTexturePtr());
onTextureChanged.Invoke();
}
}
}
}

View File

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

View File

@ -1,36 +0,0 @@
using UnityEngine;
namespace uWindowCapture
{
[RequireComponent(typeof(Renderer))]
public class UwcCursorTexture : MonoBehaviour
{
Renderer renderer_;
Material material_;
UwcCursor cursor
{
get { return UwcManager.cursor; }
}
void Awake()
{
renderer_ = GetComponent<Renderer>();
material_ = renderer_.material; // clone
cursor.onTextureChanged.AddListener(OnTextureChanged);
}
void Update()
{
cursor.CreateTextureIfNeeded();
cursor.RequestCapture();
}
void OnTextureChanged()
{
material_.mainTexture = cursor.texture;
}
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 31ddce8bc61014a4fa2a969162d28f8e
timeCreated: 1485877395
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,74 +0,0 @@
using UnityEngine;
namespace uWindowCapture
{
[RequireComponent(typeof(Renderer))]
public class UwcIconTexture : MonoBehaviour
{
[SerializeField] UwcWindowTexture windowTexture_;
public UwcWindowTexture windowTexture
{
get
{
return windowTexture_;
}
set
{
windowTexture_ = value;
if (windowTexture_) {
window = windowTexture_.window;
}
}
}
UwcWindow window_ = null;
public UwcWindow window
{
get
{
return window_;
}
set
{
window_ = value;
if (window_ != null) {
if (!window_.hasIconTexture) {
window_.onIconCaptured.AddListener(OnIconCaptured);
window_.RequestCaptureIcon();
} else {
OnIconCaptured();
}
}
}
}
bool isValid
{
get
{
return window != null;
}
}
void Update()
{
if (windowTexture != null) {
if (window == null || window != windowTexture_.window) {
window = windowTexture_.window;
}
}
}
void OnIconCaptured()
{
if (!isValid) return;
var renderer = GetComponent<Renderer>();
renderer.material.mainTexture = window.iconTexture;
window.onIconCaptured.RemoveListener(OnIconCaptured);
}
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 35ee67aba57652c4fae5fef6f257d077
timeCreated: 1480840177
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,300 +0,0 @@
using UnityEngine;
using System;
using System.Runtime.InteropServices;
#pragma warning disable 114, 465
namespace uWindowCapture
{
public enum DebugMode
{
None = 0,
File = 1,
UnityLog = 2, /* currently has bug when app exits. */
}
public enum CaptureMode
{
None = -1,
PrintWindow = 0,
BitBlt = 1,
WindowsGraphicsCapture = 2,
Auto = 3,
}
public enum CapturePriority
{
Auto = -1,
High = 0,
Middle = 1,
Low = 2,
}
public enum MessageType
{
None = -1,
WindowAdded = 0,
WindowRemoved = 1,
WindowCaptured = 2,
WindowSizeChanged = 3,
IconCaptured = 4,
CursorCaptured = 5,
Error = 1000,
TextureNullError = 1001,
TextureSizeError = 1002,
}
[StructLayout(LayoutKind.Sequential)]
public struct Message
{
[MarshalAs(UnmanagedType.I4)]
public MessageType type;
[MarshalAs(UnmanagedType.I4)]
public int windowId;
[MarshalAs(UnmanagedType.I8)]
public IntPtr userData;
}
[StructLayout(LayoutKind.Sequential)]
public struct Point
{
[MarshalAs(UnmanagedType.I4)]
public int x;
[MarshalAs(UnmanagedType.I4)]
public int y;
}
public static class Lib
{
public const string name = "uWindowCapture";
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void DebugLogDelegate(string str);
[DllImport(name, EntryPoint = "UwcInitialize")]
public static extern void Initialize();
[DllImport(name, EntryPoint = "UwcFinalize")]
public static extern void Finalize();
[DllImport(name, EntryPoint = "UwcSetDebugMode")]
public static extern void SetDebugMode(DebugMode mode);
[DllImport(name, EntryPoint = "UwcSetLogFunc")]
public static extern void SetLogFunc(DebugLogDelegate func);
[DllImport(name, EntryPoint = "UwcSetErrorFunc")]
public static extern void SetErrorFunc(DebugLogDelegate func);
[DllImport(name, EntryPoint = "UwcGetRenderEventFunc")]
public static extern IntPtr GetRenderEventFunc();
[DllImport(name, EntryPoint = "UwcUpdate")]
public static extern void Update(float dt);
[DllImport(name, EntryPoint = "UwcGetMessageCount")]
private static extern int GetMessageCount();
[DllImport(name, EntryPoint = "UwcGetMessages")]
private static extern IntPtr GetMessages_Internal();
[DllImport(name, EntryPoint = "UwcClearMessages")]
private static extern void ClearMessages();
[DllImport(name, EntryPoint = "UwcExcludeRemovedWindowEvents")]
private static extern void ExcludeRemovedWindowEvents();
[DllImport(name, EntryPoint = "UwcCheckWindowExistence")]
public static extern bool CheckWindowExistence(int id);
[DllImport(name, EntryPoint = "UwcGetWindowHandle")]
public static extern IntPtr GetWindowHandle(int id);
[DllImport(name, EntryPoint = "UwcGetWindowParentId")]
public static extern int GetWindowParentId(int id);
[DllImport(name, EntryPoint = "UwcGetWindowOwnerHandle")]
public static extern IntPtr GetWindowOwnerHandle(int id);
[DllImport(name, EntryPoint = "UwcGetWindowParentHandle")]
public static extern IntPtr GetWindowParentHandle(int id);
[DllImport(name, EntryPoint = "UwcGetWindowInstance")]
public static extern IntPtr GetWindowInstance(int id);
[DllImport(name, EntryPoint = "UwcGetWindowProcessId")]
public static extern int GetWindowProcessId(int id);
[DllImport(name, EntryPoint = "UwcGetWindowThreadId")]
public static extern int GetWindowThreadId(int id);
[DllImport(name, EntryPoint = "UwcRequestUpdateWindowTitle")]
public static extern void RequestUpdateWindowTitle(int id);
[DllImport(name, EntryPoint = "UwcRequestCaptureWindow")]
public static extern void RequestCaptureWindow(int id, CapturePriority priority);
[DllImport(name, EntryPoint = "UwcRequestCaptureIcon")]
public static extern void RequestCaptureIcon(int id);
[DllImport(name, EntryPoint = "StartCaptureWindow")]
public static extern void StartCaptureWindow(int id, CapturePriority priority);
[DllImport(name, EntryPoint = "StopCaptureWindow")]
public static extern void StopCaptureWindow(int id);
[DllImport(name, EntryPoint = "UwcGetWindowX")]
public static extern int GetWindowX(int id);
[DllImport(name, EntryPoint = "UwcGetWindowY")]
public static extern int GetWindowY(int id);
[DllImport(name, EntryPoint = "UwcGetWindowWidth")]
public static extern int GetWindowWidth(int id);
[DllImport(name, EntryPoint = "UwcGetWindowHeight")]
public static extern int GetWindowHeight(int id);
[DllImport(name, EntryPoint = "UwcGetWindowZOrder")]
public static extern int GetWindowZOrder(int id);
[DllImport(name, EntryPoint = "UwcGetWindowBuffer")]
public static extern IntPtr GetWindowBuffer(int id);
[DllImport(name, EntryPoint = "UwcGetWindowTextureWidth")]
public static extern int GetWindowTextureWidth(int id);
[DllImport(name, EntryPoint = "UwcGetWindowTextureHeight")]
public static extern int GetWindowTextureHeight(int id);
[DllImport(name, EntryPoint = "UwcGetWindowTextureOffsetX")]
public static extern int GetWindowTextureOffsetX(int id);
[DllImport(name, EntryPoint = "UwcGetWindowTextureOffsetY")]
public static extern int GetWindowTextureOffsetY(int id);
[DllImport(name, EntryPoint = "UwcGetWindowIconWidth")]
public static extern int GetWindowIconWidth(int id);
[DllImport(name, EntryPoint = "UwcGetWindowIconHeight")]
public static extern int GetWindowIconHeight(int id);
[DllImport(name, EntryPoint = "UwcGetWindowTitleLength")]
private static extern int GetWindowTitleLength(int id);
[DllImport(name, EntryPoint = "UwcGetWindowTitle", CharSet = CharSet.Unicode)]
private static extern IntPtr GetWindowTitle_Internal(int id);
[DllImport(name, EntryPoint = "UwcGetWindowClassNameLength")]
private static extern int GetWindowClassNameLength(int id);
[DllImport(name, EntryPoint = "UwcGetWindowClassName", CharSet = CharSet.Ansi)]
private static extern IntPtr GetWindowClassName_Internal(int id);
[DllImport(name, EntryPoint = "UwcGetWindowTexturePtr")]
public static extern IntPtr GetWindowTexturePtr(int id);
[DllImport(name, EntryPoint = "UwcSetWindowTexturePtr")]
public static extern void SetWindowTexturePtr(int id, IntPtr texturePtr);
[DllImport(name, EntryPoint = "UwcGetWindowIconTexturePtr")]
public static extern IntPtr GetWindowIconTexturePtr(int id);
[DllImport(name, EntryPoint = "UwcSetWindowIconTexturePtr")]
public static extern void SetWindowIconTexturePtr(int id, IntPtr texturePtr);
[DllImport(name, EntryPoint = "UwcGetWindowCaptureMode")]
public static extern CaptureMode GetWindowCaptureMode(int id);
[DllImport(name, EntryPoint = "UwcSetWindowCaptureMode")]
public static extern void SetWindowCaptureMode(int id, CaptureMode mode);
[DllImport(name, EntryPoint = "UwcGetWindowCursorDraw")]
public static extern bool GetWindowCursorDraw(int id);
[DllImport(name, EntryPoint = "UwcSetWindowCursorDraw")]
public static extern void SetWindowCursorDraw(int id, bool draw);
[DllImport(name, EntryPoint = "UwcIsWindow")]
public static extern bool IsWindow(int id);
[DllImport(name, EntryPoint = "UwcIsWindowVisible")]
public static extern bool IsWindowVisible(int id);
[DllImport(name, EntryPoint = "UwcIsAltTabWindow")]
public static extern bool IsAltTabWindow(int id);
[DllImport(name, EntryPoint = "UwcIsDesktop")]
public static extern bool IsDesktop(int id);
[DllImport(name, EntryPoint = "UwcIsWindowEnabled")]
public static extern bool IsWindowEnabled(int id);
[DllImport(name, EntryPoint = "UwcIsWindowUnicode")]
public static extern bool IsWindowUnicode(int id);
[DllImport(name, EntryPoint = "UwcIsWindowZoomed")]
public static extern bool IsWindowZoomed(int id);
[DllImport(name, EntryPoint = "UwcIsWindowIconic")]
public static extern bool IsWindowIconic(int id);
[DllImport(name, EntryPoint = "UwcIsWindowHungUp")]
public static extern bool IsWindowHungUp(int id);
[DllImport(name, EntryPoint = "UwcIsWindowTouchable")]
public static extern bool IsWindowTouchable(int id);
[DllImport(name, EntryPoint = "UwcIsWindowApplicationFrameWindow")]
public static extern bool IsApplicationFrameWindow(int id);
[DllImport(name, EntryPoint = "UwcIsWindowUWP")]
public static extern bool IsWindowUWP(int id);
[DllImport(name, EntryPoint = "UwcIsWindowBackground")]
public static extern bool IsWindowBackground(int id);
[DllImport(name, EntryPoint = "UwcGetWindowPixel")]
public static extern Color32 GetWindowPixel(int id, int x, int y);
[DllImport(name, EntryPoint = "UwcGetWindowPixels")]
private static extern bool GetWindowPixels_Internal(int id, IntPtr output, int x, int y, int width, int height);
[DllImport(name, EntryPoint = "UwcRequestCaptureCursor")]
public static extern void RequestCaptureCursor();
[DllImport(name, EntryPoint = "UwcGetCursorPosition")]
public static extern Point GetCursorPosition();
[DllImport(name, EntryPoint = "UwcGetWindowIdFromPoint")]
public static extern int GetWindowIdFromPoint(int x, int y);
[DllImport(name, EntryPoint = "UwcGetWindowIdUnderCursor")]
public static extern int GetWindowIdUnderCursor();
[DllImport(name, EntryPoint = "UwcGetCursorX")]
public static extern int GetCursorX();
[DllImport(name, EntryPoint = "UwcGetCursorY")]
public static extern int GetCursorY();
[DllImport(name, EntryPoint = "UwcGetCursorWidth")]
public static extern int GetCursorWidth();
[DllImport(name, EntryPoint = "UwcGetCursorHeight")]
public static extern int GetCursorHeight();
[DllImport(name, EntryPoint = "UwcSetCursorTexturePtr")]
public static extern void SetCursorTexturePtr(IntPtr ptr);
[DllImport(name, EntryPoint = "UwcGetScreenX")]
public static extern int GetScreenX();
[DllImport(name, EntryPoint = "UwcGetScreenY")]
public static extern int GetScreenY();
[DllImport(name, EntryPoint = "UwcGetScreenWidth")]
public static extern int GetScreenWidth();
[DllImport(name, EntryPoint = "UwcGetScreenHeight")]
public static extern int GetScreenHeight();
[DllImport(name, EntryPoint = "UwcIsWindowsGraphicsCaptureSupported")]
public static extern bool IsWindowsGraphicsCaptureSupported();
[DllImport(name, EntryPoint = "UwcIsWindowsGraphicsCaptureCursorCaptureEnabledApiSupported")]
public static extern bool IsWindowsGraphicsCaptureCursorCaptureEnabledApiSupported();
public static Message[] GetMessages()
{
ExcludeRemovedWindowEvents();
var count = GetMessageCount();
var messages = new Message[count];
if (count == 0) return messages;
var ptr = GetMessages_Internal();
var size = Marshal.SizeOf(typeof(Message));
for (int i = 0; i < count; ++i) {
var data = new IntPtr(ptr.ToInt64() + (size * i));
messages[i] = (Message)Marshal.PtrToStructure(data, typeof(Message));
}
ClearMessages();
return messages;
}
public static string GetWindowTitle(int id)
{
var len = GetWindowTitleLength(id);
var ptr = GetWindowTitle_Internal(id);
if (ptr != IntPtr.Zero) {
return Marshal.PtrToStringUni(ptr, len);
} else {
return "";
}
}
public static string GetWindowClassName(int id)
{
var len = GetWindowClassNameLength(id);
var ptr = GetWindowClassName_Internal(id);
if (ptr != IntPtr.Zero) {
return Marshal.PtrToStringAnsi(ptr, len);
} else {
return "";
}
}
public static Color32[] GetWindowPixels(int id, int x, int y, int width, int height)
{
var color = new Color32[width * height];
GetWindowPixels(id, color, x, y, width, height);
return color;
}
public static bool GetWindowPixels(int id, Color32[] colors, int x, int y, int width, int height)
{
if (colors.Length < width * height) {
Debug.LogErrorFormat("colors is smaller than (width * height).", id, x, y, width, height);
return false;
}
var handle = GCHandle.Alloc(colors, GCHandleType.Pinned);
var ptr = handle.AddrOfPinnedObject();
if (!GetWindowPixels_Internal(id, ptr, x, y, width, height)) {
Debug.LogErrorFormat("GetWindowPixels({0}, {1}, {2}, {3}, {4}) failed.", id, x, y, width, height);
return false;
}
handle.Free();
return true;
}
}
}

View File

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

View File

@ -1,383 +0,0 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace uWindowCapture
{
public class UwcManager : MonoBehaviour
{
private static UwcManager instance_;
public static UwcManager instance
{
get { return CreateInstance(); }
}
private static UwcManager CreateInstance()
{
if (instance_ != null) return instance_;
var manager = FindObjectOfType<UwcManager>();
if (manager) {
instance_ = manager;
return manager;
}
var go = new GameObject("uWindowCapture");
instance_ = go.AddComponent<UwcManager>();
return instance_;
}
#if UNITY_EDITOR
[MenuItem("GameObject/uWindowCapture/Manager", false, 100)]
public static void CreateManagerGameObject()
{
CreateInstance();
}
#endif
public DebugMode debugModeFromInspector = DebugMode.File;
private static DebugMode debugModeFromScript = DebugMode.File;
private static bool debugModeChangedFromScript = false;
public static DebugMode debugMode
{
get
{
return debugModeChangedFromScript ?
debugModeFromScript :
instance.debugModeFromInspector;
}
set
{
debugModeFromScript = value;
debugModeChangedFromScript = true;
}
}
public static event Lib.DebugLogDelegate onDebugLog = OnDebugLog;
public static event Lib.DebugLogDelegate onDebugErr = OnDebugErr;
[AOT.MonoPInvokeCallback(typeof(Lib.DebugLogDelegate))]
private static void OnDebugLog(string msg) { Debug.Log(msg); }
[AOT.MonoPInvokeCallback(typeof(Lib.DebugLogDelegate))]
private static void OnDebugErr(string msg) { Debug.LogError(msg); }
public WindowTitlesUpdateTiming windowTitlesUpdateTiming = WindowTitlesUpdateTiming.Manual;
private UwcWindowEvent onWindowAdded_ = new UwcWindowEvent();
public static UwcWindowEvent onWindowAdded
{
get { return instance.onWindowAdded_; }
}
private UwcWindowEvent onWindowRemoved_ = new UwcWindowEvent();
public static UwcWindowEvent onWindowRemoved
{
get { return instance.onWindowRemoved_; }
}
private UwcWindowEvent onDesktopAdded_ = new UwcWindowEvent();
public static UwcWindowEvent onDesktopAdded
{
get { return instance.onDesktopAdded_; }
}
private UwcWindowEvent onDesktopRemoved_ = new UwcWindowEvent();
public static UwcWindowEvent onDesktopRemoved
{
get { return instance.onDesktopRemoved_; }
}
private UwcEvent onCursorCaptured_ = new UwcEvent();
public static UwcEvent onCursorCaptured
{
get { return instance.onCursorCaptured_; }
}
System.IntPtr renderEventFunc_;
Dictionary<int, UwcWindow> windows_ = new Dictionary<int, UwcWindow>();
static public Dictionary<int, UwcWindow> windows
{
get { return instance.windows_; }
}
int cursorWindowId_ = -1;
static public UwcWindow cursorWindow
{
get { return Find(instance.cursorWindowId_); }
}
UwcCursor cursor_ = new UwcCursor();
static public UwcCursor cursor
{
get { return instance.cursor_; }
}
List<int> desktops_ = new List<int>();
static public int desktopCount
{
get { return instance.desktops_.Count; }
}
static public bool isWindowsGraphicsCaptureSupported
{
get { return Lib.IsWindowsGraphicsCaptureSupported(); }
}
static public bool isWindowsGraphicsCaptureCursorCaptureEnabledApiSupported
{
get { return Lib.IsWindowsGraphicsCaptureCursorCaptureEnabledApiSupported(); }
}
void Awake()
{
Lib.SetDebugMode(debugMode);
Lib.Initialize();
renderEventFunc_ = Lib.GetRenderEventFunc();
}
void Start()
{
StartCoroutine(Render());
}
void OnApplicationQuit()
{
Resources.UnloadUnusedAssets();
Lib.Finalize();
}
void OnEnable()
{
Lib.SetLogFunc(onDebugLog);
Lib.SetErrorFunc(onDebugErr);
}
void OnDisable()
{
Lib.SetLogFunc(null);
Lib.SetErrorFunc(null);
}
IEnumerator Render()
{
for (;;) {
yield return new WaitForEndOfFrame();
GL.IssuePluginEvent(renderEventFunc_, 0);
}
}
void Update()
{
Lib.Update(Time.deltaTime);
UpdateWindowInfo();
UpdateMessages();
UpdateWindowTitles();
}
void UpdateWindowInfo()
{
cursorWindowId_ = Lib.GetWindowIdUnderCursor();
}
UwcWindow AddWindow(int id)
{
var window = new UwcWindow(id);
windows.Add(id, window);
return window;
}
void UpdateMessages()
{
var messages = Lib.GetMessages();
for (int i = 0; i < messages.Length; ++i) {
var message = messages[i];
var id = message.windowId;
switch (message.type) {
case MessageType.WindowAdded: {
var window = AddWindow(id);
if (window.isAlive && window.isDesktop) {
desktops_.Add(id);
onDesktopAdded.Invoke(window);
} else {
onWindowAdded.Invoke(window);
}
break;
}
case MessageType.WindowRemoved: {
var window = Find(id);
if (window != null) {
window.isAlive = false;
if (window.parentWindow != null) {
window.parentWindow.onChildRemoved.Invoke(window);
}
windows.Remove(id);
if (window.isAlive && window.isDesktop) {
desktops_.Remove(id);
onDesktopRemoved.Invoke(window);
} else {
onWindowRemoved.Invoke(window);
}
}
break;
}
case MessageType.WindowCaptured: {
var window = Find(id);
if (window != null) {
window.onCaptured.Invoke();
}
break;
}
case MessageType.WindowSizeChanged: {
var window = Find(id);
if (window != null) {
window.onSizeChanged.Invoke();
}
break;
}
case MessageType.IconCaptured: {
var window = Find(id);
if (window != null) {
window.onIconCaptured.Invoke();
}
break;
}
case MessageType.CursorCaptured: {
cursor.onCaptured.Invoke();
break;
}
case MessageType.TextureNullError: {
var window = Find(id);
if (window != null) {
window.ResetWindowTexture();
}
break;
}
case MessageType.TextureSizeError: {
var window = Find(id);
if (window != null) {
window.ResetWindowTexture();
}
break;
}
default: {
break;
}
}
}
}
void UpdateWindowTitles()
{
switch (windowTitlesUpdateTiming) {
case WindowTitlesUpdateTiming.Manual:
break;
case WindowTitlesUpdateTiming.AlwaysAllWindows:
UpdateAllWindowTitles();
break;
case WindowTitlesUpdateTiming.AlwaysAltTabWindows:
UpdateAltTabWindowTitles();
break;
}
}
static public UwcWindow Find(int id)
{
UwcWindow window = null;
windows.TryGetValue(id, out window);
return window;
}
static public UwcWindow Find(string partialTitle, bool isAltTabWindow = true)
{
UwcWindow target = null;
int minIndex = int.MaxValue;
foreach (var kv in windows) {
var window = kv.Value;
if (isAltTabWindow && !window.isAltTabWindow) {
continue;
}
var index = window.title.IndexOf(partialTitle);
if (index == 0) {
return window;
} else if (index != -1 && index < minIndex) {
minIndex = index;
target = window;
}
}
return target;
}
static public UwcWindow Find(System.IntPtr handle)
{
foreach (var kv in windows) {
var window = kv.Value;
if (window.handle == handle) {
return window;
}
}
return null;
}
static public UwcWindow Find(System.Func<UwcWindow, bool> func)
{
foreach (var kv in windows) {
var window = kv.Value;
if (func(window)) return window;
}
return null;
}
static public List<UwcWindow> FindAll(string title)
{
var list = new List<UwcWindow>();
foreach (var kv in windows) {
var window = kv.Value;
if (window.title.IndexOf(title) != -1) {
list.Add(window);
}
}
return list;
}
static public UwcWindow FindParent(int id)
{
var parentId = Lib.GetWindowParentId(id);
if (parentId == -1) return null;
UwcWindow parent;
windows.TryGetValue(parentId, out parent);
return parent;
}
static public UwcWindow FindDesktop(int index)
{
if (index < 0 || index >= desktopCount) return null;
var id = instance.desktops_[index];
return Find(id);
}
static public void UpdateAllWindowTitles()
{
foreach (var kv in windows) {
var window = kv.Value;
window.RequestUpdateTitle();
}
}
static public void UpdateAltTabWindowTitles()
{
foreach (var kv in windows) {
var window = kv.Value;
if (window.isAltTabWindow) {
window.RequestUpdateTitle();
}
}
}
}
}

View File

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

View File

@ -1,409 +0,0 @@
using UnityEngine;
using UnityEngine.Events;
namespace uWindowCapture
{
public class UwcWindow
{
public UwcWindow(int id)
{
this.id = id;
isAlive = true;
onCaptured.AddListener(OnCaptured);
onSizeChanged.AddListener(OnSizeChanged);
onIconCaptured.AddListener(OnIconCaptured);
CreateIconTexture();
parentWindow = UwcManager.FindParent(id);
if (parentWindow != null) {
parentWindow.onChildAdded.Invoke(this);
}
}
public int id
{
get;
private set;
}
public UwcWindow parentWindow
{
get;
private set;
}
public System.IntPtr handle
{
get { return Lib.GetWindowHandle(id); }
}
public System.IntPtr ownerHandle
{
get { return Lib.GetWindowOwnerHandle(id); }
}
public System.IntPtr parentHandle
{
get { return Lib.GetWindowParentHandle(id); }
}
public System.IntPtr instance
{
get { return Lib.GetWindowInstance(id); }
}
public int processId
{
get { return Lib.GetWindowProcessId(id); }
}
public int threadId
{
get { return Lib.GetWindowThreadId(id); }
}
public bool isValid
{
get { return Lib.CheckWindowExistence(id); }
}
public bool isAlive
{
get;
set;
}
public bool isRoot
{
get { return parentWindow == null; }
}
public bool isChild
{
get { return !isRoot; }
}
public bool isVisible
{
get { return Lib.IsWindowVisible(id); }
}
public bool isAltTabWindow
{
get { return Lib.IsAltTabWindow(id); }
}
public bool isDesktop
{
get { return Lib.IsDesktop(id); }
}
public bool isEnabled
{
get { return Lib.IsWindowEnabled(id); }
}
public bool isUnicode
{
get { return Lib.IsWindowUnicode(id); }
}
public bool isZoomed
{
get { return Lib.IsWindowZoomed(id); }
}
public bool isMaximized
{
get { return isZoomed; }
}
public bool isIconic
{
get { return Lib.IsWindowIconic(id); }
}
public bool isMinimized
{
get { return isIconic; }
}
public bool isHungup
{
get { return Lib.IsWindowHungUp(id); }
}
public bool isTouchable
{
get { return Lib.IsWindowTouchable(id); }
}
public bool isApplicationFrameWindow
{
get { return Lib.IsApplicationFrameWindow(id); }
}
public bool isUWP
{
get { return Lib.IsWindowUWP(id); }
}
public bool isBackground
{
get { return Lib.IsWindowBackground(id); }
}
public string title
{
get { return Lib.GetWindowTitle(id); }
}
public string className
{
get { return Lib.GetWindowClassName(id); }
}
public int rawX
{
get { return Lib.GetWindowX(id); }
}
public int rawY
{
get { return Lib.GetWindowY(id); }
}
public int rawWidth
{
get { return Lib.GetWindowWidth(id); }
}
public int rawHeight
{
get { return Lib.GetWindowHeight(id); }
}
public int x
{
get { return rawX + Lib.GetWindowTextureOffsetX(id); }
}
public int y
{
get { return rawY + Lib.GetWindowTextureOffsetY(id); }
}
public int width
{
get { return Lib.GetWindowTextureWidth(id); }
}
public int height
{
get { return Lib.GetWindowTextureHeight(id); }
}
public int zOrder
{
get { return Lib.GetWindowZOrder(id); }
}
public System.IntPtr buffer
{
get { return Lib.GetWindowBuffer(id); }
}
public int textureOffsetX
{
get { return Lib.GetWindowTextureOffsetX(id); }
}
public int textureOffsetY
{
get { return Lib.GetWindowTextureOffsetY(id); }
}
public int iconWidth
{
get { return Lib.GetWindowIconWidth(id); }
}
public int iconHeight
{
get { return Lib.GetWindowIconHeight(id); }
}
private Texture2D backTexture_;
private bool willTextureSizeChange_ = false;
public Texture2D texture
{
get;
private set;
}
private Texture2D iconTexture_;
private Texture2D errorIconTexture_;
private bool hasIconTextureCaptured_ = false;
public bool hasIconTexture
{
get { return hasIconTextureCaptured_; }
}
public Texture2D iconTexture
{
get { return hasIconTextureCaptured_ ? iconTexture_ : errorIconTexture_; }
}
public CaptureMode captureMode
{
get { return Lib.GetWindowCaptureMode(id); }
set { Lib.SetWindowCaptureMode(id, value); }
}
public bool cursorDraw
{
get { return Lib.GetWindowCursorDraw(id); }
set { Lib.SetWindowCursorDraw(id, value); }
}
private UnityEvent onCaptured_ = new UnityEvent();
public UnityEvent onCaptured
{
get { return onCaptured_; }
}
private bool isFirstSizeChangedEvent_ = true;
private UnityEvent onSizeChanged_ = new UnityEvent();
public UnityEvent onSizeChanged
{
get { return onSizeChanged_; }
}
private UnityEvent onIconCaptured_ = new UnityEvent();
public UnityEvent onIconCaptured
{
get { return onIconCaptured_; }
}
public class ChildAddedEvent : UnityEvent<UwcWindow> {}
private ChildAddedEvent onChildAdded_ = new ChildAddedEvent();
public ChildAddedEvent onChildAdded
{
get { return onChildAdded_; }
}
public class ChildRemovedEvent : UnityEvent<UwcWindow> {}
private ChildRemovedEvent onChildRemoved_ = new ChildRemovedEvent();
public ChildRemovedEvent onChildRemoved
{
get { return onChildRemoved_; }
}
public void RequestUpdateTitle()
{
Lib.RequestUpdateWindowTitle(id);
}
public void RequestCaptureIcon()
{
Lib.RequestCaptureIcon(id);
}
public void RequestCapture(CapturePriority priority = CapturePriority.High)
{
if (!texture) {
CreateWindowTexture();
}
Lib.RequestCaptureWindow(id, priority);
}
void OnSizeChanged()
{
if (isFirstSizeChangedEvent_) {
isFirstSizeChangedEvent_ = false;
return;
}
CreateWindowTexture();
}
void OnCaptured()
{
UpdateWindowTexture();
}
void OnIconCaptured()
{
hasIconTextureCaptured_ = true;
}
void CreateWindowTexture(bool force = false)
{
var w = width;
var h = height;
if (w <= 0 || h <= 0) return;
if (force || !texture || texture.width != w || texture.height != h) {
if (backTexture_) {
Object.DestroyImmediate(backTexture_);
}
try {
backTexture_ = new Texture2D(w, h, TextureFormat.BGRA32, false);
Lib.SetWindowTexturePtr(id, backTexture_.GetNativeTexturePtr());
willTextureSizeChange_ = true;
} catch (System.Exception e) {
Debug.LogError(e.Message);
Debug.LogErrorFormat("Width: {0}, Height: {1}", w, h);
}
}
}
void UpdateWindowTexture()
{
if (willTextureSizeChange_) {
if (texture) {
Object.DestroyImmediate(texture);
}
texture = backTexture_;
backTexture_ = null;
willTextureSizeChange_ = false;
}
}
public void ResetWindowTexture()
{
CreateWindowTexture(true);
}
void CreateIconTexture()
{
var w = iconWidth;
var h = iconHeight;
if (w == 0 || h == 0) return;
iconTexture_ = new Texture2D(w, h, TextureFormat.BGRA32, false);
iconTexture_.filterMode = FilterMode.Bilinear;
iconTexture_.wrapMode = TextureWrapMode.Clamp;
Lib.SetWindowIconTexturePtr(id, iconTexture_.GetNativeTexturePtr());
errorIconTexture_ = Resources.Load<Texture2D>("uWindowCapture/Textures/uWC_No_Image");
}
public Color32[] GetPixels(int x, int y, int width, int height)
{
return Lib.GetWindowPixels(id, x, y, width, height);
}
public bool GetPixels(Color32[] colors, int x, int y, int width, int height)
{
return Lib.GetWindowPixels(id, colors, x, y, width, height);
}
public Color32 GetPixel(int x, int y)
{
return Lib.GetWindowPixel(id, x, y);
}
}
}

View File

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

View File

@ -1,441 +0,0 @@
using UnityEngine;
using System.Collections.Generic;
namespace uWindowCapture
{
public class UwcWindowTexture : MonoBehaviour
{
bool shouldUpdateWindow_ = true;
bool shouldUpdateWindow
{
get
{
return shouldUpdateWindow_;
}
set
{
if (value && searchTiming == WindowSearchTiming.Manual) return;
shouldUpdateWindow_ = value;
}
}
[SerializeField]
WindowSearchTiming searchTiming_ = WindowSearchTiming.OnlyWhenParameterChanged;
public WindowSearchTiming searchTiming
{
get
{
return searchTiming_;
}
set
{
searchTiming_ = value;
if (searchTiming_ == WindowSearchTiming.Manual) {
shouldUpdateWindow = false;
} else {
shouldUpdateWindow = true;
}
}
}
[SerializeField]
WindowTextureType type_ = WindowTextureType.Window;
public WindowTextureType type
{
get
{
return type_;
}
set
{
shouldUpdateWindow = true;
type_ = value;
}
}
[SerializeField]
bool altTabWindow_ = false;
public bool altTabWindow
{
get
{
return altTabWindow_;
}
set
{
shouldUpdateWindow = true;
altTabWindow_ = value;
}
}
[SerializeField]
bool createChildWindows_ = true;
public bool createChildWindows
{
get
{
return createChildWindows_;
}
set
{
createChildWindows_ = value;
var manager = GetComponent<UwcWindowTextureChildrenManager>();
if (createChildWindows_) {
if (!manager) {
gameObject.AddComponent<UwcWindowTextureChildrenManager>();
}
} else {
if (manager) {
Destroy(manager);
}
}
}
}
public GameObject childWindowPrefab;
public float childWindowZDistance = 0.02f;
[SerializeField]
string partialWindowTitle_;
public string partialWindowTitle
{
get
{
return partialWindowTitle_;
}
set
{
shouldUpdateWindow = true;
partialWindowTitle_ = value;
}
}
[SerializeField]
int desktopIndex_ = 0;
public int desktopIndex
{
get
{
return desktopIndex_;
}
set
{
shouldUpdateWindow = true;
desktopIndex_ = (UwcManager.desktopCount > 0) ?
Mathf.Clamp(value, 0, UwcManager.desktopCount - 1) : 0;
}
}
public CaptureMode captureMode = CaptureMode.Auto;
public CapturePriority capturePriority = CapturePriority.Auto;
public WindowTextureCaptureTiming captureRequestTiming = WindowTextureCaptureTiming.OnlyWhenVisible;
public int captureFrameRate = 30;
public bool drawCursor = true;
public bool updateTitle = true;
public bool searchAnotherWindowWhenInvalid = false;
public WindowTextureScaleControlType scaleControlType = WindowTextureScaleControlType.BaseScale;
public float scalePer1000Pixel = 1f;
public bool updateScaleForcely = false;
static HashSet<UwcWindowTexture> list_ = new HashSet<UwcWindowTexture>();
public static HashSet<UwcWindowTexture> list
{
get { return list_; }
}
UwcWindow window_;
public UwcWindow window
{
get
{
return window_;
}
set
{
if (window_ == value) {
return;
}
if (window_ != null) {
window_.onCaptured.RemoveListener(OnCaptured);
}
var old = window_;
window_ = value;
onWindowChanged_.Invoke(window_, old);
if (window_ != null) {
shouldUpdateWindow = false;
window_.onCaptured.AddListener(OnCaptured);
window_.RequestCapture(CapturePriority.High);
}
}
}
public UwcWindowTextureManager manager { get; set; }
public UwcWindowTexture parent { get; set; }
UwcWindowChangeEvent onWindowChanged_ = new UwcWindowChangeEvent();
public UwcWindowChangeEvent onWindowChanged
{
get { return onWindowChanged_; }
}
float basePixel
{
get { return 1000f / scalePer1000Pixel; }
}
public bool isValid
{
get
{
return window != null && window.isValid;
}
}
Material material_;
Renderer renderer_;
MeshFilter meshFilter_;
Collider collider_;
float captureTimer_ = 0f;
bool isCaptureRequested_ = false;
bool hasBeenCaptured_ = false;
void Awake()
{
renderer_ = GetComponent<Renderer>();
material_ = renderer_.material; // clone
meshFilter_ = GetComponent<MeshFilter>();
collider_ = GetComponent<Collider>();
list_.Add(this);
}
void OnDestroy()
{
list_.Remove(this);
}
void Update()
{
UpdateSearchTiming();
UpdateTargetWindow();
if (!isValid) {
material_.mainTexture = null;
return;
}
UpdateTexture();
UpdateRenderer();
UpdateScale();
UpdateTitle();
UpdateCaptureTimer();
UpdateRequestCapture();
UpdateBasicComponents();
}
void OnWillRenderObject()
{
if (!isCaptureRequested_) return;
if (captureRequestTiming == WindowTextureCaptureTiming.OnlyWhenVisible) {
RequestCapture();
}
}
void UpdateTexture()
{
if (!isValid) return;
window.cursorDraw = drawCursor;
if (material_.mainTexture != window.texture) {
material_.mainTexture = window.texture;
}
}
void UpdateRenderer()
{
if (hasBeenCaptured_) {
renderer_.enabled = !window.isIconic && window.isVisible;
}
}
void UpdateScale()
{
if (!isValid || (!updateScaleForcely && window.isChild)) return;
var scale = transform.localScale;
switch (scaleControlType) {
case WindowTextureScaleControlType.BaseScale: {
var extents = meshFilter_.sharedMesh.bounds.extents;
var meshWidth = extents.x * 2f;
var meshHeight = extents.y * 2f;
var baseHeight = meshHeight * basePixel;
var baseWidth = meshWidth * basePixel;
scale.x = window.width / baseWidth;
scale.y = window.height / baseHeight;
break;
}
case WindowTextureScaleControlType.FixedWidth: {
scale.y = transform.localScale.x * window.height / window.width;
break;
}
case WindowTextureScaleControlType.FixedHeight: {
scale.x = transform.localScale.y * window.width / window.height;
break;
}
case WindowTextureScaleControlType.Manual: {
break;
}
}
if (float.IsNaN(scale.x)) scale.x = 0f;
if (float.IsNaN(scale.y)) scale.y = 0f;
transform.localScale = scale;
}
void UpdateTitle()
{
if (updateTitle && isValid) {
window.RequestUpdateTitle();
}
}
void UpdateCaptureTimer()
{
if (captureFrameRate < 0) {
captureTimer_ = 0f;
isCaptureRequested_ = true;
} else {
captureTimer_ += Time.deltaTime;
float T = 1f / captureFrameRate;
if (captureTimer_ < T) return;
while (captureTimer_ > T) {
captureTimer_ -= T;
}
}
isCaptureRequested_ = true;
}
void UpdateRequestCapture()
{
if (!isCaptureRequested_) return;
if (captureRequestTiming == WindowTextureCaptureTiming.EveryFrame) {
RequestCapture();
}
}
void UpdateSearchTiming()
{
if (searchTiming == WindowSearchTiming.Always) {
shouldUpdateWindow = true;
}
}
void UpdateTargetWindow()
{
if (!shouldUpdateWindow) return;
switch (type)
{
case WindowTextureType.Window:
window = UwcManager.Find(partialWindowTitle, altTabWindow);
break;
case WindowTextureType.Desktop:
window = UwcManager.FindDesktop(desktopIndex);
break;
case WindowTextureType.Child:
break;
}
}
void UpdateBasicComponents()
{
if (renderer_) renderer_.enabled = isValid;
if (collider_) collider_.enabled = isValid;
}
void OnCaptured()
{
hasBeenCaptured_ = true;
}
public void RequestCapture()
{
if (!isValid) return;
isCaptureRequested_ = false;
window.captureMode = captureMode;
var priority = capturePriority;
if (priority == CapturePriority.Auto) {
priority = CapturePriority.Low;
if (window == UwcManager.cursorWindow) {
priority = CapturePriority.High;
} else if (window.zOrder < UwcSetting.MiddlePriorityMaxZ) {
priority = CapturePriority.Middle;
}
}
window.RequestCapture(priority);
}
public void RequestWindowUpdate()
{
shouldUpdateWindow = true;
}
static public RayCastResult RayCast(Vector3 from, Vector3 dir, float distance, LayerMask layerMask)
{
var ray = new Ray();
ray.origin = from;
ray.direction = dir;
RaycastHit hit;
if (Physics.Raycast(ray, out hit, distance, layerMask)) {
var collider = hit.collider;
var texture =
collider.GetComponent<UwcWindowTexture>() ??
collider.GetComponentInChildren<UwcWindowTexture>();
if (texture) {
var window = texture.window;
var meshFilter = texture.GetComponent<MeshFilter>();
if (window != null && meshFilter && meshFilter.sharedMesh) {
var localPos = texture.transform.InverseTransformPoint(hit.point);
var meshScale = 2f * meshFilter.sharedMesh.bounds.extents;
var windowLocalX = (int)((localPos.x / meshScale.x + 0.5f) * window.width);
var windowLocalY = (int)((0.5f - localPos.y / meshScale.y) * window.height);
var desktopX = window.x + windowLocalX;
var desktopY = window.y + windowLocalY;
return new RayCastResult {
hit = true,
texture = texture,
position = hit.point,
normal = hit.normal,
windowCoord = new Vector2(windowLocalX, windowLocalY),
desktopCoord = new Vector2(desktopX, desktopY),
};
}
}
}
return new RayCastResult() {
hit = false,
};
}
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 6c150c011a6544b4b8054bba7ee5e5ca
timeCreated: 1482995157
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,133 +0,0 @@
using UnityEngine;
using System.Collections.Generic;
namespace uWindowCapture
{
[RequireComponent(typeof(UwcWindowTexture))]
public class UwcWindowTextureChildrenManager : MonoBehaviour
{
UwcWindowTexture windowTexture_;
Dictionary<int, UwcWindowTexture> children_ = new Dictionary<int, UwcWindowTexture>();
void Awake()
{
windowTexture_ = GetComponent<UwcWindowTexture>();
windowTexture_.onWindowChanged.AddListener(OnWindowChanged);
OnWindowChanged(windowTexture_.window, null);
}
void Update()
{
UpdateChildren();
}
UwcWindowTexture InstantiateChild()
{
var prefab = windowTexture_.childWindowPrefab;
if (!prefab) return null;
var childTexture = Instantiate(prefab, transform);
return childTexture.GetComponent<UwcWindowTexture>();
}
void OnWindowChanged(UwcWindow newWindow, UwcWindow oldWindow)
{
if (newWindow == oldWindow) return;
if (oldWindow != null) {
oldWindow.onChildAdded.RemoveListener(OnChildAdded);
oldWindow.onChildRemoved.RemoveListener(OnChildRemoved);
foreach (var kv in children_) {
var windowTexture = kv.Value;
Destroy(windowTexture.gameObject);
}
children_.Clear();
}
if (newWindow != null) {
newWindow.onChildAdded.AddListener(OnChildAdded);
newWindow.onChildRemoved.AddListener(OnChildRemoved);
foreach (var pair in UwcManager.windows) {
var window = pair.Value;
if (
!window.isAltTabWindow &&
window.isChild &&
window.parentWindow.id == newWindow.id) {
OnChildAdded(window);
}
}
}
}
void OnChildAdded(UwcWindow window)
{
var childWindowTexture = InstantiateChild();
if (!childWindowTexture) {
Debug.LogError("childPrefab is not set or does not have UwcWindowTexture.");
return;
}
childWindowTexture.window = window;
childWindowTexture.parent = windowTexture_;
childWindowTexture.manager = windowTexture_.manager;
childWindowTexture.type = WindowTextureType.Child;
childWindowTexture.captureFrameRate = windowTexture_.captureFrameRate;
childWindowTexture.captureRequestTiming = windowTexture_.captureRequestTiming;
childWindowTexture.drawCursor = windowTexture_.drawCursor;
children_.Add(window.id, childWindowTexture);
}
void OnChildRemoved(UwcWindow window)
{
OnChildRemoved(window.id);
}
void OnChildRemoved(int id)
{
UwcWindowTexture child;
children_.TryGetValue(id, out child);
if (child) {
Destroy(child.gameObject);
children_.Remove(id);
}
}
void MoveAndScaleChildWindow(UwcWindowTexture child)
{
var window = child.window;
var parent = window.parentWindow;
var px = parent.x;
var py = parent.y;
var pw = parent.width;
var ph = parent.height;
var cx = window.x;
var cy = window.y;
var cw = window.width;
var ch = window.height;
var dz = windowTexture_.childWindowZDistance;
var desktopX = (cw - pw) * 0.5f + (cx - px);
var desktopY = (ch - ph) * 0.5f + (cy - py);
var localX = desktopX / parent.width;
var localY = -desktopY / parent.height;
var localZ = dz * (window.zOrder - window.parentWindow.zOrder) / transform.localScale.z;
child.transform.localPosition = new Vector3(localX, localY, localZ);
var widthRatio = 1f * window.width / window.parentWindow.width;
var heightRatio = 1f * window.height / window.parentWindow.height;
child.transform.localScale = new Vector3(widthRatio, heightRatio, 1f);
}
void UpdateChildren()
{
foreach (var kv in children_) {
MoveAndScaleChildWindow(kv.Value);
}
}
}
}

View File

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

View File

@ -1,68 +0,0 @@
using UnityEngine;
using UnityEngine.Assertions;
using System.Collections.Generic;
namespace uWindowCapture
{
public class UwcWindowTextureManager : MonoBehaviour
{
[SerializeField] GameObject windowPrefab;
Dictionary<int, UwcWindowTexture> windows_ = new Dictionary<int, UwcWindowTexture>();
public Dictionary<int, UwcWindowTexture> windows
{
get { return windows_; }
}
UwcWindowTextureEvent onWindowTextureAdded_ = new UwcWindowTextureEvent();
public UwcWindowTextureEvent onWindowTextureAdded
{
get { return onWindowTextureAdded_; }
}
UwcWindowTextureEvent onWindowTextureRemoved_ = new UwcWindowTextureEvent();
public UwcWindowTextureEvent onWindowTextureRemoved
{
get { return onWindowTextureRemoved_; }
}
public UwcWindowTexture AddWindowTexture(UwcWindow window)
{
if (!windowPrefab) {
Debug.LogError("windowPrefab is null.");
return null;
}
var obj = Instantiate(windowPrefab, transform);
var windowTexture = obj.GetComponent<UwcWindowTexture>();
Assert.IsNotNull(windowTexture, "Prefab must have UwcWindowTexture component.");
windowTexture.window = window;
windowTexture.manager = this;
windows_.Add(window.id, windowTexture);
onWindowTextureAdded.Invoke(windowTexture);
return windowTexture;
}
public void RemoveWindowTexture(UwcWindow window)
{
UwcWindowTexture windowTexture;
windows_.TryGetValue(window.id, out windowTexture);
if (windowTexture) {
onWindowTextureRemoved.Invoke(windowTexture);
windows_.Remove(window.id);
Destroy(windowTexture.gameObject);
}
}
public UwcWindowTexture Get(int id)
{
UwcWindowTexture window = null;
windows.TryGetValue(id, out window);
return window;
}
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 8c074065e0c377e4a879ce90ffbbd7bc
timeCreated: 1482996016
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,35 +0,0 @@
using UnityEngine;
namespace uWindowCapture
{
public static class UwcWindowUtil
{
public static Vector3 ConvertDesktopCoordToUnityPosition(int x, int y, int width, int height, float basePixel)
{
var w = width;
var h = height;
var l = x;
var t = y;
var cx = l + w / 2;
var cy = t + h / 2;
var sw = Lib.GetScreenWidth();
var sh = Lib.GetScreenHeight();
var sl = Lib.GetScreenX();
var st = Lib.GetScreenY();
var sCX = sl + sw / 2;
var sCY = st + sh / 2;
var unityX = (cx - sCX) / basePixel;
var unityY = (-cy + sCY) / basePixel;
return new Vector3(unityX, unityY, 0f);
}
public static Vector3 ConvertDesktopCoordToUnityPosition(UwcWindow window, float basePixel)
{
return ConvertDesktopCoordToUnityPosition(window.x, window.y, window.width, window.height, basePixel);
}
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 080b485de0b5e4f4a9b9dd96f9e15fe3
timeCreated: 1485064913
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,13 +0,0 @@
{
"name": "uWindowCapture.Runtime",
"references": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 56dd35f9b6f21364494ed8365264cbf6
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: e818d46e623296741b41ed6e65587e7e
folderAsset: yes
timeCreated: 1485683434
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,452 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 0
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 1
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 1
m_BakeBackend: 0
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 500
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 0
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
m_PVRDenoiserTypeAO: 0
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 0
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 4890085278179872738, guid: a7e9d195ef60119428d5cf5b1ea08568, type: 2}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &563346753
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 563346755}
- component: {fileID: 563346754}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &563346754
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 563346753}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &563346755
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 563346753}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &1433438499
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 1203044365573794, guid: f6326790e4d54234a8ee40ebe83b8b53, type: 2}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1433438505}
- component: {fileID: 1433438504}
- component: {fileID: 1433438503}
- component: {fileID: 1433438501}
- component: {fileID: 1433438502}
- component: {fileID: 1433438500}
m_Layer: 0
m_Name: Window
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1433438500
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1433438499}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f0aadff77bae0d04caf917b138266088, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!65 &1433438501
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 65321002362398676, guid: f6326790e4d54234a8ee40ebe83b8b53, type: 2}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1433438499}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 0.01}
m_Center: {x: 0.000000074505806, y: 0, z: 0.005}
--- !u!114 &1433438502
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 114594704336207032, guid: f6326790e4d54234a8ee40ebe83b8b53, type: 2}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1433438499}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6c150c011a6544b4b8054bba7ee5e5ca, type: 3}
m_Name:
m_EditorClassIdentifier:
searchTiming_: 2
type_: 0
altTabWindow_: 1
createChildWindows_: 1
childWindowPrefab: {fileID: 1000013424883394, guid: c5da36a19c9eb294189d814568b18089, type: 3}
childWindowZDistance: 0.02
partialWindowTitle_: Unity
desktopIndex_: 0
captureMode: 3
capturePriority: -1
captureRequestTiming: 1
captureFrameRate: 60
drawCursor: 1
updateTitle: 0
searchAnotherWindowWhenInvalid: 0
scaleControlType: 0
scalePer1000Pixel: 1
--- !u!23 &1433438503
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 23216827997923642, guid: f6326790e4d54234a8ee40ebe83b8b53, type: 2}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1433438499}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 4294967295
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 1ebb28175c99f574d895870a01e00d21, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &1433438504
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 33956117564142710, guid: f6326790e4d54234a8ee40ebe83b8b53, type: 2}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1433438499}
m_Mesh: {fileID: 4300002, guid: 785ad35802dd7e64cb3ac7adf3fcdfcf, type: 3}
--- !u!4 &1433438505
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 4731463458351356, guid: f6326790e4d54234a8ee40ebe83b8b53, type: 2}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1433438499}
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: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1729869122
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1729869127}
- component: {fileID: 1729869126}
- component: {fileID: 1729869124}
- component: {fileID: 1729869123}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1729869123
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1729869122}
m_Enabled: 1
--- !u!124 &1729869124
Behaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1729869122}
m_Enabled: 1
--- !u!20 &1729869126
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1729869122}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1729869127
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1729869122}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -2}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 5760aa22ae7abc64fa350f710144b812
timeCreated: 1485663982
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: e8a7b2d04f5424e49bbaea8bd936bfae
folderAsset: yes
timeCreated: 1485877824
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,423 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 1
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 1
m_BakeBackend: 0
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 500
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 0
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
m_PVRDenoiserTypeAO: 0
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 0
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 4890085278179872738, guid: 2d143077fa4a1de46974075d6b510184, type: 2}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &191731865
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 191731869}
- component: {fileID: 191731868}
- component: {fileID: 191731867}
- component: {fileID: 191731866}
- component: {fileID: 191731870}
m_Layer: 0
m_Name: Cursor
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!23 &191731866
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 191731865}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 4294967295
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 9df9684506de35d489337088e8723ed2, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!64 &191731867
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 191731865}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 4
m_Convex: 0
m_CookingOptions: 30
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
--- !u!33 &191731868
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 191731865}
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
--- !u!4 &191731869
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 191731865}
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: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &191731870
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 191731865}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 31ddce8bc61014a4fa2a969162d28f8e, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &296559673
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 296559675}
- component: {fileID: 296559674}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &296559674
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 296559673}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &296559675
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 296559673}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &1846698453
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1846698458}
- component: {fileID: 1846698457}
- component: {fileID: 1846698455}
- component: {fileID: 1846698454}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1846698454
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1846698453}
m_Enabled: 1
--- !u!124 &1846698455
Behaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1846698453}
m_Enabled: 1
--- !u!20 &1846698457
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1846698453}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1846698458
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1846698453}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -2}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: ca69741a3cfa9e14e945f50cf65ee7fd
timeCreated: 1485877833
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 6b0ea7ade5c409540b3289f99e959b1c
folderAsset: yes
timeCreated: 1485059366
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,375 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 0
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 1
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 1
m_BakeBackend: 0
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 500
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 0
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
m_PVRDenoiserTypeAO: 0
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 0
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 4890085278179872738, guid: 5f59bcf7d628f2d46b80f8989722a58a, type: 2}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &384474844
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 384474849}
- component: {fileID: 384474848}
- component: {fileID: 384474846}
- component: {fileID: 384474845}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &384474845
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 384474844}
m_Enabled: 1
--- !u!124 &384474846
Behaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 384474844}
m_Enabled: 1
--- !u!20 &384474848
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 384474844}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &384474849
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 384474844}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -6}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1372076181
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1372076183}
- component: {fileID: 1372076182}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &1372076182
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1372076181}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &1372076183
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1372076181}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &1710885569
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1710885571}
- component: {fileID: 1710885570}
- component: {fileID: 1710885573}
m_Layer: 0
m_Name: Windows
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1710885570
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1710885569}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3ad596c8e295aac46ab74933954a7679, type: 3}
m_Name:
m_EditorClassIdentifier:
windowPrefab: {fileID: 1000013424883394, guid: 2f55dbed71ab1a849aebe5c717f1de9d, type: 3}
--- !u!4 &1710885571
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1710885569}
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: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1710885573
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1710885569}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 22ec354ed39cbdc49a03d5958254f562, type: 3}
m_Name:
m_EditorClassIdentifier:
scale: 1
zMargin: 0.1
usePositionFilter: 1
useScaleFilter: 0
filter: 0.4

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 092a728b0cd2059418846d5cb2428369
timeCreated: 1482996568
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,86 +0,0 @@
using UnityEngine;
namespace uWindowCapture
{
[RequireComponent(typeof(UwcWindowTextureManager))]
public class UwcDesktopLayouter : MonoBehaviour
{
[SerializeField]
[Tooltip("meter / 1000 pixel")]
float scale = 1f;
[SerializeField]
[Tooltip("z-margin distance between windows")]
float zMargin = 0.1f;
[SerializeField]
[Tooltip("Use position filter")]
bool usePositionFilter = true;
[SerializeField]
[Tooltip("Use scale filter")]
bool useScaleFilter = false;
[SerializeField]
[Tooltip("Smoothing filter")]
float filter = 0.3f;
float basePixel
{
get { return 1000f / scale; }
}
UwcWindowTextureManager manager_;
void Awake()
{
manager_ = GetComponent<UwcWindowTextureManager>();
manager_.onWindowTextureAdded.AddListener(InitWindow);
}
void InitWindow(UwcWindowTexture windowTexture)
{
MoveWindow(windowTexture, false);
if (useScaleFilter) {
windowTexture.transform.localScale = Vector3.zero;
} else {
ScaleWindow(windowTexture, false);
}
}
void Update()
{
foreach (var kv in manager_.windows) {
var windowTexture = kv.Value;
CheckWindow(windowTexture);
MoveWindow(windowTexture, usePositionFilter);
ScaleWindow(windowTexture, useScaleFilter);
}
}
void CheckWindow(UwcWindowTexture windowTexture)
{
windowTexture.enabled = !windowTexture.window.isIconic;
}
void MoveWindow(UwcWindowTexture windowTexture, bool useFilter)
{
var window = windowTexture.window;
var pos = UwcWindowUtil.ConvertDesktopCoordToUnityPosition(window, basePixel);
pos.z = window.zOrder * zMargin;
var targetPos = transform.localToWorldMatrix.MultiplyPoint3x4(pos);
windowTexture.transform.position = (useFilter ?
Vector3.Slerp(windowTexture.transform.position, targetPos, filter) :
targetPos);
}
void ScaleWindow(UwcWindowTexture windowTexture, bool useFilter)
{
windowTexture.scaleControlType = WindowTextureScaleControlType.BaseScale;
windowTexture.scalePer1000Pixel = scale;
}
}
}

View File

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 22ec354ed39cbdc49a03d5958254f562
timeCreated: 1483332960
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: 58d6f70754bdeb644ae3a2213ea5e9f3
folderAsset: yes
timeCreated: 1528560835
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,425 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 0
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 1
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 0
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 500
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 2
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
m_PVRDenoiserTypeAO: 0
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 0
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 4890085278179872738, guid: 5a6d1f1dccf109a4b9685991ab170265, type: 2}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &708676150
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 708676154}
- component: {fileID: 708676153}
- component: {fileID: 708676152}
- component: {fileID: 708676151}
m_Layer: 0
m_Name: Desktop
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &708676151
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 708676150}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6c150c011a6544b4b8054bba7ee5e5ca, type: 3}
m_Name:
m_EditorClassIdentifier:
searchTiming_: 2
type_: 1
altTabWindow_: 0
createChildWindows_: 1
childWindowPrefab: {fileID: 0}
childWindowZDistance: 0.02
partialWindowTitle_:
desktopIndex_: 0
captureMode: 3
capturePriority: -1
captureRequestTiming: 1
captureFrameRate: 60
drawCursor: 1
updateTitle: 1
searchAnotherWindowWhenInvalid: 0
scaleControlType: 1
scalePer1000Pixel: 1
--- !u!23 &708676152
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 708676150}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 4294967295
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 1ebb28175c99f574d895870a01e00d21, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &708676153
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 708676150}
m_Mesh: {fileID: 4300002, guid: 785ad35802dd7e64cb3ac7adf3fcdfcf, type: 3}
--- !u!4 &708676154
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 708676150}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1.92, y: 1.08, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1589834183
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1589834187}
- component: {fileID: 1589834186}
- component: {fileID: 1589834185}
- component: {fileID: 1589834184}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1589834184
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1589834183}
m_Enabled: 1
--- !u!124 &1589834185
Behaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1589834183}
m_Enabled: 1
--- !u!20 &1589834186
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1589834183}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1589834187
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1589834183}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -2}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1978123367
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1978123369}
- component: {fileID: 1978123368}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &1978123368
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1978123367}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &1978123369
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1978123367}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}

View File

@ -1,9 +0,0 @@
fileFormatVersion: 2
guid: 87e0421990504a244b02937e8cedda99
timeCreated: 1528561880
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -1,79 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: GetPixel
m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _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}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
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:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []

View File

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

View File

@ -1,624 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 0
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 1
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 1
m_BakeBackend: 0
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 500
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 0
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
m_PVRDenoiserTypeAO: 0
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 0
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 4890085278179872738, guid: cb35468e4383e9e4b9b5e096f653dcc1, type: 2}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &198488023
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 198488026}
- component: {fileID: 198488025}
- component: {fileID: 198488024}
- component: {fileID: 198488027}
m_Layer: 0
m_Name: GetPixel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!23 &198488024
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 198488023}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 4294967295
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: e50e93f20679d334db5c01ec8b991d2d, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &198488025
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 198488023}
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
--- !u!4 &198488026
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 198488023}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.5, y: -0.275, z: 0}
m_LocalScale: {x: 0.45, y: 0.45, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &198488027
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 198488023}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b3213487bc925344da9376286ceae8dd, type: 3}
m_Name:
m_EditorClassIdentifier:
uwcTexture: {fileID: 1897910970}
--- !u!1 &255080313
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 255080315}
- component: {fileID: 255080314}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &255080314
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 255080313}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &255080315
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 255080313}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &1178880427
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1178880431}
- component: {fileID: 1178880430}
- component: {fileID: 1178880429}
- component: {fileID: 1178880428}
m_Layer: 0
m_Name: GetPixels
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1178880428
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1178880427}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ffa40abe77e947442b4e5246520634ee, type: 3}
m_Name:
m_EditorClassIdentifier:
uwcTexture: {fileID: 1897910970}
x: 100
y: 100
w: 64
h: 32
texture: {fileID: 0}
--- !u!23 &1178880429
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1178880427}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 4294967295
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 1ebb28175c99f574d895870a01e00d21, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &1178880430
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1178880427}
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
--- !u!4 &1178880431
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1178880427}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.5, y: 0.275, z: 0}
m_LocalScale: {x: 0.45, y: 0.45, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1570503036
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1570503041}
- component: {fileID: 1570503040}
- component: {fileID: 1570503038}
- component: {fileID: 1570503037}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1570503037
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1570503036}
m_Enabled: 1
--- !u!124 &1570503038
Behaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1570503036}
m_Enabled: 1
--- !u!20 &1570503040
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1570503036}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1570503041
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1570503036}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -2}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1897910969
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1897910974}
- component: {fileID: 1897910973}
- component: {fileID: 1897910971}
- component: {fileID: 1897910970}
m_Layer: 0
m_Name: Window
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1897910970
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1897910969}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6c150c011a6544b4b8054bba7ee5e5ca, type: 3}
m_Name:
m_EditorClassIdentifier:
searchTiming_: 2
type_: 0
altTabWindow_: 1
createChildWindows_: 0
childWindowPrefab: {fileID: 0}
childWindowZDistance: 0.02
partialWindowTitle_: Unity
desktopIndex_: 0
captureMode: 0
capturePriority: -1
captureRequestTiming: 1
captureFrameRate: 30
drawCursor: 0
updateTitle: 0
searchAnotherWindowWhenInvalid: 0
scaleControlType: 3
scalePer1000Pixel: 1
--- !u!23 &1897910971
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1897910969}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 4294967295
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 1ebb28175c99f574d895870a01e00d21, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 1
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &1897910973
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1897910969}
m_Mesh: {fileID: 4300002, guid: 785ad35802dd7e64cb3ac7adf3fcdfcf, type: 3}
--- !u!4 &1897910974
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1897910969}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.3, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 86315d0961464c64e8f253f293a7163d
timeCreated: 1480840219
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,31 +0,0 @@
using UnityEngine;
namespace uWindowCapture
{
public class UwcGetPixelExample : MonoBehaviour
{
[SerializeField] UwcWindowTexture uwcTexture;
Material material_;
void Start()
{
material_ = GetComponent<Renderer>().material;
}
void Update()
{
var window = uwcTexture.window;
if (window == null) return;
if (UwcManager.cursorWindow == window) {
var cursorPos = Lib.GetCursorPosition();
var x = cursorPos.x - window.x;
var y = cursorPos.y - window.y;
material_.color = window.GetPixel(x, y);
}
}
}
}

View File

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

View File

@ -1,48 +0,0 @@
using UnityEngine;
namespace uWindowCapture
{
public class UwcGetPixelsExample : MonoBehaviour
{
[SerializeField] UwcWindowTexture uwcTexture;
[SerializeField] int x = 100;
[SerializeField] int y = 100;
[SerializeField] int w = 64;
[SerializeField] int h = 32;
public Texture2D texture;
Color32[] colors;
void CreateTextureIfNeeded()
{
if (!texture || texture.width != w || texture.height != h)
{
colors = new Color32[w * h];
texture = new Texture2D(w, h, TextureFormat.RGBA32, false);
GetComponent<Renderer>().material.mainTexture = texture;
}
}
void Start()
{
CreateTextureIfNeeded();
}
void Update()
{
CreateTextureIfNeeded();
var window = uwcTexture.window;
if (window == null || window.width == 0) return;
// GetPixels() can be run in another thread
if (window.GetPixels(colors, x, y, w, h)) {
texture.SetPixels32(colors);
texture.Apply();
}
}
}
}

View File

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

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