-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: The FactorIndicator is now attached to the target object. The…
… factor is now only visible when you enter the mode, by putting 2 fingers on the screen. The tool is now designed to be fully instantiated, you just need to reference the requested prefabs. Fixed: A problem with the function, now the object is well constrained by its scale limits.
- Loading branch information
Showing
32 changed files
with
5,136 additions
and
343 deletions.
There are no files selected for viewing
277 changes: 225 additions & 52 deletions
277
Assets/AR-Object-Control-Tool/Prefabs/AR-Object-Control-Tool.prefab
Large diffs are not rendered by default.
Oops, something went wrong.
305 changes: 305 additions & 0 deletions
305
Assets/AR-Object-Control-Tool/Prefabs/ScaleFactorIndicator.prefab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,305 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!1 &4991700540502920160 | ||
GameObject: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
serializedVersion: 6 | ||
m_Component: | ||
- component: {fileID: 4991700540502920161} | ||
- component: {fileID: 4991700540502920163} | ||
- component: {fileID: 4991700540502920162} | ||
m_Layer: 3 | ||
m_Name: ValueText | ||
m_TagString: Untagged | ||
m_Icon: {fileID: 0} | ||
m_NavMeshLayer: 0 | ||
m_StaticEditorFlags: 0 | ||
m_IsActive: 1 | ||
--- !u!224 &4991700540502920161 | ||
RectTransform: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 4991700540502920160} | ||
m_LocalRotation: {x: 0, y: -0.7071068, z: 0.7071068, w: 0} | ||
m_LocalPosition: {x: 0, y: 0, z: 0.004} | ||
m_LocalScale: {x: 1, y: 1, z: 1} | ||
m_ConstrainProportionsScale: 0 | ||
m_Children: [] | ||
m_Father: {fileID: 4991700540966865764} | ||
m_RootOrder: 0 | ||
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 180} | ||
m_AnchorMin: {x: 0.5, y: 0.5} | ||
m_AnchorMax: {x: 0.5, y: 0.5} | ||
m_AnchoredPosition: {x: 0.001, y: 0.15} | ||
m_SizeDelta: {x: 9.212, y: 3.874} | ||
m_Pivot: {x: 0.5, y: 0.5} | ||
--- !u!23 &4991700540502920163 | ||
MeshRenderer: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 4991700540502920160} | ||
m_Enabled: 1 | ||
m_CastShadows: 0 | ||
m_ReceiveShadows: 0 | ||
m_DynamicOccludee: 1 | ||
m_StaticShadowCaster: 0 | ||
m_MotionVectors: 1 | ||
m_LightProbeUsage: 1 | ||
m_ReflectionProbeUsage: 1 | ||
m_RayTracingMode: 2 | ||
m_RayTraceProcedural: 0 | ||
m_RenderingLayerMask: 1 | ||
m_RendererPriority: 0 | ||
m_Materials: | ||
- {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, 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: 1 | ||
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!114 &4991700540502920162 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 4991700540502920160} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 9541d86e2fd84c1d9990edf0852d74ab, type: 3} | ||
m_Name: | ||
m_EditorClassIdentifier: | ||
m_Material: {fileID: 0} | ||
m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
m_RaycastTarget: 1 | ||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} | ||
m_Maskable: 1 | ||
m_OnCullStateChanged: | ||
m_PersistentCalls: | ||
m_Calls: [] | ||
m_text: x1 | ||
m_isRightToLeft: 0 | ||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} | ||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} | ||
m_fontSharedMaterials: [] | ||
m_fontMaterial: {fileID: 0} | ||
m_fontMaterials: [] | ||
m_fontColor32: | ||
serializedVersion: 2 | ||
rgba: 4278190080 | ||
m_fontColor: {r: 0, g: 0, b: 0, a: 1} | ||
m_enableVertexGradient: 0 | ||
m_colorMode: 3 | ||
m_fontColorGradient: | ||
topLeft: {r: 1, g: 1, b: 1, a: 1} | ||
topRight: {r: 1, g: 1, b: 1, a: 1} | ||
bottomLeft: {r: 1, g: 1, b: 1, a: 1} | ||
bottomRight: {r: 1, g: 1, b: 1, a: 1} | ||
m_fontColorGradientPreset: {fileID: 0} | ||
m_spriteAsset: {fileID: 0} | ||
m_tintAllSprites: 0 | ||
m_StyleSheet: {fileID: 0} | ||
m_TextStyleHashCode: -1183493901 | ||
m_overrideHtmlColors: 0 | ||
m_faceColor: | ||
serializedVersion: 2 | ||
rgba: 4294967295 | ||
m_fontSize: 34.65 | ||
m_fontSizeBase: 36 | ||
m_fontWeight: 400 | ||
m_enableAutoSizing: 1 | ||
m_fontSizeMin: 18 | ||
m_fontSizeMax: 72 | ||
m_fontStyle: 1 | ||
m_HorizontalAlignment: 2 | ||
m_VerticalAlignment: 512 | ||
m_textAlignment: 65535 | ||
m_characterSpacing: 0 | ||
m_wordSpacing: 0 | ||
m_lineSpacing: 0 | ||
m_lineSpacingMax: 0 | ||
m_paragraphSpacing: 0 | ||
m_charWidthMaxAdj: 0 | ||
m_enableWordWrapping: 1 | ||
m_wordWrappingRatios: 0.4 | ||
m_overflowMode: 0 | ||
m_linkedTextComponent: {fileID: 0} | ||
parentLinkedComponent: {fileID: 0} | ||
m_enableKerning: 1 | ||
m_enableExtraPadding: 0 | ||
checkPaddingRequired: 0 | ||
m_isRichText: 1 | ||
m_parseCtrlCharacters: 1 | ||
m_isOrthographic: 0 | ||
m_isCullingEnabled: 0 | ||
m_horizontalMapping: 0 | ||
m_verticalMapping: 0 | ||
m_uvLineOffset: 0 | ||
m_geometrySortingOrder: 0 | ||
m_IsTextObjectScaleStatic: 0 | ||
m_VertexBufferAutoSizeReduction: 0 | ||
m_useMaxVisibleDescender: 1 | ||
m_pageToDisplay: 1 | ||
m_margin: {x: -0.0022373188, y: 0, z: 0, w: 0} | ||
m_isUsingLegacyAnimationComponent: 0 | ||
m_isVolumetricText: 0 | ||
_SortingLayer: 0 | ||
_SortingLayerID: 0 | ||
_SortingOrder: 0 | ||
m_hasFontAssetChanged: 0 | ||
m_renderer: {fileID: 4991700540502920163} | ||
m_maskType: 0 | ||
--- !u!1 &4991700540966865763 | ||
GameObject: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
serializedVersion: 6 | ||
m_Component: | ||
- component: {fileID: 4991700540966865764} | ||
- component: {fileID: 4991700540966865767} | ||
- component: {fileID: 4991700540966865766} | ||
- component: {fileID: 4991700540966865765} | ||
m_Layer: 3 | ||
m_Name: Background | ||
m_TagString: Untagged | ||
m_Icon: {fileID: 0} | ||
m_NavMeshLayer: 0 | ||
m_StaticEditorFlags: 0 | ||
m_IsActive: 1 | ||
--- !u!4 &4991700540966865764 | ||
Transform: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 4991700540966865763} | ||
m_LocalRotation: {x: 0, y: -0.7071068, z: 0.7071068, w: 0} | ||
m_LocalPosition: {x: 0, y: 0, z: 0} | ||
m_LocalScale: {x: 0.05, y: 0.05, z: 0.05} | ||
m_ConstrainProportionsScale: 0 | ||
m_Children: | ||
- {fileID: 4991700540502920161} | ||
m_Father: {fileID: 4991700541301549224} | ||
m_RootOrder: 0 | ||
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 180} | ||
--- !u!33 &4991700540966865767 | ||
MeshFilter: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 4991700540966865763} | ||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} | ||
--- !u!23 &4991700540966865766 | ||
MeshRenderer: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 4991700540966865763} | ||
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: 1 | ||
m_RendererPriority: 0 | ||
m_Materials: | ||
- {fileID: 2100000, guid: 89a5a7cd043e3aa43b48a5d0baacc31a, 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: 1 | ||
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 &4991700540966865765 | ||
MeshCollider: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 4991700540966865763} | ||
m_Material: {fileID: 0} | ||
m_IsTrigger: 0 | ||
m_Enabled: 1 | ||
serializedVersion: 4 | ||
m_Convex: 0 | ||
m_CookingOptions: 30 | ||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} | ||
--- !u!1 &4991700541301549239 | ||
GameObject: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
serializedVersion: 6 | ||
m_Component: | ||
- component: {fileID: 4991700541301549224} | ||
m_Layer: 3 | ||
m_Name: ScaleFactorIndicator | ||
m_TagString: Untagged | ||
m_Icon: {fileID: 0} | ||
m_NavMeshLayer: 0 | ||
m_StaticEditorFlags: 0 | ||
m_IsActive: 1 | ||
--- !u!4 &4991700541301549224 | ||
Transform: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 4991700541301549239} | ||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
m_LocalPosition: {x: 0, y: 0.7, z: 0} | ||
m_LocalScale: {x: 1, y: 1, z: 1} | ||
m_ConstrainProportionsScale: 0 | ||
m_Children: | ||
- {fileID: 4991700540966865764} | ||
m_Father: {fileID: 0} | ||
m_RootOrder: 0 | ||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
7 changes: 7 additions & 0 deletions
7
Assets/AR-Object-Control-Tool/Prefabs/ScaleFactorIndicator.prefab.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!1 &6848335622158894120 | ||
GameObject: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
serializedVersion: 6 | ||
m_Component: | ||
- component: {fileID: 6848335622158894121} | ||
- component: {fileID: 6848335622158894123} | ||
m_Layer: 3 | ||
m_Name: UICamera | ||
m_TagString: Untagged | ||
m_Icon: {fileID: 0} | ||
m_NavMeshLayer: 0 | ||
m_StaticEditorFlags: 0 | ||
m_IsActive: 1 | ||
--- !u!4 &6848335622158894121 | ||
Transform: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 6848335622158894120} | ||
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: 0 | ||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
--- !u!20 &6848335622158894123 | ||
Camera: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 6848335622158894120} | ||
m_Enabled: 1 | ||
serializedVersion: 2 | ||
m_ClearFlags: 3 | ||
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: 10 | ||
m_CullingMask: | ||
serializedVersion: 2 | ||
m_Bits: 8 | ||
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.