Online Mind Mapping and Brainstorming

Create your own awesome maps

Online Mind Mapping and Brainstorming

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account? Log In

attaching custom script objects by Mind Map: attaching custom script objects
0.0 stars - reviews range from 0 to 5

attaching custom script objects

Using Scripts

writing simple behaviour scripts

Creating New Scripts

rotate를 위한 Script Component 추가하기




Attaching scripts to objects

Box GameObject 만들어서 추가하기

create a new object

2 methods


Press Play to test your creation.

Manipulating the GameObject

function Update () { transform.Rotate(0, 5*Time.deltaTime, 0); }

The Power of Variables

변수 추가하여 속도 바꾸기 박스 하나 더 추가하여 연결하기

variable can now be modified directly in the Inspector

you can re-use one script on many objects, each with a different variable value.

Accessing Other Components

Using the GameObject members

Using GetComponent()