playMaker

Author Topic: What's the Object Type?  (Read 1908 times)

weilies

  • Junior Playmaker
  • **
  • Posts: 74
What's the Object Type?
« on: February 15, 2015, 01:24:10 AM »
Hi Gurus,

Kindly checkout the attached doc.
What's Object Type for "2D Sprite"?
I try to use set/get property but i can't find the suitable object type.

Could you give me some clue? i know there is possible to use 'Edit Script' to findout the object type but it's way too complex for me to understand NGUI package....

weilies

  • Junior Playmaker
  • **
  • Posts: 74
Re: What's the Object Type?
« Reply #1 on: February 15, 2015, 01:37:57 AM »
I managed to identify a matching object type.
But is there away to assign the variable (UnityEngine.Sprite) via string in Playmaker? How?

Currently i only know to use the browser to assign a value (but the value is always fixed)
How could i assign the variable dynamically? as different character selected it should reflect different sprite image on screen

ermak

  • Junior Playmaker
  • **
  • Posts: 60
    • AL Games
Re: What's the Object Type?
« Reply #2 on: February 15, 2015, 07:26:16 AM »
First of all - you want to change Sprite in NGUI or Unity built-in sprite ?

For Ngui see the attachments in post.
Of course you can use something like this:
https://www.assetstore.unity3d.com/en/#!/content/17920
https://www.assetstore.unity3d.com/en/#!/content/10257