playMaker

Author Topic: Question about using Get Property with Sprites  (Read 1734 times)

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Question about using Get Property with Sprites
« on: February 07, 2015, 11:35:53 PM »
I am attempting to get the sprite being displayed by an Image in the uGUI and display it elsewhere by setting the sprite property of another Image to the original one.

The problem i've run into is that Get Property, when i drag the component that contains the targeted Sprite info, it wants me to store the result in a Object variable, but it does not let me pick ANY variable at all. am i doing it wrong?

VascBogdan

  • Full Member
  • ***
  • Posts: 118
Re: Question about using Get Property with Sprites
« Reply #1 on: February 08, 2015, 06:07:36 AM »
Be sure you didn't create a GameObject variable. Object is not the same as GameObject.

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Re: Question about using Get Property with Sprites
« Reply #2 on: February 08, 2015, 07:47:50 AM »
neither seem to be accepted by Get Property, why would my one not accept the Object variable? because i tried every variable and nothing came up as an option to use with that action.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Question about using Get Property with Sprites
« Reply #3 on: February 09, 2015, 03:32:07 PM »
You should be able to make an Object variable, then in the Variable Inspector choose the TYPE of Object variable it is. Likely something like Unity Engine > UI > Sprite somethingsomething or the like.

With Object variables you have to pre-define what they are before they can be recognized and used correctly by the Actions.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D