Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Why is i zero in debug?

$
0
0
Not sure why the int i which i am using for loop stays at zero in debug. The code is working of a fashion (the object tree is scaling up) but i am a bit confused why. Thanks very any help.

using UnityEngine;
using System.Collections;
using System;
public class Treegrowth : MonoBehaviour
{

int treeScale = 10;
public Vector3 scale = new Vector3 (1,1,1);
int i = 0;


// Use this for initialization

void Start ()
{


for ( int i = 3; i < treeScale; i++,...

Why is i zero in debug?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>