Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.0.2 staging -> master #78

Merged
merged 305 commits into from Mar 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
305 commits
Select commit Hold shift + click to select a range
38566de
Add focus button
mtschoen-unity Jan 19, 2017
98ef5b9
Change bounds offset to ignore Y bounds
mtschoen-unity Jan 19, 2017
6265305
Create DeviceData when proxy activates; DeviceData now binds IProxy, …
amirebrahimi Jan 20, 2017
e28483e
Move actions partial class to module
amirebrahimi Jan 20, 2017
03f5b43
Extract keyboard functionality to KeyboardModule
amirebrahimi Jan 20, 2017
f31b775
Add documentation
mtschoen-unity Jan 20, 2017
f77b23c
Add documentation
mtschoen-unity Jan 20, 2017
5004ea1
Fix formatting
mtschoen-unity Jan 20, 2017
1a682ce
Fix formatting
mtschoen-unity Jan 20, 2017
9191963
Remove billboarding
mtschoen-unity Jan 20, 2017
142ab79
Update tooltip positioning
mtschoen-unity Jan 21, 2017
96fb956
Merge remote-tracking branch 'Unity-Technologies/staging'
justinmcmichael Jan 24, 2017
0dd6cbe
Expose necessary variables to get camera and controllers' transforms.…
yipinguo Jan 24, 2017
a5d4521
Select newly created objects. (#2)
yipinguo Jan 24, 2017
8d075e0
Add gradient border to tooltip
mtschoen-unity Jan 24, 2017
40decb3
WIP
mtschoen-unity Jan 25, 2017
9f96574
Change naming convention. (#3)
yipinguo Jan 26, 2017
f4251e8
Address unity's comments. (#4)
yipinguo Feb 1, 2017
ce6e728
Merge pull request #50 from KinematicSoup/master
amirebrahimi Feb 1, 2017
d40a3a9
Fix typo
amirebrahimi Feb 1, 2017
0a9e0a1
Add alignment to ITooltip to properly align radial menu tips
mtschoen-unity Feb 6, 2017
7e07014
Adjust alignment to switch properly at the bottom of the menu
mtschoen-unity Feb 6, 2017
857cb4e
Adjust tooltip positions
mtschoen-unity Feb 6, 2017
2bcce15
Refactor InspectorObjectFieldItem to avoid null ref on Setup in SetOb…
mtschoen-unity Feb 6, 2017
1cc0dba
Fix scrolling bug
mtschoen-unity Feb 6, 2017
c97e196
Backport fixes from demo branch
mtschoen-unity Feb 8, 2017
8bf1b62
Move DirectSelection into a nested class
amirebrahimi Feb 8, 2017
a55cfb7
Merge remote-tracking branch 'origin/development' into refactors/amir…
amirebrahimi Feb 8, 2017
5333d48
Hide tooltips on dismissing radial menu (backport from demo)
mtschoen-unity Feb 9, 2017
c7c52c5
Fix formatting
mtschoen-unity Feb 9, 2017
8b0b085
Backport player scale fixes
mtschoen-unity Feb 9, 2017
af0c5b8
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 9, 2017
ee10505
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 9, 2017
1a1e1bc
Extract device input functionality to DeviceInputModule
amirebrahimi Feb 9, 2017
d01a986
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 9, 2017
c221f66
Fix formatting
mtschoen-unity Feb 9, 2017
84beecc
Move interface management into a nested class
amirebrahimi Feb 9, 2017
db31f3c
Move menu management into a nested class
amirebrahimi Feb 9, 2017
b21c919
Marking nested class members/methods internal
amirebrahimi Feb 9, 2017
5161158
Move MiniWorlds into a nested class
amirebrahimi Feb 9, 2017
8bd7b0c
Move ray management into nested class
amirebrahimi Feb 9, 2017
ccab902
Move tool management into nested class
amirebrahimi Feb 9, 2017
ca25018
Add spheres and dotted line
mtschoen-unity Feb 10, 2017
3a9ac1a
Move UI functionality into a nested class
amirebrahimi Feb 10, 2017
cd4daf2
Move Viewer functionality into nested class
amirebrahimi Feb 10, 2017
02744e2
Move workspace functionality into WorkspaceModule.
amirebrahimi Feb 10, 2017
d821230
Adjust tooltip targets; Decouple TooltipModule from InputModule
mtschoen-unity Feb 10, 2017
23d6214
Rename EditorVR callbacks for VRView
amirebrahimi Feb 10, 2017
f7ff18f
Match conventions for variable usage
amirebrahimi Feb 10, 2017
923c4bc
Remove unused usings
amirebrahimi Feb 10, 2017
7229339
Add tooltips to the inspector
mtschoen-unity Feb 10, 2017
4573120
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 10, 2017
f8b6b42
Add TooltipsEditor to enumerate and edit all tooltip text
mtschoen-unity Feb 11, 2017
5ec858e
Revert cone material
mtschoen-unity Feb 11, 2017
6d82617
Remove unnecessary files; Revert unnecessary diffs
mtschoen-unity Feb 11, 2017
fe54555
Add Undo.IncrementCurrentGroup and refactor undo behavior; Rename Che…
mtschoen-unity Feb 13, 2017
ee90ad3
Add frame material reference to RadialMenuSlot, for opacity control
dunity Feb 14, 2017
c6477a5
Add world scale visuals
mtschoen-unity Feb 14, 2017
547026a
Turn off shadows on player head
mtschoen-unity Feb 14, 2017
08d1cf5
Fix flipping issue when you cross your hands
mtschoen-unity Feb 14, 2017
0507dd0
Add No depth test shader for overlay UI; Fix issue where world scale …
mtschoen-unity Feb 15, 2017
f8c3ccc
Serialize as text
amirebrahimi Feb 15, 2017
eba813f
Remove BlockUndo fix
mtschoen-unity Feb 15, 2017
62f9680
Add new radial menu icon shader
dunity Feb 15, 2017
2ae91ef
Set new radial menu icon shader in the RadialMenuIcon material
dunity Feb 15, 2017
e8b4608
Add UI/Graphic overload for GetMaterialClone funciton; used to proper…
dunity Feb 15, 2017
06e7796
Add getDirectSelection to RadialMenu; used to test in RadialMenuUI fo…
dunity Feb 15, 2017
1fa57cd
Set RadialMenuFrame material's rendering mode to Fade
dunity Feb 15, 2017
76d55fa
Remove unnecessary WorldScaleIcons ScriptableObject
mtschoen-unity Feb 15, 2017
5787db3
Remove the radial menu slots mask object and canvas group that are n…
dunity Feb 15, 2017
3b4aaf9
Refactor BlinkVisuals
mtschoen-unity Feb 15, 2017
7c10ffc
Use IUsesViewerPivot for WorldScaleVisuals
mtschoen-unity Feb 15, 2017
19ac6c2
Add semi-transparency support, direct select support, and remove the …
dunity Feb 15, 2017
f835974
Fix scaling and scrolling of workspaces
mtschoen-unity Feb 15, 2017
c8e649f
Fix formatting
mtschoen-unity Feb 15, 2017
f792ab8
Add & assign frameRenderer inspector reference on RadialMenuSlot prefab
dunity Feb 15, 2017
6906ecd
Shrink Raidal menu prefab X+Z scale; lessen lazy follow pos/rot influ…
dunity Feb 15, 2017
ac2a80d
Reposition alternate menu origin positions on touch controller prefabs
dunity Feb 15, 2017
594ede4
Add BaseInputToEvents to consolidate copy/pasted code
amirebrahimi Feb 15, 2017
5e6d79d
Add animated semi-transparency support to RadialMenuSlot controller
dunity Feb 15, 2017
78ae243
Rename viewer pivot references to camera rig; Add doc to IProcessInpu…
amirebrahimi Feb 15, 2017
920ecac
Remove MiniWorld ray selection conditional code
amirebrahimi Feb 15, 2017
26dbd04
Migrate remaining pixel raycast functionality to module
amirebrahimi Feb 15, 2017
0898142
Resolve null reference if a component is deleted; Remove unnecessary …
mtschoen-unity Feb 15, 2017
5b894ee
Fix timing issue with moving viewer pivot
mtschoen-unity Feb 15, 2017
0c4782d
Converted StopCoroutine call to RestartCoroutine when starting the Se…
dunity Feb 16, 2017
e55045e
Reduce positional smoothing on the RadialMenu prefab
dunity Feb 16, 2017
fb9b16f
Add support for setting radial menu button rotations to be bottom-cen…
dunity Feb 16, 2017
e763369
Move vacuumables functionality to nested class
amirebrahimi Feb 16, 2017
b1102d4
Merge pull request #55 from Unity-Technologies/refactors/amir/editorv…
amirebrahimi Feb 16, 2017
fcb171d
Remove m_IconTransform field (use m_IconContainer reference that alre…
dunity Feb 16, 2017
800d5be
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 16, 2017
c0c9202
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 16, 2017
ec8525b
Swap fly for burrito
mtschoen-unity Feb 16, 2017
d954cb1
Refactor for to foreach; Add missing meta
mtschoen-unity Feb 16, 2017
f3aca6c
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 16, 2017
805a2b1
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 16, 2017
fc6c01a
Fix merge issues
mtschoen-unity Feb 16, 2017
b00a8c4
Clean up variable naming inside AnimateSemiTransparent()
dunity Feb 16, 2017
fc6d9f3
Make new classes internal
mtschoen-unity Feb 16, 2017
541012b
Update documentation for tooltipSource
mtschoen-unity Feb 16, 2017
dcdbbd1
Fix merge issues
mtschoen-unity Feb 16, 2017
a54b869
Make AnimateSemiTransparent() respect the slot's interactable state o…
dunity Feb 16, 2017
645941d
Make sFrameSemiTransparentColor member local to the AnimateSemiTransp…
dunity Feb 16, 2017
32d8525
Replace dotted line with a VRLineRenderer; Move m_LinkedTools to Edit…
mtschoen-unity Feb 16, 2017
4836729
Remove unused using in WorldScaleVisuals; Remove unused Dotted Line.png
mtschoen-unity Feb 16, 2017
230352d
Add support for returning buttons to their semi-transparent state if …
dunity Feb 16, 2017
54c3b1c
Use SerializedObject.FindProperty instead of searching for a matching…
Unity-Labs Feb 17, 2017
a16f7eb
Update icons
mtschoen-unity Feb 17, 2017
d9fbe37
Set render-queue to 9000 on the RadialMenuFrame material; Set materia…
dunity Feb 17, 2017
35ac740
Add support for showing of menu slots that house actions; fix hiding …
dunity Feb 17, 2017
c2cc2e4
Add support for handling an instant transition to the semi-transparen…
dunity Feb 17, 2017
c934d3d
Merge branch 'development' into improvements/dylanu/improve-radial-menu
dunity Feb 17, 2017
f23d2e3
Remove now unused Semitransparent coroutine field from RadialMenuSlot
dunity Feb 17, 2017
c9508df
Change WorkspaceFaces.mat to stencil ref 3 for mocking up UI
mtschoen-unity Feb 17, 2017
e89fe72
Add "Create Empty Gameobject" button
mtschoen-unity Feb 17, 2017
cfbd2bd
Replace ApplyModifiedProperties with FinalizeModifications
mtschoen-unity Feb 17, 2017
bff3d7c
Merge pull request #45 from Unity-Technologies/improvements/schoen/in…
amirebrahimi Feb 17, 2017
4c85596
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 17, 2017
bff1999
Rename viewerPivot to cameraRig
mtschoen-unity Feb 17, 2017
c928727
Add support for a delayed end to the highlight state when OnRayExit o…
dunity Feb 17, 2017
381dc4f
Update miniworld pan/scale interaction
mtschoen-unity Feb 17, 2017
a3804fd
Speed up the duration of the semi-transparent radial menu transition
dunity Feb 17, 2017
1377491
Add rotation to miniworld manipulation
mtschoen-unity Feb 18, 2017
786ac47
Merge pull request #68 from Unity-Technologies/improvements/schoen/hi…
amirebrahimi Feb 18, 2017
21030fe
Add support for keeping the radial menu semi-transparent until intera…
dunity Feb 18, 2017
3aa2742
Increase darkness & opacity of slot icons in semi-transparent mode
dunity Feb 18, 2017
6c4ef84
Add support for immediately triggering opaque-mode if no button has b…
dunity Feb 18, 2017
55867a6
Merge branch 'development' into improvements/dylanu/improve-radial-menu
dunity Feb 18, 2017
e857840
Fix miniworld scaling and rotation
mtschoen-unity Feb 18, 2017
bcb3143
Clean up references to GizmoModule
mtschoen Feb 21, 2017
ee9bdc2
Fix translation "pop" when two-hand manipulating the MiniWorld after …
mtschoen-unity Feb 21, 2017
08f1f3e
Fix moving objects in and out of MiniWorlds at scale
mtschoen-unity Feb 21, 2017
20386de
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 21, 2017
53e5c28
Clean up unrelated changes; Respond to PR feedback
mtschoen-unity Feb 21, 2017
07b4c62
Bring back IUsesHandedRayOrigin
mtschoen-unity Feb 22, 2017
f39af06
Fix transform error miniworld transition; Clean up CustomClipPlanes.s…
mtschoen-unity Feb 22, 2017
ac68e6d
Clean up conventions; Remove MiniWorld top face highlight
mtschoen-unity Feb 22, 2017
16db1e4
Remove static s_ActiveBlinkTool (use linkedtools instead)
mtschoen-unity Feb 22, 2017
9d57904
Remove ToolTipAttribute; Split ITooltipPlacement from ITooltip; Visua…
mtschoen-unity Feb 22, 2017
806dc6f
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 22, 2017
1f25dd2
Rename IUsesToolTip to ISetTooltipVisibility
mtschoen-unity Feb 22, 2017
2c568bf
Remove redundant UnityEngine; Use AddModule
mtschoen-unity Feb 22, 2017
7c7d0da
Merge pull request #56 from Unity-Technologies/features/schoen/tooltips
amirebrahimi Feb 22, 2017
9e20375
Remove read+write operation in UI-Default-NoDepth shader's stencil bl…
dunity Feb 22, 2017
ec2051b
Refactor Show + Hide functions into a single Visible property in Radi…
dunity Feb 23, 2017
6dcbf40
Fix RadialMenuSlot frame shader in interim semi-transparent state whe…
dunity Feb 23, 2017
98a159f
Merge branch 'development' into improvements/dylanu/improve-radial-menu
dunity Feb 23, 2017
ff564fb
Add new WorkspaceUI material; used to draw sprites & text throughout …
dunity Feb 23, 2017
e9e4524
Fix FocusUI prefab's text tracking & size; assign WorkspaceUI materia…
dunity Feb 23, 2017
d65e69f
Set RadialMenuFrame material queue to 9499
dunity Feb 23, 2017
64a9dea
Set WorkspaceBase root-canvas sorting order to 0, preventing the need…
dunity Feb 23, 2017
49c50c7
Assign WorkspaceUI material to FilterUI prefab
dunity Feb 23, 2017
134c701
Assign WorkspaceUI material to ZoomSlider prefab
dunity Feb 23, 2017
a238e0f
Remove stencil block from ListClipText shader; set queue to Transpare…
dunity Feb 23, 2017
195905d
Assign WorkspaceUI material to CreateEmptyUI prefab
dunity Feb 23, 2017
76b95eb
Assign WorkspaceUI material to AssetGridItem prefab
dunity Feb 23, 2017
1b964e8
Assign WorkspaceUI material to LockUI prefab
dunity Feb 23, 2017
48ac709
Assign WorkspaceUI material to ResetUI prefab
dunity Feb 23, 2017
c6d52ee
Update naming of constants in RadialMenuSlot & RadialMenuUI
dunity Feb 23, 2017
5e6a1d3
Merge branch 'improvements/dylanu/improve-radial-menu' into improveme…
dunity Feb 23, 2017
5747d09
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Feb 23, 2017
9a74f50
Add new WorkspaceClipText shader; used to draw text that will be clip…
dunity Feb 24, 2017
a5c4cea
Add new WorkspaceTextClip material
dunity Feb 24, 2017
ea53172
Add new ListItemClip material
dunity Feb 24, 2017
2af4da7
Add new WorkspaceUIMask material; used on objects masking certain wor…
dunity Feb 24, 2017
3bb9bcf
Remove custom shader queue on ListItem material
dunity Feb 24, 2017
923537e
Lower shader queue, add stencilRef & clipExtents to WorkspareUI material
dunity Feb 24, 2017
e649960
Add support for UIMaterial changes & new UIMaskMaterial throughout in…
dunity Feb 24, 2017
40f7899
Rename IlinkedTool to ILinkedObject and other live review changes
mtschoen-unity Feb 24, 2017
22c160c
Address PR changes
dunity Feb 25, 2017
f57f764
Remove direct selection implementation from RadialMenu
dunity Feb 25, 2017
03a3c31
Merge pull request #70 from Unity-Technologies/improvements/dylanu/im…
amirebrahimi Feb 27, 2017
97a181a
Only set ViveInputToEvents.active when it changes to avoid canceling …
mtschoen-unity Feb 27, 2017
513f821
Remove custom render-queue on DropDownBackground material; set shader…
dunity Feb 27, 2017
e763ef6
Assign lower alpha to RenderTextureOverlay material, allow a bit more…
dunity Feb 27, 2017
5c626b0
Disable ZWrite in WorkspaceRenderTextureOverlay shader, set renderque…
dunity Feb 27, 2017
c80b1ec
Set dropdown option button's base color to opaque-white
dunity Feb 28, 2017
4f87d3c
Set renderqueue on MenuFrame material to 9000
dunity Feb 28, 2017
9edd77f
Set camera type in mini world renderer, so that it doesn't treat it a…
amirebrahimi Feb 28, 2017
49175f0
Change world scaling minimum scale and add strafing to locomotion
amirebrahimi Feb 28, 2017
72ed117
Add blending & alpha support to to VerticalBorderGradient shader
dunity Feb 28, 2017
c35e978
Add custom alpha to MenuFaceBorder material
dunity Mar 1, 2017
c644b8d
Set RenderQueue on MenuFrame material
dunity Mar 1, 2017
2f5c992
Set new RenderQueues on main menu materials
dunity Mar 1, 2017
adafcd9
Add new MenuUIMask material; used in MenuFace prefabs ButtonsMask ima…
dunity Mar 1, 2017
c45badc
Set new UI materials in MenuButton prefab's graphic components
dunity Mar 1, 2017
3e418a1
Set new UI materials in MenuFace prefab's graphic components
dunity Mar 1, 2017
359ca46
Set WorkspaceUI material throughout Option prefab
dunity Mar 1, 2017
b012d1f
Set new RenderQueue on DropDownBackground material
dunity Mar 1, 2017
c46070a
Set new RenderQueue and enable ZWrite in GradientButtonMaskClip shader
dunity Mar 1, 2017
687a161
Set new RenderQueue on ListItemClipTransparent material
dunity Mar 1, 2017
b55ed9b
Set RenderQueue on WorkspaceUIMask material
dunity Mar 1, 2017
9923a49
Remove stencil and add ZWriting in ListClip shader
dunity Mar 1, 2017
60c98b0
Set RenderQueue on WorkspaceClipText shader
dunity Mar 1, 2017
08170f3
Set RenderQueue on ListClipText shader
dunity Mar 1, 2017
3516fb4
Remove commented line in WorkspaceClipText shader
dunity Mar 1, 2017
72f3df4
Add stencil zeroing to GradientButtonClip shader in order to prevent …
dunity Mar 1, 2017
1326f67
Rename shouldActivate to isActive
mtschoen-unity Mar 1, 2017
0c81ce7
Merge branch 'development' into improvements/dylanu/improve-ui-shader…
dunity Mar 2, 2017
0a114bd
Merge pull request #74 from Unity-Technologies/bugfixes/schoen/steam-…
amirebrahimi Mar 2, 2017
475c457
Disable Raycast Target on WorldScaleVisuals text (fixes MissingRefere…
mtschoen-unity Mar 2, 2017
5fd628c
Set RenderQueues for MainMenuActivator materials
dunity Mar 2, 2017
a875e32
Replace uses of cameraRig.localScale.x with new IUsesViewerScale inte…
mtschoen-unity Mar 2, 2017
11ea8e3
Set RenderQueue on WorkspaceBackgroundBorderGradient; draws above the…
dunity Mar 2, 2017
7c9a059
Correct improper depth position of Highlight objects; controller high…
dunity Mar 2, 2017
3a31da3
Set RenderQueue on PinnedToolButtonBorder material
dunity Mar 2, 2017
353452d
Merge branch 'development' into improvements/dylanu/improve-ui-shader…
dunity Mar 2, 2017
2d65d6a
Add new ToolTipText material
dunity Mar 2, 2017
83ca8b7
Set new RenderQueues on ToolTip materials
dunity Mar 2, 2017
9827758
Fix scaling issues with the following: blur shader, VacuumTool, Creat…
mtschoen-unity Mar 3, 2017
f892248
Speed up WorkspaceButton transition durations
dunity Mar 3, 2017
c509737
Add support for stencil comp fails to be zeroed via an inspector prop…
dunity Mar 3, 2017
aa0c35a
Add new FilterUI materials
dunity Mar 3, 2017
7dec052
Set materials on FilterButton prefab's graphic components
dunity Mar 3, 2017
5cef7c8
Fix positioning on FilterUI prefab's ButtonList contents; set new Fil…
dunity Mar 3, 2017
2cc8634
Set new RenderQueues on Project Workspace model materials
dunity Mar 3, 2017
0a6b027
Add comment about event camera clipping; Adjust tooltip dotted line U…
mtschoen-unity Mar 3, 2017
50d7558
Merge branch 'development' of https://github.com/Unity-Technologies/E…
mtschoen-unity Mar 3, 2017
dafbad0
Fix formatting in SmoothMotion
mtschoen-unity Mar 4, 2017
bba3200
Merge remote-tracking branch 'remotes/origin/improvements/dylanu/impr…
mtschoen-unity Mar 4, 2017
bf78424
Rename WorldScaleVisuals to ViewerScaleVisuals
mtschoen-unity Mar 6, 2017
45949b0
Fix remaining references to camera rig for viewer scale
amirebrahimi Mar 6, 2017
2d03ab5
Merge pull request #59 from Unity-Technologies/improvements/schoen/lo…
amirebrahimi Mar 6, 2017
06ab945
Raise Cone shader's renderQueue
dunity Mar 6, 2017
167ab41
Fix proxy-ray shader drawing order & transparent outline when hoverin…
dunity Mar 6, 2017
151d9dc
Correct naming of VRLineRenderer materials
dunity Mar 6, 2017
2c3fb89
Merge branch 'development' into improvements/dylanu/improve-ui-shader…
dunity Mar 6, 2017
711bd97
Increase grid material renderQueue order
dunity Mar 6, 2017
f29ced5
Add transitionAmountMultiplier variable to the BeginHighlight functio…
dunity Mar 7, 2017
fddeb23
Merge scripting team review changes from 0.0.1 back to development
amirebrahimi Mar 7, 2017
2708024
Match conventions
amirebrahimi Mar 7, 2017
20bf87c
Wrap classes with UNITY_EDITOR
amirebrahimi Mar 7, 2017
a68de03
Fix typos
amirebrahimi Mar 7, 2017
1466f30
Add note about #if UNITY_EDITOR
amirebrahimi Mar 7, 2017
e6612fa
Merge pull request #75 from Unity-Technologies/improvements/dylanu/im…
amirebrahimi Mar 7, 2017
d9bb821
Match conventions that dylan found in older files
amirebrahimi Mar 7, 2017
80ee6de
Hide EditorVR objects in the Hierarchy
amirebrahimi Mar 7, 2017
c939c65
Merge pull request #76 from Unity-Technologies/refactor/amir/master-d…
amirebrahimi Mar 7, 2017
a446e24
Fix blink tool
mtschoen-unity Mar 8, 2017
e95b827
Fix null m_InputToEvents exception when starting EditorVR without Ste…
dunity Mar 8, 2017
7212f6f
Merge remote-tracking branch 'origin/bugfixes/dylanu/viveproxysetupfi…
amirebrahimi Mar 8, 2017
78a4249
Move hide flags to an editor preference
amirebrahimi Mar 8, 2017
9371f1d
Merge pull request #82 from Unity-Technologies/improvements/amir/edit…
amirebrahimi Mar 9, 2017
7f89d11
Hide MiniWorldReference and MiniWorldCamera from hierarchy
mtschoen-unity Mar 10, 2017
895904e
Use ObjectUtils to apply proper hideflags to MiniWorld objects
mtschoen-unity Mar 10, 2017
740fe73
Disable occlusion culling on VRCamera
mtschoen-unity Mar 10, 2017
da27943
Fix manipulator flicker
mtschoen-unity Mar 10, 2017
abc2b50
Merge pull request #88 from Unity-Technologies/bugfixes/schoen/hide-m…
amirebrahimi Mar 10, 2017
2876f8f
Merge pull request #90 from Unity-Technologies/bugfixes/schoen/flicke…
amirebrahimi Mar 10, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions Actions/Clone.cs
Expand Up @@ -14,6 +14,8 @@ sealed class Clone : BaseAction, IUsesSpatialHash
public override void ExecuteAction()
{
var selection = Selection.gameObjects;
var clones = new GameObject[selection.Length];
var index = 0;
var bounds = ObjectUtils.GetBounds(selection);
foreach (var s in selection)
{
Expand All @@ -25,7 +27,9 @@ public override void ExecuteAction()
cloneTransform.position = cameraTransform.TransformPoint(Vector3.forward * viewDirection.magnitude)
+ cloneTransform.position - bounds.center;
addToSpatialHash(clone);
clones[index++] = clone;
}
Selection.objects = clones;
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions Actions/Paste.cs
Expand Up @@ -39,6 +39,8 @@ public override void ExecuteAction()

if (buffer != null)
{
var pastedGameObjects = new GameObject[buffer.Length];
var index = 0;
var bounds = ObjectUtils.GetBounds(buffer);
foreach (var go in buffer)
{
Expand All @@ -50,7 +52,11 @@ public override void ExecuteAction()
+ pastedTransform.position - bounds.center;
pasted.SetActive(true);
addToSpatialHash(pasted);
pastedGameObjects[index++] = pasted;
}

if (pastedGameObjects.Length > 0)
Selection.objects = pastedGameObjects;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions AssemblyInfo.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Editor/StandardInputFieldEditor.cs
Expand Up @@ -19,4 +19,4 @@ public override void OnInspectorGUI()
base.OnInspectorGUI();
}
}
}
}
135 changes: 135 additions & 0 deletions Editor/TooltipsEditor.cs
@@ -0,0 +1,135 @@
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEditor.Experimental.EditorVR.Utilities;
using UnityEngine;

namespace UnityEditor.Experimental.EditorVR.UI
{
sealed class TooltipsEditor : EditorWindow
{
readonly Dictionary<Type, ITooltip> m_TooltipAttributes = new Dictionary<Type, ITooltip>();
IEnumerable<Type> m_TooltipClasses;
readonly Dictionary<ITooltip, GameObject> m_TooltipsInPrefabs = new Dictionary<ITooltip, GameObject>();

Vector2 m_Scroll;
GUIStyle m_ButtonStyle;

[MenuItem("Edit/Project Settings/EditorVR/Tooltips")]
static void Init()
{
GetWindow<TooltipsEditor>("Tooltip Editor").Show();
}

void OnEnable()
{
m_ButtonStyle = new GUIStyle(EditorStyles.miniButton);
m_ButtonStyle.alignment = TextAnchor.MiddleLeft;
m_TooltipsInPrefabs.Clear();

foreach (var path in AssetDatabase.GetAllAssetPaths())
{
if (AssetDatabase.GetMainAssetTypeAtPath(path) == typeof(GameObject))
{
var asset = AssetDatabase.LoadAssetAtPath<GameObject>(path);
foreach (var tooltip in asset.GetComponentsInChildren<ITooltip>(true))
{
m_TooltipsInPrefabs[tooltip] = asset;
}
}
}

m_TooltipAttributes.Clear();
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
foreach (var assembly in assemblies)
{
foreach (var type in assembly.GetTypes())
{
CollectTooltipAttributes(type);
foreach (var nestedType in type.GetNestedTypes(BindingFlags.NonPublic))
{
CollectTooltipAttributes(nestedType);
}
}
}

m_TooltipClasses = ObjectUtils.GetImplementationsOfInterface(typeof(ITooltip));
}

void CollectTooltipAttributes(Type type)
{
var tooltips = type.GetCustomAttributes(typeof(ITooltip), true);
foreach (ITooltip tooltip in tooltips)
{
m_TooltipAttributes[type] = tooltip;
}
}

void OnGUI()
{
const float columnWidth = 250f;
EditorGUIUtility.labelWidth = columnWidth;

m_Scroll = GUILayout.BeginScrollView(m_Scroll);
GUILayout.Label("Tooltips in Prefabs", EditorStyles.boldLabel);
foreach (var kvp in m_TooltipsInPrefabs)
{
GUILayout.BeginHorizontal();

var tooltip = kvp.Key;
var prefab = kvp.Value;
var mb = (MonoBehaviour)tooltip;

var label = string.Format("{0}/{1}", prefab.name, mb.name);
if (GUILayout.Button(label, m_ButtonStyle, GUILayout.Width(columnWidth)))
EditorGUIUtility.PingObject(prefab);

try
{
var textProperty = tooltip.GetType().GetProperty("tooltipText");

var setter = textProperty.GetSetMethod(true);
if (setter != null)
{
EditorGUI.BeginChangeCheck();
setter.Invoke(tooltip, new object[]
{
GUILayout.TextField(tooltip.tooltipText)
});

if (EditorGUI.EndChangeCheck())
EditorUtility.SetDirty(prefab);
}
else
{
GUILayout.Label(tooltip.tooltipText);
}
}
catch
{
GUILayout.Label("Dynamic Text");
}

GUILayout.EndHorizontal();
}

EditorGUILayout.Separator();

GUILayout.Label("Tooltip Attributes", EditorStyles.boldLabel);
foreach (var kvp in m_TooltipAttributes)
{
EditorGUILayout.LabelField(kvp.Key.Name, kvp.Value.tooltipText);
}

EditorGUILayout.Separator();

GUILayout.Label("ITooltip Implementers", EditorStyles.boldLabel);
foreach (var tooltipClass in m_TooltipClasses)
{
EditorGUILayout.LabelField(tooltipClass.Name);
}

GUILayout.EndScrollView();
}
}
}
12 changes: 12 additions & 0 deletions Editor/TooltipsEditor.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Manipulators/BaseManipulator.cs
Expand Up @@ -13,6 +13,7 @@ class BaseManipulator : MonoBehaviour, IManipulator
public Action<Vector3> translate { protected get; set; }
public Action<Quaternion> rotate { protected get; set; }
public Action<Vector3> scale { protected get; set; }
public event Action dragStarted;

protected virtual void OnEnable()
{
Expand All @@ -39,6 +40,12 @@ public void AdjustScale(Vector3 cameraPosition, Matrix4x4 worldToCameraMatrix)
var delta = worldToCameraMatrix.inverse.MultiplyPoint3x4(cameraPosition - manipulatorPosition) - originalCameraPosition;
transform.localScale = Vector3.one * delta.magnitude * k_BaseManipulatorSize;
}

protected void OnDragStarted()
{
if (dragStarted != null)
dragStarted();
}
}
}
#endif
4 changes: 4 additions & 0 deletions Manipulators/DirectManipulator.cs
Expand Up @@ -27,6 +27,7 @@ public Transform target
public Action<Vector3> translate { private get; set; }
public Action<Quaternion> rotate { private get; set; }
public Action<Vector3> scale { private get; set; }
public event Action dragStarted;

