playMaker

Author Topic: How to get the name of a Texure variable?[SOLVED]  (Read 2248 times)

MrAdventure

  • Playmaker Newbie
  • *
  • Posts: 24
How to get the name of a Texure variable?[SOLVED]
« on: February 12, 2014, 02:34:38 PM »
Hi there,

How do I get the string name of a Texture variable on an FSM?  The texture is assigned in the inspector.

Thanks?

Victor
« Last Edit: February 13, 2014, 11:51:53 PM by jeanfabre »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How to get the name of a Texure variable?
« Reply #1 on: February 12, 2014, 03:59:44 PM »
I couldn't figure out a quick way to do it, so I just edited the GetFsmTexture action to return the name into a string. File attached.

If the texture is in a variable in the Editor you can just grab it from there. Is that the case or is it in the regular Unity Inspector? If so, is it in a Material?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

MrAdventure

  • Playmaker Newbie
  • *
  • Posts: 24
Re: How to get the name of a Texure variable?
« Reply #2 on: February 12, 2014, 04:54:56 PM »
That worked like a charm, thanks!