What I want is a light only affect specific Atom, in unity I have a game object A, and I create a layer and align it to a game object B, so if I can change a light's culling mask, I can make this light only affect object A or object B, is it possible? tried to create a script, but I'm really new to script development, I just can't figure out how to access the Light component, or is it even possible?
Unity - Scripting API:
Unity is the ultimate game development platform. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers.
docs.unity3d.com