Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Game Mewarnai Tutorial
[ASK]error cs0029 , help me please :( EmptyThu Mar 23, 2017 10:21 am by kamil

» [ASK HELP] Slide informasi di augmented reality
[ASK]error cs0029 , help me please :( EmptyTue Jan 03, 2017 8:58 pm by Briyan_ap

» ASK cara klik dan memunculkan informasi
[ASK]error cs0029 , help me please :( EmptyTue Jan 03, 2017 8:54 pm by Briyan_ap

» [Ask] mengubah game PC menjadi game Android
[ASK]error cs0029 , help me please :( EmptyTue Jan 03, 2017 10:57 am by NiethaChan

» Virtualisasi suatu Gedung mengunakan unity3D + google seketchUP
[ASK]error cs0029 , help me please :( EmptySat Dec 31, 2016 1:06 am by zeepank

» Minta Tolong, slideshow ngga muncul saat object di klik
[ASK]error cs0029 , help me please :( EmptyTue Dec 27, 2016 12:53 pm by Briyan_ap

» tolong dong lagi bikin button rotate tp button ga keluar
[ASK]error cs0029 , help me please :( EmptyWed Dec 21, 2016 1:15 pm by Lita Misae

» algoritma Minimax/negascout buat checkers
[ASK]error cs0029 , help me please :( EmptyWed Nov 30, 2016 1:51 am by ardiansa

» screenshot
[ASK]error cs0029 , help me please :( EmptyWed Nov 16, 2016 10:15 pm by azhari

Similar topics
    Statistic

    [ASK]error cs0029 , help me please :(

    Go down

    [ASK]error cs0029 , help me please :( Empty [ASK]error cs0029 , help me please :(

    Post  fitrah68 on Thu Apr 23, 2015 11:50 pm

    tolong saya para master, saya newbie sedang belajar ,
    saya mempunyai maslah dengan coding ini
    using UnityEngine;
    using System.Collections;

    public class PlayerMovement : MonoBehaviour {
    CharacterController _controller;

    // Use this for initialization
    void Start () {
    _controller = GetComponents<CharacterController>();

    }

    // Update is called once per frame
    void Update () {
    Vector3 direction = new Vector3 (Input.GetAxis("horizontal"), 0, Input.GetAxis("vertical"));
    _controller.Move (direction);


    }
    }

    ketika saya mau coba play , muncul error gini "error CS0029: Cannot implicitly convert type `UnityEngine.CharacterController[]' to `UnityEngine.CharacterController' " , tolong saya apanya yang salah ???Sad
    fitrah68
    fitrah68
    Unity3D Newbie
    Unity3D Newbie

    Posts : 2
    Points : 4
    Reputation : 0
    Join date : 2015-04-23

    Back to top Go down

    [ASK]error cs0029 , help me please :( Empty Re: [ASK]error cs0029 , help me please :(

    Post  black pigeon on Fri Apr 24, 2015 9:05 am

    Bedakan lho GetComponent dan GetComponents...

    Unity bingung,
    kalo mau akses komponen lebih dari satu pake GetComponents,
    seharusnya variabelnya dalam bentuk array (pake tanda kurung kotak [] )

    Sedangkan yang mau agan akses kan cuma satu komponen,
    maka tulisan GetComponents coba dirubah jadi GetComponent Wink
    black pigeon
    black pigeon
    Unity3D Newbie
    Unity3D Newbie

    Posts : 56
    Points : 64
    Reputation : 6
    Join date : 2013-03-04

    Back to top Go down

    [ASK]error cs0029 , help me please :( Empty Re: [ASK]error cs0029 , help me please :(

    Post  fitrah68 on Fri Apr 24, 2015 2:39 pm

    owh iya bener , saya nggak ngeh itu ,,,
    trima kasih banyak om ..Smile
    fitrah68
    fitrah68
    Unity3D Newbie
    Unity3D Newbie

    Posts : 2
    Points : 4
    Reputation : 0
    Join date : 2015-04-23

    Back to top Go down

    [ASK]error cs0029 , help me please :( Empty Re: [ASK]error cs0029 , help me please :(

    Post  Sponsored content


    Sponsored content


    Back to top Go down

    Back to top

    - Similar topics

     
    Permissions in this forum:
    You cannot reply to topics in this forum