Skip to content

Latest commit

 

History

History
44 lines (38 loc) · 1.84 KB

File metadata and controls

44 lines (38 loc) · 1.84 KB

AGENTS.md - Unity Learning Project

Project overview

  • Unity 2022.3.62f3c1 with com.unity.feature.development enabled
  • Learning project: 17+ lesson scripts across two categories (入门/基础), one scene, a few prefabs
  • No tests, linting, formatters, typechecking, or CI — open in Unity Editor to build/run

Project structure

Assets/
  Scripts/入门/          — beginner lessons (lesson1–10)
  Scripts/基础/          — intermediate lessons (lesson11–17)
  Scenes/               — SampleScene.unity
  Resources/
    Prefabs/            — car, pyramid, tank prefabs
    Audios/             — BGM.mp3
    Materials/          — m1.mat
    Texts/              — test.txt
    Textures/           — test.png
  Standard Assets/      — .unitypackage files (import via Unity Editor)
  Editor/               — (empty, for editor scripts)
  Plugins/              — (empty, for platform plugins)
  StreamingAssets/      — (empty, for raw assets)

Unity project quirks

  • Never delete .meta files — Unity uses them to track asset GUIDs
  • No .gitignore — must add one to ignore: Library/, Temp/, obj/, Logs/, *.csproj, *.sln (user-specific)
  • .vsconfig requests the "Managed Game" workload for Visual Studio
  • UnityLearning.sln is regenerated by Unity — do not edit manually

Scripting conventions

  • Scripts use Chinese characters in class names and filenames (e.g., lesson1_生命周期函数.cs)
  • Method bodies use print() for debug output

No automated tooling

  • No tests, linting, formatters, typechecking, or CI
  • No npm/nuget/pip — Unity manages packages via Package Manager (see Packages/manifest.json)
  • Open project in Unity Editor to build/run

Assets

  • Prefabs live under Assets/Resources/Prefabs/
  • Scenes under Assets/Scenes/
  • Keep new scripts in Assets/Scripts/<topic>/