void OnEnable()
{
Expand Down Expand Up @@ -62,6 +63,9 @@ private void OnHandleDragStarted(BaseHandle handle, HandleEventData eventData)
var inverseRotation = Quaternion.Inverse(rayOrigin.rotation);
m_PositionOffset = inverseRotation * (target.transform.position - rayOrigin.position);
m_RotationOffset = inverseRotation * target.transform.rotation;

if (dragStarted != null)
dragStarted();
}

private void OnHandleDragging(BaseHandle handle, HandleEventData eventData)
Expand Down
2 changes: 2 additions & 0 deletions Manipulators/ScaleManipulator.cs
Expand Up @@ -69,6 +69,8 @@ void OnHandleDragStarted(BaseHandle handle, HandleEventData eventData)
foreach (var h in m_AllHandles)
h.gameObject.SetActive(h == handle);

OnDragStarted();

dragging = true;
}

Expand Down
2 changes: 2 additions & 0 deletions Manipulators/StandardManipulator.cs
Expand Up @@ -80,6 +80,8 @@ void OnHandleDragStarted(BaseHandle handle, HandleEventData eventData)
foreach (var h in m_AllHandles)
h.gameObject.SetActive(h == handle);

OnDragStarted();

dragging = true;
}

Expand Down
2 changes: 1 addition & 1 deletion Menus/MainMenu/MainMenu.cs
Expand Up @@ -93,7 +93,7 @@ void Start()
UpdateToolButtons();
}

