There is no 'Animation' attached to the “person” game object, but a script is trying to access itI can not switch animations properly in unityUsing arrow keys to rotate an objecthow to delay animation in gui button?How do I access variables on a specific gameobject if multiple games objects use the same script?Vuforia not showing what the webcam sees in Unity while still capturing the markerUnity pong game ball physics slowing issueScript instance is returning nullUnable to shoot an object in Unity game. Error-ArgumentException: The Object you want to instantiate is nullCoroutine is not working fine - Unity [C#]Oculus Go - Detect Movement

How to “listen” to existing circuit

Why am I Seeing A Weird "Notch" on the Data Line For Some Logical 1s?

60s or 70s novel about Empire of Man making 1st contact with 1st discovered alien race

Is there a set of positive integers of density 1 which contains no infinite arithmetic progression?

First sign that you should look for another job?

Why can I traceroute to this IP address, but not ping?

Is it expected that a reader will skip parts of what you write?

Who won a Game of Bar Dice?

Sci-fi novel: ark ship from Earth is sent into space to another planet, one man woken early from cryosleep paints a giant mural

Is using 'echo' to display attacker-controlled data on the terminal dangerous?

Understanding "Current Draw" in terms of "Ohm's Law"

Ability To Change Root User Password (Vulnerability?)

Why did Intel abandon unified CPU cache?

Is it safe to change the harddrive power feature so that it never turns off?

Advantages of the Exponential Family: why should we study it and use it?

bash does not know the letter 'p'

Return a String containing only alphabets without spaces

Does the new finding on "reversing a quantum jump mid-flight" rule out any interpretations of QM?

I've been given a project I can't complete, what should I do?

Why does this query, missing a FROM clause, not error out?

Why not invest in precious metals?

How can I remove material from this wood beam?

How to safely destroy (a large quantity of) valid checks?

Is it possible to fly backward if you have really strong headwind?



There is no 'Animation' attached to the “person” game object, but a script is trying to access it


I can not switch animations properly in unityUsing arrow keys to rotate an objecthow to delay animation in gui button?How do I access variables on a specific gameobject if multiple games objects use the same script?Vuforia not showing what the webcam sees in Unity while still capturing the markerUnity pong game ball physics slowing issueScript instance is returning nullUnable to shoot an object in Unity game. Error-ArgumentException: The Object you want to instantiate is nullCoroutine is not working fine - Unity [C#]Oculus Go - Detect Movement






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















Picture: Object Hierarchy



I want to Play Animation when Virtual Button Pressed using Unity & Vuforia. But i don't know why i got an error "there is no 'Animation' attached to the game object"



I'm using Unity 4.7.0 and Vuforia 5-0-10



This is the code that attached to the ImageTarget



using UnityEngine;
using System.Collections;

public class VBEventHandler : MonoBehaviour, Vuforia.IVirtualButtonEventHandler

public GameObject person;

void Start()
Vuforia.VirtualButtonBehaviour[] vbs = GetComponentsInChildren<Vuforia.VirtualButtonBehaviour> ();
for(int i=0; i<vbs.Length; i++)
vbs[i].RegisterEventHandler(this);


person = transform.FindChild("person").gameObject;


public void OnButtonPressed(Vuforia.VirtualButtonAbstractBehaviour vb)
switch (vb.VirtualButtonName)
case "VBAnim":
person.animation.Play();
break;



public void OnButtonReleased(Vuforia.VirtualButtonAbstractBehaviour vb)
switch (vb.VirtualButtonName)
case "VBAnim":
person.animation.Stop();
break;





am I missing something?










share|improve this question
























  • Are you sure that Animation component is attached to object? Better way is to use Animator instead and use e.g triggers.

    – Paweł Marecki
    Feb 26 '16 at 14:11

















1















Picture: Object Hierarchy



I want to Play Animation when Virtual Button Pressed using Unity & Vuforia. But i don't know why i got an error "there is no 'Animation' attached to the game object"



I'm using Unity 4.7.0 and Vuforia 5-0-10



This is the code that attached to the ImageTarget



using UnityEngine;
using System.Collections;

public class VBEventHandler : MonoBehaviour, Vuforia.IVirtualButtonEventHandler

public GameObject person;

void Start()
Vuforia.VirtualButtonBehaviour[] vbs = GetComponentsInChildren<Vuforia.VirtualButtonBehaviour> ();
for(int i=0; i<vbs.Length; i++)
vbs[i].RegisterEventHandler(this);


person = transform.FindChild("person").gameObject;


public void OnButtonPressed(Vuforia.VirtualButtonAbstractBehaviour vb)
switch (vb.VirtualButtonName)
case "VBAnim":
person.animation.Play();
break;



public void OnButtonReleased(Vuforia.VirtualButtonAbstractBehaviour vb)
switch (vb.VirtualButtonName)
case "VBAnim":
person.animation.Stop();
break;





am I missing something?










share|improve this question
























  • Are you sure that Animation component is attached to object? Better way is to use Animator instead and use e.g triggers.

    – Paweł Marecki
    Feb 26 '16 at 14:11













1












1








1








Picture: Object Hierarchy



I want to Play Animation when Virtual Button Pressed using Unity & Vuforia. But i don't know why i got an error "there is no 'Animation' attached to the game object"



I'm using Unity 4.7.0 and Vuforia 5-0-10



This is the code that attached to the ImageTarget



using UnityEngine;
using System.Collections;

public class VBEventHandler : MonoBehaviour, Vuforia.IVirtualButtonEventHandler

public GameObject person;

void Start()
Vuforia.VirtualButtonBehaviour[] vbs = GetComponentsInChildren<Vuforia.VirtualButtonBehaviour> ();
for(int i=0; i<vbs.Length; i++)
vbs[i].RegisterEventHandler(this);


person = transform.FindChild("person").gameObject;


public void OnButtonPressed(Vuforia.VirtualButtonAbstractBehaviour vb)
switch (vb.VirtualButtonName)
case "VBAnim":
person.animation.Play();
break;



public void OnButtonReleased(Vuforia.VirtualButtonAbstractBehaviour vb)
switch (vb.VirtualButtonName)
case "VBAnim":
person.animation.Stop();
break;





am I missing something?










share|improve this question
















Picture: Object Hierarchy



I want to Play Animation when Virtual Button Pressed using Unity & Vuforia. But i don't know why i got an error "there is no 'Animation' attached to the game object"



I'm using Unity 4.7.0 and Vuforia 5-0-10



This is the code that attached to the ImageTarget



using UnityEngine;
using System.Collections;

public class VBEventHandler : MonoBehaviour, Vuforia.IVirtualButtonEventHandler

public GameObject person;

void Start()
Vuforia.VirtualButtonBehaviour[] vbs = GetComponentsInChildren<Vuforia.VirtualButtonBehaviour> ();
for(int i=0; i<vbs.Length; i++)
vbs[i].RegisterEventHandler(this);


person = transform.FindChild("person").gameObject;


public void OnButtonPressed(Vuforia.VirtualButtonAbstractBehaviour vb)
switch (vb.VirtualButtonName)
case "VBAnim":
person.animation.Play();
break;



public void OnButtonReleased(Vuforia.VirtualButtonAbstractBehaviour vb)
switch (vb.VirtualButtonName)
case "VBAnim":
person.animation.Stop();
break;





am I missing something?







unity3d vuforia






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 26 '16 at 13:46









Paweł Marecki

5871819




5871819










asked Feb 26 '16 at 13:42









Rahmat SiswantoRahmat Siswanto

52110




52110












  • Are you sure that Animation component is attached to object? Better way is to use Animator instead and use e.g triggers.

    – Paweł Marecki
    Feb 26 '16 at 14:11

















  • Are you sure that Animation component is attached to object? Better way is to use Animator instead and use e.g triggers.

    – Paweł Marecki
    Feb 26 '16 at 14:11
















Are you sure that Animation component is attached to object? Better way is to use Animator instead and use e.g triggers.

– Paweł Marecki
Feb 26 '16 at 14:11





Are you sure that Animation component is attached to object? Better way is to use Animator instead and use e.g triggers.

– Paweł Marecki
Feb 26 '16 at 14:11












1 Answer
1






active

oldest

votes


















3














Note that the error says




there is no 'Animation' attached to the game object




I'm thinking, it is very likely that




there is no 'Animation' attached to the game object




What you should do is check if




there is no 'Animation' attached to the game object




You may find that




there is no 'Animation' attached to the game object




If it turns out




there is no 'Animation' attached to the game object




then you've discovered the problem you're having,




there is no 'Animation' attached to the game object




Heh! It's that easy.




2019



Setting aside the humor, do note that these days



You attach an Animator. You don't, really, use animations directly.



Review basic tutorials on animating humanoids in Unity. ( UMotion is highly recommended when working with animation in Unity.)






share|improve this answer

























  • I have a suspicious feeling you're trying to tell him something... But I can't quite put my "there is no 'Animation' attached to the game object" on it.

    – Savlon
    Feb 26 '16 at 16:08











  • hee hee :) ......

    – Fattie
    Feb 26 '16 at 16:13






  • 1





    Thank You Professor, Its Very 'Attached' for me

    – Rahmat Siswanto
    Feb 26 '16 at 23:15











  • LOL awesome :)...

    – Fattie
    Feb 26 '16 at 23:49











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f35653289%2fthere-is-no-animation-attached-to-the-person-game-object-but-a-script-is-tr%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














