unity
БесплатноБез исполняемых скриптовНе проверенUnity is a cross-platform game engine for 2D, 3D, AR and VR games, scripted in C# with a component system, Universal Render Pipeline, UI Toolkit, Addressables…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Unity
Overview
Unity is a game engine and editor. A scene holds GameObjects; behaviour comes from components, mostly C# MonoBehaviour scripts. It builds to desktop, iOS, Android, WebGL, consoles and XR headsets. The current line is Unity 6 (version numbers 6000.x; 6.3 is a long-term-support release). Projects created before Unity 6 keep working, but several APIs were renamed (see Guidelines).
Licensing as published on unity.com: Unity Personal is free for organisations with less than $200K revenue and funding in the last 12 months; Unity Pro (about $2,310 per seat per year) is required above that; Enterprise is for companies above $25M. The old Unity Plus plan no longer appears. Check the compare-plans page before quoting numbers.
Most agent work here is writing scripts and editor tooling under Assets/, so the examples are C#. Unity regenerates .csproj files and Library/; commit Assets/, Packages/ and ProjectSettings/, not Library/, Temp/ or Logs/.
Instructions
Install and open a project
Install Unity Hub from unity.com/download, then add an editor version (pick an LTS release) with the platform modules you need (Android Build Support, iOS, WebGL). Create projects from the Hub templates; the Universal 3D and Universal 2D templates use URP. Pin the editor version in ProjectSettings/ProjectVersion.txt and keep everyone on the same one.
A character controller with the Input System
New Unity 6 projects use the Input System package. If a project is set to "Input System Package (New)" under Edit > Project Settings > Player > Other Settings > Active Input Handling, calling the legacy Input.GetAxis or Input.GetKey throws an InvalidOperationException at runtime. Use input actions, or set the option to "Both" for old code.
// Assets/Scripts/PlayerController.cs
using UnityEngine;
using UnityEngine.InputSystem;
[RequireComponent(typeof(CharacterController))]
public class PlayerController : MonoBehaviour
{
[Header("Movement")]
[SerializeField] private float moveSpeed = 7f;
[SerializeField] private float jumpHeight = 1.6f;
[SerializeField] private float gravity = -25f;
[Header("Input (assign actions from an Input Actions asset)")]
[SerializeField] private InputActionReference move; // Vector2
[SerializeField] private InputActionReference jump; // Button
private CharacterController controller;
private Vector3 velocity;
private void Awake() => controller = GetComponent<CharacterController>();
private void OnEnable() { move.action.Enable(); jump.action.Enable(); }
private void OnDisable() { move.action.Disable(); jump.action.Disable(); }
private void Update()
{
if (controller.isGrounded && velocity.y < 0f)
velocity.y = -2f; // keeps the controller grounded
Vector2 input = move.action.ReadValue<Vector2>();
Vector3 direction = transform.right * input.x + transform.forward * input.y;
controller.Move(direction * (moveSpeed * Time.deltaTime));
if (jump.action.WasPressedThisFrame() && controller.isGrounded)
velocity.y = Mathf.Sqrt(jumpHeight * -2f * gravity);
velocity.y += gravity * Time.deltaTime;
controller.Move(velocity * Time.deltaTime);
}
}
Use Update for input and non-physics logic, FixedUpdate for Rigidbody forces, and cache GetComponent results in Awake.
ScriptableObjects for data
// Assets/Scripts/WeaponData.cs
using UnityEngine;
[CreateAssetMenu(fileName = "NewWeapon", menuName = "Game/Weapon Data")]
public class WeaponData : ScriptableObject
{
public string weaponName = "Iron Sword";
public Sprite icon;
public GameObject prefab;
public float damage = 12f;
public float attacksPerSecond = 1.5f;
public float range = 2f;
public AudioClip attackSound;
[TextArea] public string description;
}
Create assets with Assets > Create > Game > Weapon Data and drag them into inspector fields. Do not write to a ScriptableObject at runtime for save data: changes persist in the Editor but not in builds. Copy values into plain C# classes and serialize those.
Events between systems
// Assets/Scripts/GameEvent.cs
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
[CreateAssetMenu(menuName = "Game/Event")]
public class GameEvent : ScriptableObject
{
private readonly List<GameEventListener> listeners = new();
public void Raise()
{
for (int i = listeners.Count - 1; i >= 0; i--) // safe if a listener unregisters
listeners[i].OnEventRaised();
}
public void Register(GameEventListener l) => listeners.Add(l);
public void Unregister(GameEventListener l) => listeners.Remove(l);
}
public class GameEventListener : MonoBehaviour
{
[SerializeField] private GameEvent gameEvent;
[SerializeField] private UnityEvent response;
private void OnEnable()
Установить unity в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл unity?
Unity is a cross-platform game engine for 2D, 3D, AR and VR games, scripted in C# with a component system, Universal Render Pipeline, UI Toolkit, Addressables and DOTS. Use when a user asks to write Unity C# scripts, build a player controller, use ScriptableObjects or Addressables, set up input, run headless builds in CI, or pick a Unity version and licence.
Как установить скилл unity?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unity запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic