mirror of
https://github.com/Mukheem/TwinTurbine.git
synced 2025-01-20 09:11:50 +01:00
98 lines
5.4 KiB
HTML
98 lines
5.4 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<title>Proxima Inspector</title>
|
||
<link rel="icon" href="../icons/favicon.ico" />
|
||
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
|
||
<meta property="og:type" content="website">
|
||
<meta name="description" property="og:description" content="Proxima Inspector lets you connect to your live game from a web browser to inspect and edit any property. Just like the Unity editor!">
|
||
<meta name="image" property="og:image" content="../images/proxima-1200x630.png">
|
||
<meta http-equiv="content-security-policy" content="">
|
||
<link href="../_app/immutable/assets/_layout-1f0a7e97.css" rel="stylesheet">
|
||
<link href="../_app/immutable/assets/_layout-6847360b.css" rel="stylesheet">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</head>
|
||
<body>
|
||
<div>
|
||
|
||
|
||
<div class="flex flex-col items-center text-gray-300 w-full min-h-screen bg-[#222]"><div class="flex w-full justify-center items-start bg-[#111] text-white fixed z-20"><div class="flex grow justify-between items-center max-w-[1600px] p-4"><a href="https://www.unityproxima.com"><img src="../images/proxima_logo.png" class="w-[150px]" alt="Logo"></a>
|
||
<button class="lg:hidden"><img class="w-10" src="../icons/menu.png" alt="Menu"></button>
|
||
<div class="flex gap-10 items-center max-lg:hidden">
|
||
<a href="https://assetstore.unity.com/publishers/72095?aid=1101lqSYn" class="text-xl font-logo" referrerpolicy="origin" target="_blank" rel="external">Store</a>
|
||
|
||
<a href="https://app.unityproxima.com/connection" class="text-xl font-logo" referrerpolicy="origin" target="_blank" rel="external">Demo</a>
|
||
|
||
<a class="text-xl font-logo" href="../docs.html">Docs</a>
|
||
|
||
<a href="https://discord.gg/VM9cWJ9rjH" class="" referrerpolicy="origin" target="_blank" rel="external"><img width="100px" class="mt-1" src="../icons/discord.png" alt=""></a></div></div>
|
||
</div>
|
||
|
||
<div class="pt-[83px] w-full h-full flex flex-col items-center"><div class="w-full flex flex-col items-start min-h-screen max-w-[1600px] px-4"><button class="text-white font-body pt-5 lg:hidden">Go to page ></button>
|
||
<div class="flex w-full min-h-full relative"><div class="h-full fixed border-r-orange-400 bg-[#222] border-r-2 max-lg:hidden"><div class="flex pt-10 flex-col w-[300px] gap-2 border-[#21a6f0] min-h-0 h-full overflow-auto"><b class="text-orange-400">Getting Started</b>
|
||
<a href="../docs.html" class="svelte-yue6wq">Installation</a>
|
||
<a href="../docs/features.html" class="svelte-yue6wq">Feature Overview</a>
|
||
|
||
<b class="text-orange-400 mt-5">Connection</b>
|
||
<a href="../docs/supported_platforms.html" class="svelte-yue6wq">Supported Platforms</a>
|
||
<a href="../docs/connect.html" class="svelte-yue6wq">Connect to Your Game</a>
|
||
<a href="../docs/security.html" class="svelte-yue6wq">Security Considerations</a>
|
||
<a href="../docs/all_config.html" class="svelte-yue6wq">All Configuration Options</a>
|
||
|
||
<b class="text-orange-400 mt-5">Inspector</b>
|
||
<a href="../docs/inspector.html" class="svelte-yue6wq">GameObject Inspector</a>
|
||
<a href="../docs/buttons.html" class="svelte-yue6wq">Adding Buttons</a>
|
||
<a href="../docs/faq.html" class="svelte-yue6wq">Frequently Asked Questions</a>
|
||
|
||
<b class="text-orange-400 mt-5">Logs</b>
|
||
<a href="../docs/logs.html" class="svelte-yue6wq">Log Viewer</a>
|
||
<a href="../docs/viewing_logs_offline.html" class="svelte-yue6wq">Viewing Logs Offline</a>
|
||
|
||
<b class="text-orange-400 mt-5">Console</b>
|
||
<a href="../docs/console.html" class="svelte-yue6wq">Console Window</a>
|
||
<a href="../docs/console_built_in.html" class="svelte-yue6wq">Built-in Commands</a>
|
||
<a href="../docs/console_custom.html" class="svelte-yue6wq">Custom Commands</a>
|
||
|
||
<b class="text-orange-400 mt-5">Extras</b>
|
||
<a href="../docs/deeplinks.html" class="svelte-yue6wq">Deep Links</a>
|
||
|
||
<div class="h-[200px] shrink-0"></div></div></div>
|
||
|
||
|
||
<div class="flex flex-col w-full lg:pl-10 py-10 lg:ml-[300px]"><div class="doc flex flex-col gap-5 svelte-yue6wq"><h1>Inspector Buttons</h1>
|
||
|
||
<p>You can add buttons to your components that appear in the inspector and perform some action.</p>
|
||
|
||
<video muted autoplay loop playsinline><source src="https://www.unityproxima.com/docs/buttons.mp4"></video>
|
||
|
||
<h2>How to add a button</h2>
|
||
|
||
<ul class="list-disc ml-8"><li>Create a method in your MonoBehaviour. It cannot be static.</li>
|
||
<li>Add the ProximaButton attribute, with the text that you want to appear.</li>
|
||
<li>Buttons will appear in order at the top of the component in the inspector.</li></ul>
|
||
|
||
<div class="bg-[#1d1d1d] p-3 text-zinc-300 font-mono">[<span class="text-green-400">ProximaButton</span>(<span class="text-orange-400">"Toggle Spin"</span>)]<br>
|
||
<span class="text-blue-300">void</span> <span class="text-yellow-200">Toggle</span>()<br>
|
||
{<br>
|
||
<span class="text-blue-300"> _spin</span> = !<span class="text-blue-300">_spin</span>;<br>
|
||
}<br></div></div></div></div>
|
||
</div>
|
||
<div class="h-[200px] flex flex-col"><p class="text-gray-400 m-10">© 2023 Virtual Maker Corporation</p></div></div></div>
|
||
|
||
|
||
|
||
</div>
|
||
</body>
|
||
</html>
|