unity-light

Create, configure, and toggle Unity scene lights programmatically.

1|Updated Feb 22, 2024
One-click install
npx skills add https://github.com/Stardust-liu/EDC_Framework --skill unity-light-stardust-liu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-light
Source: https://github.com/Stardust-liu/EDC_Framework/tree/main/Assets/AI/Unity-Skills-1.5.5/unity-skills/skills/light
Command: npx skills add https://github.com/Stardust-liu/EDC_Framework --skill unity-light-stardust-liu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity developers spend time manually configuring lights in scenes; this skill provides programmable control to create and adjust lights consistently and efficiently.

Core Features & Use Cases

  • Create lights with specified type, position, color, and shadows.
  • Batch configure multiple lights in one call for performance and consistency.
  • Retrieve light information and enumerate lights in the scene.

Quick Start

Create a directional light named Sun with intensity 1.2 and soft shadows.

Frequently Asked Questions about unity-light

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I batch configure multiple Unity scene lights programmatically?

You can batch configure multiple Unity scene lights programmatically by using a scripting command that applies property updates across selected light objects simultaneously. This approach ensures consistent settings and improves performance over manual adjustments.

Can I create different types of lights in Unity through code?

Yes, you can create directional, point, spot, and area lights in Unity through code. The scripting interface allows you to specify the light type during creation and configure its position, color, and shadow settings in the same call.

What is the best way to automate toggling light shadows and intensity in Unity?

Automating light shadows and intensity in Unity is best handled by a scripting approach that updates these properties programmatically. You can enable or disable shadows and adjust intensity values across multiple lights without manual scene editing.

Does Unity scripting support retrieving light information and discovering lights in a scene?

Unity scripting supports retrieving light information and discovering lights in a scene by enumerating existing light objects. You can query light properties such as type, range, and color programmatically to audit your current scene setup.

Are there safety checks when updating Unity lighting configurations via script?

Yes, programmatic Unity lighting updates can include optional safety checks. These checks help validate light configurations before applying changes, preventing invalid property values from breaking your scene setup during batch operations.