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

Added Unity Editor Remote #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Main/Unity/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Some of the shortcuts require Unity 2020 and above.
Binary file added Main/Unity/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions Main/Unity/layout.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<layout>
<row>
<button text="Undo" ontap="undo" />
<button text="Redo" ontap="redo" />
<button text="Maximize" ontap="maximize" />
</row>
<row>
<button text="Copy" ontap="copy" />
<button text="Cut" ontap="cut" />
<button text="Duplicate" ontap="duplicate" />
</row>
<row>
<button text="Paste" ontap="paste" />
<button text="Paste as Child" ontap="pasteChild" />
</row>
<row>
<button text="Frame Selection" ontap="frame" />
<button text="Lock View to Selection" ontap="frameLock" />
</row>
<row>
<button text="Align to View" ontap="alignView" />
<button text="Move to View" ontap="moveView" />
</row>
<row>
<button text="Play" ontap="play" />
<button text="Pause" ontap="pause" />
</row>
<row>
<button text="Create Empty Parent" ontap="createParent" />
</row>
</layout>
4 changes: 4 additions & 0 deletions Main/Unity/meta.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
meta.name: Unity
meta.author: brayden jenkins
meta.description: Unity Editor Remote
meta.tags.category: utility
57 changes: 57 additions & 0 deletions Main/Unity/remote.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
local kb = libs.keyboard;

actions.undo = function ()
kb.stroke("Ctrl","Z");
end

actions.redo = function ()
kb.stroke("Ctrl","Y");
end

actions.maximize = function ()
kb.stroke("Shift","Space");
end

actions.copy = function ()
kb.stroke("Ctrl","C");
end

actions.cut = function ()
kb.stroke("Ctrl","X");
end

actions.duplicate = function ()
kb.stroke("Ctrl","D");
end

actions.paste = function ()
kb.stroke("Ctrl", "V");
end

actions.frame = function ()
kb.stroke("F");
end

actions.frameLock = function ()
kb.stroke("Shift","F");
end

actions.alignView = function ()
kb.stroke("Ctrl","Shift","F");
end

actions.moveView = function ()
kb.stroke("Ctrl","Alt","F");
end

actions.play = function ()
kb.stroke("Ctrl","P");
end

actions.pause = function ()
kb.stroke("Ctrl","Shift","P");
end

actions.createParent = function ()
kb.stroke("Ctrl", "Shift", "G");
end