Skip to main content
Adrien G.'s user avatar
Adrien G.'s user avatar
Adrien G.'s user avatar
Adrien G.
  • Member for 4 years, 6 months
  • Last seen more than 1 year ago
  • France
awarded
comment
Using Part of prefab as script parameter
Ok I didn't know, it's a method I heard about recently. I'll note for my projects :D
revised
Loading…
comment
Using Part of prefab as script parameter
I think that, maybe, you should declare the variable as public and not implicitly private. Instead of using the SerializeField, try using Public GameObject weaponSockets; But I think you dont want it to be accessed by everyone
revised
Using Part of prefab as script parameter
added 333 characters in body
Loading…
comment
Using Part of prefab as script parameter
Ok let me edit my answer, I see the problem. Find does not check all child, just the direct one.
comment
Using Part of prefab as script parameter
Can you show code for that?
comment
Using Part of prefab as script parameter
Have you write the correct name?
comment
Using Part of prefab as script parameter
Yes clearly, but his script will only use it one time I think. So it won't be time consuming. But it surely exists a better idea
comment
Unity problem with instantiated objects when destroyed
Are you using RayCast for doing this? Also, post your code :)
answered
Loading…
awarded
revised
Loading…
comment
Why is my movement not smooth and jagged?
Add it to your post so everyone can see it :)
comment
Why is my movement not smooth and jagged?
One more thing. I would put all the movement code in fixedUpdate function, not in both update and fixedUpdate.
comment
Why is my movement not smooth and jagged?
Are you lagging in editor mode or after building it? Also, can you provide a gif sample of your problem?
comment
Disable free look camera movement when touch detected on mobile joystick
In if (direction.magnitude >= 0.1f), use GetComponent to get CinemachineFreeLook component and use the methods SetActive(false) to disable it. Is it what you want?
Loading…