This video shows how you can create a Sniper Scope effect with zoom.
● Dev Assets:
♥ Support my videos on Patreon:
····················································································
♥ Subscribe:
● Website:
● Facebook:
● Twitter:
····················································································
Modern Weapons was created by Matias Hollmann:
····················································································
► All content by Brackeys is 100% free. I believe that education should be freely available to everyone. Want to support me in my mission?
Become a Patron:
····················································································
♪ Intro Music by Brackeys
♪ Baby Plays Electro Games
Davilarek
09.04.2022wow, you are rich ppl…
Nityam Gandhi
09.04.2022Thank You SO much Big Brack
Bibek Game Box
09.04.2022Hey Brackeys, in Unity 2019 I don't find the the sample option to keep my animation's speed under control. Please can I know where it is ??
IanK1279
08.04.2022great, now all my weapons have scopes, including the sword
GucciZaman
08.04.2022can you shoot the gun
Animator's Studio
08.04.2022When I am scoped in the field of view changes for a a second and then comes back to normal. What can I do???
Supriya Sontakke
08.04.2022Please tell how to use sniper scope when sniper is enabled??
Aleks P
08.04.2022Tip: if you want the gun to aim only when when holding down the button, use this instead:
if (Input.GetButtonDown("Fire2"))
{
animator.SetBool("Scoped", true);
}
else if (Input.GetButtonUp("Fire2"))
{
animator.SetBool("Scoped", false);
}
Great video btw
The Coone
08.04.2022SUMMARY; Change Field Of View to small number
The Coone
07.04.2022it aint a programming tutorial if there is not a broken asset link in the description
Chathindu Nethmina
07.04.2022I cannot believe that I have gotten this far! I have no words to thank you!
TheProNoob123
07.04.2022Why the heck don't you use brackets for if conditions???
Никита Мордик
07.04.2022Чувак просто красавчик, очень помогло это видео!!!
Avi Sengar
07.04.2022Please tell me when I downloaded the standard assets it shows an error "AssetsStandard AssetsUtilitySimpleActivatorMenu.cs(11,16): error CS0619: 'GUIText' is obsolete: 'GUIText has been removed. Use UI.Text instead.' " .Please help.
Avi Sengar
07.04.2022using System;
using UnityEngine;
#pragma warning disable 618
namespace UnityStandardAssets.Utility
{
public class SimpleActivatorMenu : MonoBehaviour
{
// An incredibly simple menu which, when given references
// to gameobjects in the scene
public GUIText camSwitchButton;
public GameObject[] objects;
private int m_CurrentActiveObject;
private void OnEnable()
{
// active object starts from first in array
m_CurrentActiveObject = 0;
camSwitchButton.text = objects[m_CurrentActiveObject].name;
}
public void NextCamera()
{
int nextactiveobject = m_CurrentActiveObject + 1 >= objects.Length ? 0 : m_CurrentActiveObject + 1;
for (int i = 0; i < objects.Length; i++)
{
objects[i].SetActive(i == nextactiveobject);
}
m_CurrentActiveObject = nextactiveobject;
camSwitchButton.text = objects[m_CurrentActiveObject].name;
}
}
}
it throws an error please help " AssetsStandard AssetsUtilitySimpleActivatorMenu.cs(11,16): error CS0619: 'GUIText' is obsolete: 'GUIText has been removed. Use UI.Text instead.'
".help
HELPPPPPPPPPP!!!!!
Ancient Bison
06.04.2022In my code I used gun_anim.SetBool("is_scoped", !gun_anim.GetBool("is_scoped")) instead of another bool
Tamilgaming Funny moments
06.04.2022where u got standard assets
Spencer
06.04.2022i know that this might be out of date from unity updates but i can't seem to find an animator class for the script and when I try to run unity i get a compile error I'm not sure what that's all about
Anant Gamer
06.04.20221 like for your dedication I know You Can't read this comment brackeys
Mehdi B
06.04.2022Please HELP, it is my first 3D tuto. I have a problem in 1:18 , i can not get Characters when doing right click – Import Package… WHY? THANKS 🙂
itay ron
06.04.2022Thanks helped me a lot with my FPS game
angel cardenas
05.04.2022Hola 😉
Hice 3 juegos son medio chafitas pero bueno, recién aprendí esto de hacer videojuegos, si te gustaría verlos y jugarlos
(。_。) aquí están los links de la play store (Android):
1) Robot Swatting Flies
( aplasta a los bicharracos )
– https://play.google.com/store/apps/details?id=com.LatinTechnology.RobotSwattingFlies
2) Jumbo Adventure
( Muchas aventuras explora, mata a los enemigos y mucho mas 🧐🤠🙃 )
– https://play.google.com/store/apps/details?id=com.LatinTechnology.JumboAdventure2020
3) Jumbo Helix Jump ( El típico juego que se hizo famoso hace 1 año o 2 jaja 🏀🏐🎯 )
– https://play.google.com/store/apps/details?id=com.LatinTechnology.JumboHelixJump
Y bueno si quieres ver todas mis apps pues aquí esta link 🤗
– https://play.google.com/store/apps/dev?id=5492923834076536713
Y gracias si descargaste alguno de ellos de verdad me ayudas mucho a seguir con lo q me gusta 😊
_voidPTR
05.04.2022Professionals have standards.
Dracone49
05.04.2022made a button with this tutorial
Rodolfo Vitangcol
05.04.2022Business Opportunity in Ruvol
I have invented a Board Game [still unpublished and not yet out in the market] that I believe is guaranteed to be as challenging and exciting as CHESS. I called it “RUVOL.”
It is my hope that one day Ruvol may surpass chess as the “Number One Board Game in the World.”
The weakness of chess is it always starts in fixed positions that the opening moves become “memorizable.” In fact, not a few have so mastered the moves that they can play against their opponents “blindfolded.” It is for this very reason that the great Bobby Fischer introduced his so-called “Fischer Random Chess,” where the starting position of the pieces is “randomized” to make the memorization of openings impracticable. Fortunately, it is also for this reason that I invented Ruvol where “every game” has been calculated to be a challenging one to play.
HOW IS RUVOL PLAYED and HOW YOU CAN MONETIZE IT?
I detailed everything in my YouTube video. Here is the link: https://www.youtube.com/watch?v=jcqth0m3-R0
BIG MONEY POTENTIAL IN RUVOL!
It is worthwhile to note that the people who play chess will be the same people who will play Ruvol. In my Google search, I learned there are around 800 million chess players in the world. Even just a small percentage of these 800 million is good enough to earn big money from Ruvol either as an ONLINE GAME BUSINESS or as a PHYSICAL PRODUCT DISTRIBUTOR.
You may contact me at: rodolfovitangcol@gmail.com.
Thanks and God bless!
RODOLFO MARTIN VITANGCOL
The Ruvol Inventor
Tolga Karanlikoglu
05.04.2022But this camera trick breaks shadows in HDRP pipeline. How can I fix it? Weapon never receives shadows from objects in other layers
Dredgen Saw
05.04.2022Do I need to install Standard assets to make it work
Gautham Srinivasan
04.04.2022Can Someone put the script in the comment, me getting a lot of errors
Sem Alma
04.04.2022my aiming animation is not transitioning with the idle, so he touches the animation but the gun is not in the middle
Vicren
04.04.2022I am trying to do this with a sword attack animation (disregarding the scope) and whenever I hit my mouse button it just spams the animation what do I do? (I only want it to repeat once every time you click on the mouse button.)
GAME CRAFTER
04.04.2022Facing a issue in this, i have multiple guns so whenever i have scope on and i switch to other guns using the number pad or the mouse scroll wheel, the scope is still there, so for example if i switch from sniper to pistol then i can use the pistol but that huge scope image is there so can u tell how i can access the UnScoped() function from my sniper scope script from the void Start() of the pistol script, please and thank you.
little dreamer
04.04.2022rename this video to "my whole fps videos in once"
TheNoderCoder
04.04.2022RIP Brackeys D:
Francis Abou nader
03.04.2022why i can't download this package for free?
Phil Harland
03.04.2022Where would we be without Brackeys? Sadly missed, maybe he'll come out of retirement one day and do some more!!!
Garima Sharma
03.04.2022I have downloaded this asset brackeys!!
Manish
03.04.2022i am not able to get the character controller in import packages .. do it is changed from its place anyone please
You're Not Alone
03.04.2022It says that the type or namespace "IEnumerator" cannot be found. I don't know what I did wrong, I followed the directions to a T.
Ben W
03.04.2022my sniper only zooms in during the animation and then goes back to the normal fov when the scope overlay is there
Prabhas Ranjan
02.04.2022Best video for scope effect
Mips LP
02.04.2022Does somebody know how to only scope when holding the sniper and not another weapon? I am using the scripts teached by Brackeys, like the WeaponSwitch script etcetera. Is there some way to access the selectedWeapon variable?
Sajid Sarker
02.04.2022Interestingly, the addition of a second Gun camera removes the ability for guns to cast shadows on the ground. How can we overcome this limitation?
diliup gabadamudalige
02.04.2022October 2021 searched for Sniper scope and VIOLA! first is BRACKEYS! 🙂 Miss you man. All the best to you! 🙂
Enzo Lemes
02.04.2022The IEnumerator doesn't work for me. Does any1 know how to get around this?
GreenCookie Productions
02.04.2022Why is Devassets not working?
Finnrlx
01.04.2022when im scoping with my weapon the scope animation isnt correctly looking into the middle of the screen its moves with the camera and i cant scope corectly help needed
Paavo Björkbacka
01.04.2022its not l-96 its awp😅
proffesional coding idiot
01.04.2022hello i need help as i wanted to implement that during reloading he would unscope but my code isn't doing anything (this was in the iEnumerator section)
if (isReloading == (true))
{
then scopeOverlay.SetActive(false);
}
else scopeOverlay.SetActive(true);
NOUR
01.04.2022I just realized how easy coding this was, if you are familiar with coding and understand the basics of it you can catch up with what he is writing 🤣🤣. Just needs practicing to do it yourself.
Edit: typo
Shaun O'Brien
01.04.2022If anyone else happens to be doing this on URP and while setting up WeaponsCamera realize that Clear Flags doesn't exist, what worked for me is setting Render Type of WeaponsCamera to Overlay and then in the Main Camera adding it as a Camera under Stack.