H
H
Herman Coffman2018-10-31 13:12:26
C++ / C#
Herman Coffman, 2018-10-31 13:12:26

And also why when I spawn a cube (using a button) it does not move (does not use a script)?

And also why when I spawn a cube (using a button) it does not move (does not use a script)? Spawn it like this:
inst_obj = Instantite (obj, new Vector3 (0, 0, 0), Quaternion.identeti) as GameObject;
There are no errors in the console.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2018-10-31
@Gera01

let's do this))
- code) always give an example of code .. except for instantiation, still the script code that should move.
- screenshots of the inspector and hierarchy..what kind of object, what hangs on it, is it enabled.
and so you have or the movement code is wrong. or the object from the prefab is not created.
or is created disabled/inactive
in addition, almost any code, even one line, please fill out

//как код
//форматирование и подсветку непросто так сюда приделали))

inst_obj = Instantite (obj, new Vector3 (0, 0, 0), Quaternion.identeti) as GameObject;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question