Note that the error says




there is no 'Animation' attached to the game object




I'm thinking, it is very likely that




there is no 'Animation' attached to the game object




What you should do is check if




there is no 'Animation' attached to the game object




You may find that




there is no 'Animation' attached to the game object




If it turns out




there is no 'Animation' attached to the game object




then you've discovered the problem you're having,




there is no 'Animation' attached to the game object




Heh! It's that easy.




2019



Setting aside the humor, do note that these days



You attach an Animator. You don't, really, use animations directly.



Review basic tutorials on animating humanoids in Unity. ( UMotion is highly recommended when working with animation in Unity.)






share|improve this answer

























  • I have a suspicious feeling you're trying to tell him something... But I can't quite put my "there is no 'Animation' attached to the game object" on it.

    – Savlon
    Feb 26 '16 at 16:08











  • hee hee :) ......

    – Fattie
    Feb 26 '16 at 16:13






  • 1





    Thank You Professor, Its Very 'Attached' for me

    – Rahmat Siswanto
    Feb 26 '16 at 23:15











  • LOL awesome :)...

    – Fattie
    Feb 26 '16 at 23:49















3














Note that the error says




there is no 'Animation' attached to the game object




I'm thinking, it is very likely that




there is no 'Animation' attached to the game object




What you should do is check if




