Y
Y
yraiv2022-03-02 12:00:12
Unity
yraiv, 2022-03-02 12:00:12

Why can't I resize an object?

I can't resize an object, what's the reason?

TowerGiveDistant.transform.GetChild(1).GetChild(0).gameObject.transform.localScale.Set(4, 4, 4);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GFX Data, 2022-03-02
@yraiv

Try like this:
transform.localScale = Vector3.one * 4f;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question