public void ProcessInput(ActionMapInput input, Action<InputControl> consumeControl)
public void ProcessInput(ActionMapInput input, ConsumeControlDelegate consumeControl)
{
var mainMenuInput = (MainMenuInput)input;
var rotationInput = -mainMenuInput.rotate.rawValue;
Expand Down
2 changes: 1 addition & 1 deletion Menus/MainMenu/Materials/AltMenuBase.mat
Expand Up @@ -10,7 +10,7 @@ Material:
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _EMISSION _METALLICGLOSSMAP
m_LightmapFlags: 1
m_CustomRenderQueue: -1
m_CustomRenderQueue: 9000
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
Expand Down
5 changes: 4 additions & 1 deletion Menus/MainMenu/Materials/MenuFaceBorder.mat
Expand Up @@ -10,7 +10,7 @@ Material:
m_Shader: {fileID: 4800000, guid: 4706f2caa984a604488fea3e68e21940, type: 3}
m_ShaderKeywords: _EMISSION _METALLICGLOSSMAP _NORMALMAP
m_LightmapFlags: 1
m_CustomRenderQueue: -1
m_CustomRenderQueue: 9001
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
Expand Down Expand Up @@ -76,6 +76,9 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- first:
name: _Alpha
second: 0.945
- first:
name: _BumpScale
second: 1.5
Expand Down
2 changes: 1 addition & 1 deletion Menus/MainMenu/Materials/MenuFaceTitleIcon.mat
Expand Up @@ -10,7 +10,7 @@ Material:
m_Shader: {fileID: 4800000, guid: 269bee83d6b662e489c098a4f0d9af32, type: 3}
m_ShaderKeywords: _EMISSION _METALLICGLOSSMAP _NORMALMAP
m_LightmapFlags: 1
m_CustomRenderQueue: -1
m_CustomRenderQueue: 9001
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
Expand Down
2 changes: 1 addition & 1 deletion Menus/MainMenu/Materials/MenuFacesBlur.mat
Expand Up @@ -10,7 +10,7 @@ Material:
m_Shader: {fileID: 4800000, guid: 1bc55feb3f493374ca90e594b518edb9, type: 3}
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _EMISSION _METALLICGLOSSMAP
m_LightmapFlags: 1
m_CustomRenderQueue: -1
m_CustomRenderQueue: 9002
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
Expand Down
2 changes: 1 addition & 1 deletion Menus/MainMenu/Materials/MenuFrame.mat
Expand Up @@ -10,7 +10,7 @@ Material:
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _EMISSION
m_LightmapFlags: 1
m_CustomRenderQueue: -1
m_CustomRenderQueue: 9001
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
Expand Down
2 changes: 1 addition & 1 deletion Menus/MainMenu/Materials/MenuInputArrows.mat
Expand Up @@ -10,7 +10,7 @@ Material:
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _ALPHABLEND_ON _EMISSION
m_LightmapFlags: 1
m_CustomRenderQueue: 3000
m_CustomRenderQueue: 9001
stringTagMap:
RenderType: Transparent
m_SavedProperties:
Expand Down
49 changes: 49 additions & 0 deletions Menus/MainMenu/Materials/MenuUIMask.mat
@@ -0,0 +1,49 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: MenuUIMask
m_Shader: {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _EMISSION
m_LightmapFlags: 1
m_CustomRenderQueue: 9104
stringTagMap: {}
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
- first:
name: _MainTex
second:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- first:
name: _ColorMask
second: 15
- first:
name: _Stencil
second: 0
- first:
name: _StencilComp
second: 8
- first:
name: _StencilOp
second: 0
- first:
name: _StencilReadMask
second: 255
- first:
name: _StencilWriteMask
second: 255
- first:
name: _UseUIAlphaClip
second: 0
m_Colors:
- first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}
8 changes: 8 additions & 0 deletions Menus/MainMenu/Materials/MenuUIMask.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.