there is no 'Animation' attached to the game object




You may find that




there is no 'Animation' attached to the game object




If it turns out




there is no 'Animation' attached to the game object




then you've discovered the problem you're having,




there is no 'Animation' attached to the game object




Heh! It's that easy.




2019



Setting aside the humor, do note that these days



You attach an Animator. You don't, really, use animations directly.



Review basic tutorials on animating humanoids in Unity. ( UMotion is highly recommended when working with animation in Unity.)






share|improve this answer

























  • I have a suspicious feeling you're trying to tell him something... But I can't quite put my "there is no 'Animation' attached to the game object" on it.

    – Savlon
    Feb 26 '16 at 16:08











  • hee hee :) ......

    – Fattie
    Feb 26 '16 at 16:13






  • 1





    Thank You Professor, Its Very 'Attached' for me

    – Rahmat Siswanto
    Feb 26 '16 at 23:15











  • LOL awesome :)...

    – Fattie
    Feb 26 '16 at 23:49













3












3








3







Note that the error says




there is no 'Animation' attached to the game object




I'm thinking, it is very likely that




there is no 'Animation' attached to the game object




What you should do is check if




there is no 'Animation' attached to the game object




You may find that




there is no 'Animation' attached to the game object




If it turns out




there is no 'Animation' attached to the game object




then you've discovered the problem you're having,




there is no 'Animation' attached to the game object




Heh! It's that easy.




2019



Setting aside the humor, do note that these days



You attach an Animator. You don't, really, use animations directly.



Review basic tutorials on animating humanoids in Unity. ( UMotion is highly recommended when working with animation in Unity.)






share|improve this answer















Note that the error says




there is no 'Animation' attached to the game object




I'm thinking, it is very likely that




there is no 'Animation' attached to the game object




What you should do is check if




there is no 'Animation' attached to the game object




You may find that




there is no 'Animation' attached to the game object




If it turns out




there is no 'Animation' attached to the game object




then you've discovered the problem you're having,




there is no 'Animation' attached to the game object




Heh! It's that easy.




2019



Setting aside the humor, do note that these days



You attach an Animator. You don't, really, use animations directly.



Review basic tutorials on animating humanoids in Unity. ( UMotion is highly recommended when working with animation in Unity.)







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 24 at 19:51

























answered Feb 26 '16 at 14:25









FattieFattie

20.4k31213464




20.4k31213464












  • I have a suspicious feeling you're trying to tell him something... But I can't quite put my "there is no 'Animation' attached to the game object" on it.

    – Savlon
    Feb 26 '16 at 16:08











  • hee hee :) ......

    – Fattie
    Feb 26 '16 at 16:13






  • 1





    Thank You Professor, Its Very 'Attached' for me

    – Rahmat Siswanto
    Feb 26 '16 at 23:15











  • LOL awesome :)...

    – Fattie
    Feb 26 '16 at 23:49

















  • I have a suspicious feeling you're trying to tell him something... But I can't quite put my "there is no 'Animation' attached to the game object" on it.

    – Savlon
    Feb 26 '16 at 16:08











  • hee hee :) ......

    – Fattie
    Feb 26 '16 at 16:13






  • 1





    Thank You Professor, Its Very 'Attached' for me

    – Rahmat Siswanto
    Feb 26 '16 at 23:15











  • LOL awesome :)...

    – Fattie
    Feb 26 '16 at 23:49
















I have a suspicious feeling you're trying to tell him something... But I can't quite put my "there is no 'Animation' attached to the game object" on it.

– Savlon
Feb 26 '16 at 16:08





I have a suspicious feeling you're trying to tell him something... But I can't quite put my "there is no 'Animation' attached to the game object" on it.

– Savlon
Feb 26 '16 at 16:08













hee hee :) ......

– Fattie
Feb 26 '16 at 16:13





hee hee :) ......

– Fattie
Feb 26 '16 at 16:13




1




1





Thank You Professor, Its Very 'Attached' for me

– Rahmat Siswanto
Feb 26 '16 at 23:15





Thank You Professor, Its Very 'Attached' for me

– Rahmat Siswanto
Feb 26 '16 at 23:15













LOL awesome :)...

– Fattie
Feb 26 '16 at 23:49





LOL awesome :)...

– Fattie
Feb 26 '16 at 23:49



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f35653289%2fthere-is-no-animation-attached-to-the-person-game-object-but-a-script-is-tr%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현