© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
5 replies
Zelf

Unity aim down sights

Hello, I am currently struggling with some logic in developing my first person shooter on unity. I'm working on getting the gun to aim down sights for different optics without having to manually set a position for each of the available optics the gun can use. Does anyone have any idea on how I can take a point from a child game object (the optic) and have the parent game object (the gun) move so that the child game object is in line with the middle of the screen.

I'm not asking for the code itself, just the logic.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Jittery up and down transformation in unity
C#CC# / help
16mo ago
✅ unity
C#CC# / help
2y ago
Unity indentation on #if UNITY_EDITOR
C#CC# / help
3y ago
Unity Help
C#CC# / help
6mo ago