{"id":22122101,"url":"https://github.com/talsidor/inspector-script","last_synced_at":"2025-07-22T12:33:49.259Z","repository":{"id":265869561,"uuid":"850634305","full_name":"Talsidor/inspector-script","owner":"Talsidor","description":"Lua-powered, no-fuss micro scripts in the Unity Inspector.","archived":false,"fork":false,"pushed_at":"2024-09-02T05:15:09.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-15T06:58:45.477Z","etag":null,"topics":["lua","unity3d","upm-package"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Talsidor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-01T10:53:08.000Z","updated_at":"2024-09-02T05:15:13.000Z","dependencies_parsed_at":"2024-12-01T12:25:47.467Z","dependency_job_id":null,"html_url":"https://github.com/Talsidor/inspector-script","commit_stats":null,"previous_names":["talsidor/inspector-script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Talsidor/inspector-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talsidor%2Finspector-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talsidor%2Finspector-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talsidor%2Finspector-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talsidor%2Finspector-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Talsidor","download_url":"https://codeload.github.com/Talsidor/inspector-script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Talsidor%2Finspector-script/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266496399,"owners_count":23938711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","unity3d","upm-package"],"created_at":"2024-12-01T15:17:26.055Z","updated_at":"2025-07-22T12:33:49.209Z","avatar_url":"https://github.com/Talsidor.png","language":"C#","readme":"# InspectorScript\n\n\u003e Lua-powered, no-fuss micro scripts in the Unity3D Inspector.\n\nYou might have to **click** on this GIF to play it:\n![Unity_Z8J0RDGeIz](https://github.com/user-attachments/assets/99ee0e15-bbfa-4f80-894e-2a993377f808)\n\n# 1. Installation\n\n## 1.1. Compatibility\n\nInspectorScript should work in any version of Unity that supports MoonScript and the Unity Package Manager.\nBut it was built in, and so far has only been tested in, Unity 2022.3.\n\n## 1.2. Dependencies\n\nThis package requires that your project has access to MoonSharp.\nSome suggested ways to get MoonSharp:\n1. Via the Unity Package Manager, by following the instructions on [k0dep's UPM-compatible fork of MoonSharp](https://github.com/k0dep/MoonSharp/) (Recommended)\n2. Via NuGet, by following the first step of [MoonSharp's Getting Started guide](https://www.moonsharp.org/getting_started.html)\n3. Manually, by downloading a release from [MoonSharp's GitHub](https://github.com/moonsharp-devs/moonsharp/releases)\n\n## 1.3. Installing via the Package Manager\n\nThis repository is set up to be Unity Package Manager compatible.\nTo install via the Package Manager:\n1. Open Package Manager window in your Unity Editor.\n2. Click the '+' icon in the top left and select 'Add package from git URL...'\n3. Enter 'https://github.com/Talsidor/inspector-script.git' and click Add.\n4. Confirm you can now use Inspector Script by opening the 'Examples' scene, or adding an Inspector Script component to a Game Object.\n\nAlternatively, you can also simply checkout or download this repository and include it in your Unity Project's files.\n\n----\n\n# 2. Example Scene\n\nThe 'Examples' scene included in this package contains 5 examples of InspectorScript's functionality. Open and run the scene to see the scripts in motion, and select each of the Cube objects under the `[Examples]` scene object to see their scripts.\n\nTry making some changes to these scripts! Changes made in Play Mode will take effect immediately, but beware that like all Unity objects, changes made during Play Mode will be lost when leaving Play Mode.\n\n----\n\n# 3. Getting Started\n\n## 3.1. Supported object properties:\n- `pos` - this object's local position\n- `rot` - this object's local rotation (in euler angles)\n- `scale` - this object's local scale\n\nAll three of these properties are Vector3s. Like with regular Unity Vector3s, you can get each axis with '.x', '.y', and '.z'. But unlike usual Transform Vector3s, you can also set these values.\n\n### Examples\n\n- Get value\n  ```\n  var x = pos.x\n  ```\n- Set value\n  ```\n  rot.x = 5\n  ```\n- Increment value\n  ```\n  scale.y = scale.y + 0.1\n  ```\n\n## 3.2. Available Unity properties:\n- `time` - seconds since play started\n- `delta` - fraction of time taken by this frame\n\n### Examples\n\n- Move forward at one unit per second\n  ```\n  pos.z = pos.z + delta\n  ```\n- Make Y position equal to seconds elapsed\n  ```\n  pos.y = time\n  ```\n\n## 3.3. Lua functions confirmed working:\n- `print(x)` - Routed to log the passed argument to the Unity Debug Console\n- `math.sin(x)` - Can be used for sine wave functionality directly in Lua\n- `if` statements - See example either below or in the 'Examples' scene\n\n### Examples\n\n- Log value of z position every frame\n  ```\n  print(pos.z)\n  ```\n- Oscillate x between -1 and 1 once per second\n  ```\n  pos.x = math.sin(time)\n  ```\n- If statement\n  ```\n  if (pos.y \u003c -10) then\n    pos.y = 0\n  end\n  ```\n\n----\n\nTo learn more about the Lua interpreter backing InspectorScript, check out MoonSharp's [Getting Started](https://www.moonsharp.org/getting_started.html) guide.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalsidor%2Finspector-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalsidor%2Finspector-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalsidor%2Finspector-script/lists"}