• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

For-loop

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

andrew-lukasik edited

RemoveAt() not working within for() loop.

2 days ago list·procedural·for-loop·remove

1 Reply

0 Votes

avatar image

HellsHand commented

Unity crashing when entering for loop

Apr 7, '21 crashing·for-loop

2 Replies

0 Votes

avatar image

KoenigX3 answered

Creating triangles around a mesh using an array of vertices

Apr 5, '21 in Help Room

1 Reply

0 Votes

avatar image

GameDeveloperAf edited

[SOLVED] Remove Vector3 Array step by step when GameObject spawned Closed

Apr 4, '21 in Help Room

1 Reply

0 Votes

avatar image

unity_zgZIxccP2cRekQ answered

Can you compare a Gameobject to a Variable?

Apr 3, '21 scripting problem·for-loop·scriptable object

2 Replies

0 Votes

avatar image

mstyphoon12 edited

Finding the vertices of each edge of a mesh face found by a raycast hit

Apr 3, '21 in Help Room

0 Replies

0 Votes

avatar image

Mikhailzrick commented

How to make a refresh rate dropdown menu?

Apr 1, '21 c#·resolution·string·for-loop·dropdown

1 Reply

0 Votes

avatar image

Hellium commented

C# Unity how to select only one item in an array and deselect other items

Mar 25, '21 c#·animation·for-loop·array of gameobjects·material color

1 Reply

0 Votes

avatar image

Mrroundtree22 commented

Even more loop problems

Feb 26, '21 loop·boolean·for-loop

2 Replies

0 Votes

avatar image

nguyenhoangphuongptit commented

A loop FOR waits for a coroutine to end

Feb 25, '21 coroutine·for-loop·startcoroutine

1 Reply

0 Votes

avatar image

cdh529 published

Problem with For Loop for Text objects,Why isn't this for loop for a list of text objects not working?

Feb 24, '21 in Help Room

0 Replies

0 Votes

avatar image

Mrroundtree22 commented

Loop problem

Feb 23, '21 debug·for-loop·foreach

1 Reply

0 Votes

avatar image

AbandonedCrypt commented

Moving rigidbody from one list to another

Feb 16, '21 list·for-loop·move object

2 Replies

0 Votes

avatar image

Llama_w_2Ls commented

My unity STOPS RESPONDING when this function is activated Closed

Feb 8, '21 crash·list·crashing·for-loop

1 Reply

0 Votes

avatar image

DiasPTW edited

My unity STOPS RESPONDING when this function is activated Closed

Feb 7, '21 in Help Room

0 Replies

0 Votes

avatar image

MDLuffy1234FS published

If I must iterate over many game objects in a for loop to call a function in a component, and all the objects are very different, what should the scripts use?

Jan 28, '21 in Help Room

1 Reply

0 Votes

avatar image

wolfgraphicsLLC commented

How can i make the for-loop only run a command once Closed

Jan 25, '21 unity 2d·grid·for-loop·grid based game

1 Reply

0 Votes

avatar image

DwaneDibbley published

How to deactivate all GameObject in a array, except last one

Dec 28, '20 c#·array·loop·for-loop·active

4 Replies

0 Votes

avatar image

blaskojoz edited

Infinite for loop and List problem

Nov 25, '20 crash·list·for-loop

2 Replies

0 Votes

avatar image

donchico asked

LeanTween - For Loop Help

Nov 18, '20 in Help Room

0 Replies

0 Votes

avatar image

jackmw94 commented

How do I access an instantiated Image.sprite inside a GameObject inside a for-loop?

Nov 11, '20 instantiate·prefab·sprite·for-loop

1 Reply

0 Votes

avatar image

Darkpyro2 commented

Unity detects three children of the current object, but only grabs one

Nov 3, '20 transform·children·for-loop·foreach

1 Reply

0 Votes

avatar image

ozrfrkan answered

Want to spawn an object with button press, multiple times that gets higher each time?

Oct 14, '20 c#·instantiate·for-loop

1 Reply

0 Votes

avatar image

NickMalmlief answered

For Loop not working for some elements of List with specific Int variable

Oct 3, '20 for-loop

1 Reply

0 Votes

avatar image

Skinchanger29 commented

How to get a for loop to run once per coroutine?

Sep 27, '20 in Help Room

1 Reply

0 Votes

avatar image

Skinchanger29 published

How to get a for loop to run once per coroutine?

Sep 21, '20 in Help Room

0 Replies

0 Votes

avatar image

Skobizzle asked

Issue? For loops run slower while viewing object in inspector

Aug 24, '20 in Help Room

0 Replies

0 Votes

avatar image

smark12007 commented

For loop update variables value before functions complete

Jul 23, '20 vector3·for-loop·foreach

2 Replies

0 Votes

avatar image

pearsauce commented

For Loop Fires Once In While Loop

Jul 15, '20 in Help Room

1 Reply

0 Votes

avatar image

imM4TT answered

random number without repeating

Jul 14, '20 in Help Room

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

Followers

avatar image avatar image

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

c# array instantiate list javascript foreach loop arrays for gameobject vector3 coroutine if-statements error lists string gui random scripting problem button inventory variable array of gameobjects nullreferenceexception crash


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges