playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - PlaymakerNOOB

Pages: [1] 2
1
Action Requests / Set Parent for Rect Transform action (SOLVED)
« on: October 30, 2019, 10:06:51 AM »
There is an existing Set Parent, but when using it on a Rect Transform, you are greeted with the following warning:

Quote
Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.
UnityEngine.Transform:set_parent(Transform)

Along with the scale of the object's x + y changing from 1 to 200+

Just looking for a set parent that works on a Rect Transform without changing the scale or generating an error.  Thanks!

2
Action Requests / Ecosystem action bug - Unity Analytics[SOLVED]
« on: October 09, 2019, 07:59:20 PM »
Didnt know exactly where to put this.  Hopefully this is the correct spot.

If you use Analytics send custom event (found on the ecosystem), in the editor with wifi off or ethernet unplugged, the action still takes the success path.  How can it do that, if it cannot successfully report via the internet?

3
PlayMaker Help / Find local files (SOLVED)
« on: August 21, 2019, 06:53:24 AM »
So in my game, I have levels that are .JSON files.  I have the game count the files in the Unity Editor directory (Assets/Resources/Levels/) to determine the maximum amount of levels it can show on the overworld map. However on Mobile, I am unable to successfully locate the directory to count the files, as apparently its changed.

As this is a single player game, I suppose I could host the level files online and have them download them before the title screen, but I am hoping to find a better answer.

4
PlayMaker Help / Set text color[SOLVED]
« on: July 22, 2019, 07:28:51 AM »
I cant seem to find an action or interaction that will allow me to set the color of UI Text component to a color variable, other than set properties.

5
Feature Requests / Dont Destroy On Load action
« on: July 20, 2019, 01:51:38 PM »
What does Dont Destroy On Load Do?
Adding this action to a gameobject allows it traverse between scenes and keep all of its variables intact.

Feature Request
Ideally, I think it should also have an option for Singleton to be added to it, as they would seem to go together.

6
Action Requests / UnityWebRequest
« on: July 19, 2019, 06:41:42 AM »
if you have any of the old www actions, you will see that Unity recommends upgrading them from www to UnityWebRequest instead.

Can we get an action for it please? I also checked ecosystem and didnt find it.

Quote
WWWPOSTMobile.cs(63,11): warning CS0618: 'WWW' is obsolete: 'Use UnityWebRequest, a fully featured replacement which is more efficient and has additional features'


---edit---
this is after jeans response.  It is actually there, but not sure how i missed it when searching the ecosystem by UnityWebRequest.

7
Issue 1) Ecosystem does not work properly on Unity 2019.1 or higher.  See video for example with workaround.


Quote
https://i.imgur.com/ZLxZRk1.mp4


Issue 2) Datamaker is not showing up in the ecosystem, at least for playmaker 1.90.16p with 0.6.6 ecosystem.


Issue 3) Datamaker direct downloads are also missing on its wiki page:  https://hutonggames.fogbugz.com/default.asp?W1133

the direct link to datamaker goes here: https://github.com/jeanfabre/PlayMakerCustomActions_U4/raw/master/PlayMaker/Ecosystem/Custom%20Packages/DataMaker/DataMaker.unitypackage


the direct link to datamaker with xml/json goes here: https://github.com/jeanfabre/PlayMakerCustomActions_U4/blob/master/PlayMaker/Ecosystem/Custom%20Packages/DataMaker/DataMaker_Xml_Json.unitypackage?raw=true


8
Action Requests / Automatic Updater [SOLVED]
« on: July 08, 2019, 08:43:23 AM »
Can somebody convert this .js into an action please?  Cant use it in 2019 unity as Javascript has been removed.


Code: [Select]
import System.IO;
 
 private var latestVersionString = "randomText";
 var thisVersionFloat : float = 1.0;
 var dropBoxLatestVersionTXT = "https://www.dropbox.com/s/???????????????/version.txt?raw=1";
 
 function Start () {
     
   var www : WWW = new WWW(dropBoxLatestVersionTXT);
   yield www;
     

 
     latestVersionString = www.text;

     
    var latestVersionFloat : float = 3.14159265358979f;
   
    latestVersionFloat = float.Parse(latestVersionString);

   
    if(latestVersionFloat==thisVersionFloat) Debug.Log("You have the latest version of the game");
    if(latestVersionFloat>thisVersionFloat) Debug.Log("You have outdated version of the game");
 
 }



--edit--

Found wwwPOST on ecosystem.  Just use that to point to a text file, save the response string to a variable.

9
PlayMaker Help / Communication between two FSMs [SOLVED]
« on: July 06, 2019, 01:34:57 PM »
I want two different gameobjects with different FSMs to communicate with each other.  However, one of the game objects is a GameManager, so it takes input thats given to it and processes it.  I would like to return the information back to the TempObject but I cant seem to find a way of having the GameManager identify that the request came from TempObject and thus, send the results to it.

Object1 = GameManager
Object2 = TempObject (is a prefab)

If there was a game object action, that sets owner to a variable, thats what I need, but so far I cant seem to find it.

10
PlayMaker Bug Reporting / Android - Debug Log not reporting
« on: March 23, 2019, 06:04:31 PM »
Playmaker 1.9.0.p12
tested on Unity 2017 4.1, 4.3, 4.5

When using the Debug Log action with it set to Send to Unity log checked, it appears it is not on Android builds.  I have used several mobile console (android) log addons:

-Lunar Mobile Console
-SRDebugger
-Mobile Console
-Log Viewer

None of them are seeing it.  So I made my own debug log script and called it via a FSM and it shows up in the mobile console viewers. 

11
PlayMaker Help / Delta.Position & Time.Delta[SOLVED]
« on: December 14, 2015, 09:15:45 AM »
I am creating a touch based game, where the player can move a game object with their finger if they touch anywhere and drag.  I need to link the players touch to the gameobjects movement regardless of where they touch on the screen.

I believe that its supposed to be done with Delta.Position and Time.Delta though, i cant seem to get anything to work correctly.  Any advice would be appreciated.

12
Feature Requests / Unity 5.3 Native IAP?
« on: November 21, 2015, 07:33:53 PM »
On Unity's roadmap they have native in app purchases listed.  Is this something that will be supported with playmaker actions upon Unity 5.3 launch?

13
Action Requests / Advanced Android Vibration
« on: November 13, 2015, 08:45:19 PM »
Hello, is anybody able to convert any of these to a usable action in playmaker?

C# Version https://gist.github.com/aVolpe/707c8cf46b1bb8dfb363
Boo Version  https://gist.github.com/tapuo/4258278
Java Version http://android.konreu.com/developer-how-to/vibration-examples-for-android-phone-development/

Thanks in advance

14
Feature Requests / Android Permissions Guide
« on: August 04, 2015, 08:04:02 PM »
This post is edited to contain only useful information:

Manual identification and removal of scripts that trigger specific permissions.

Please be aware that having "Android Development" checked, enables Full Network Access and Modify/Delete the contents of your USB storage"

-"Control Vibration" - Remove:
-DeviceVibrate.cs

-"Precise Location (GPS and Network-Based)" - Remove:
-GetLocationInfo.cs
-ProjectLocationToMap.cs
-StartLocationServicesUpdate.cs
-StopLocationServicesUpdate.cs

-"Network Access" - Thanks to Alex for his help in identification with this.

In the project tab of Unity, locate:  Plugins\PlayMaker\WebGL\PlayMaker.dll and ensure that WebGL and Android both have checkmarks (nothing else should have checkmarks).  Then click Apply.

In the project tab of Unity, locate:  Plugins\PlayMaker\PlayMaker.dll and remove the checkmark from Android.  Then click Apply.

Click File, Build Settings, click Player settings, Other settings, In Scripting Define Symbols enter "UNITY_WEBGL", press enter.  File, Save Project.  Then build your unity project

Please note the following caveats with Networking: 
1) Due to a bug in Unity 5.1, you cannot remove permissions at all, unless you edit the android manifest.xml post Unity3d. Downgrading to 5.0.4 works.
2) Downgrading is easy, download 5.0.4 here:  http://unity3d.com/get-unity/download/archive, backup your project, open it with 5.0.4 and it will "recompile" but it will work.


-"Prevent Phone from Sleeping" - I haven't located the offending scripts, but its somewhere in the actions folder.  Deleted all scripts in actions folder and it went away.  I originally thought it was GetiPhoneSetting.cs and  ApplicationRunInBackground.cs but apparently there is more.  This permission doenst bother me enough spend tons of time identifying it, but I did narrow it down to the following actions:  Remove all actions that start with A and B, Sleep, flicker, usegravity, remove actions that start with Get, Remove all action that starts with Set, is kinematic, is sleeping, mouselook2, removemixing, rewind animation, stop animation, wakeup, setanimationFOV and everything itween.

15
Android Help / Removing Android Permissions
« on: August 02, 2015, 03:42:41 PM »
This post is edited to contain only useful information:

Manual identification and removal of scripts that trigger specific permissions.

-"Prevent Phone from Sleeping" / aka Wake_Lock
-Any script that contains the word movie in the title

-"Control Vibration" - Remove:
-DeviceVibrate.cs

-"Precise Location (GPS and Network-Based)" - Remove:
-GetLocationInfo.cs
-ProjectLocationToMap.cs
-StartLocationServicesUpdate.cs
-StopLocationServicesUpdate.cs

-"Network Access" - Thanks to Alex for his help in identification with this.
-Remove the Networking folder

In the project tab of Unity, locate:  Plugins\PlayMaker\WebGL\PlayMaker.dll and ensure that WebGL and Android both have checkmarks (nothing else should have checkmarks).  Then click Apply.

In the project tab of Unity, locate:  Plugins\PlayMaker\PlayMaker.dll and remove the checkmark from Android.  Then click Apply.

Click File, Build Settings, click Player settings, Other settings, In Scripting Define Symbols enter "UNITY_WEBGL", press enter.  File, Save Project.  Then build your unity project

Please note the following caveats: 
1) Must be built as a final android APK.  A checkmark in google development build still seems to include unnecessary permissions despite the above changes.
2) Due to a bug in Unity 5.1, you cannot remove permissions at all, unless you edit the android manifest.xml post Unity3d. Downgrading to 5.0.4 works.
3) Downgrading is easy, download 5.0.4 here:  http://unity3d.com/get-unity/download/archive, backup your project, open it with 5.0.4 and it will "recompile" but it will work.

Pages: [1] 2