PlayMaker Help & Tips > PlayMaker Help
Unity 4.5 and Tooltip Attribute
Alex Chouls:
Unity 4.5 defines a new Tooltip attribute that can conflict with Playmaker's Tooltip attribute.
All built in actions use the HutongGames.PlayMaker.Actions namespace, so they find the correct Tooltip attribute.
Third party actions that use their own namespaces will need to point to the correct Tooltip.
For example, you can add this to your using statements:
using Tooltip = HutongGames.PlayMaker.TooltipAttribute;
NOTE: If you change an action's namespace it will look like a new action to Playmaker and parameters will be reset. So "using Tooltip..." is a better solution for existing action, while "namespace HutongGames.PlayMaker.Actions" should be used for new actions.
terri:
Hi, I'm having some trouble with this, where exactly should I be adding the line "using Tooltip = HutongGames.PlayMaker.TooltipAttribute;"?
I tried adding that to one the problematic actions but that just shut down Playmaker as a whole.
Alex Chouls:
Put it at the top of your file with other using statements:
using UnityEngine;
using Tooltip = HutongGames.PlayMaker.TooltipAttribute;
namespace MyNamespace
{
public class MyAction: FsmStateAction
{
...
}
}
terri:
--- Quote from: Alex Chouls on June 16, 2014, 05:45:17 PM ---Put it at the top of your file with other using statements:
using UnityEngine;
using Tooltip = HutongGames.PlayMaker.TooltipAttribute;
namespace MyNamespace
{
public class MyAction: FsmStateAction
{
...
}
}
--- End quote ---
of course, thanks!
now let me get this astar fixed
terri:
hey, I noticed that my problem was that some actions seem to be structured differently. it seems like these instructions work well for .cs actions, but for .js its giving me errors
this is what the A* actions look like:
https://dl.dropboxusercontent.com/u/226993/pm_error2.png
any tips on fixing these?
EDIT: I ended up working around it by just removing the tooltip references
Navigation
[0] Message Index
[#] Next page
Go to full version