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.


Messages - unclebob

Pages: 1 [2]
16
PlayMaker Help / Populating an array from a C# script
« on: September 17, 2014, 07:47:22 AM »
Hi

I have a situation where I want to populate an array with data that has been gathered and stored from a C# script very like the one below.

}
DirectoryInfo dir = new DirectoryInfo(Application.persistentDataPath);
FileInfo[] images = dir.GetFiles("*.png");
foreach (FileInfo f in images)
{

I know how to pass individual items to an FSM using for instance:

FsmVariables.GlobalVariables.GetFsmString("tess").Value = Storedstring;

But is there a simple method of doing this with arrays?  My brain has stopped working hence the need for pointers.  ???

So far I have created a "Game Object" variable and set it to Object Type PlayMakerArrayListProxy and set the Object Value to the Object the Proxy is on "Data".

I have also read that

public PlayMakerArrayListProxy myArrayListProxy;

Gives visibility in C#

But when your brain starts hurting we all know we should ask for help so...help please!

Thank you in advance.

17
PlayMaker Help / Re: Info Plane to appear in front of camera
« on: June 30, 2014, 03:06:32 AM »
Hey Lane

Really appreciate you taking an interest.

At the moment I have the plane already created but inactive and on a raycast becomes active and visible.

However, the camera is not necessarily pointing to the plane when activated. 

So when it is parented to the camera controller is appears on an offset but at 90 degrees to direction the camera is facing not directly in front.

When not parented it appears at a defined vector but the camera will not rotate to view.

Cheers

18
PlayMaker Help / Re: Info Plane to appear in front of camera
« on: June 27, 2014, 02:01:58 AM »
And face plant it isn't.   ???

The plane appears but at a 90 degree offset by 2 units to the right.

Spot on if directly in front.... but alas.  So I guess the question now is how to activate a plane directly in front of the camera offset by 2 to 3 units...

Help this is driving me crazy.  :o

You are right why isn't it easy?

19
PlayMaker Help / Re: Info Plane to appear in front of camera
« on: June 26, 2014, 09:12:31 AM »
Hang on it can't be that simple... face plant.

OVR parent, playmaker toggles on or off as necessary?

 ::)

20
PlayMaker Help / Re: Info Plane to appear in front of camera
« on: June 26, 2014, 08:37:54 AM »
Sounds spot on mate.

This is not about control, simply information that needs to be presented at that point.

I can see you have had the same stumbling blocks... lol

21
PlayMaker Help / Re: Info Plane to appear in front of camera
« on: June 26, 2014, 08:06:54 AM »
Thanks Lane. 

I am constricted and can only use one camera.

This is an experiemental Oculus Rift freebie and Unity does not like two Rift cameras.

I really want to associate the current position with the information on the plane so jumping to another point breaks that connection.

So that is not an option either.

Thank you for your suggestion though.

Cheers

22
PlayMaker Help / Re: Info Plane to appear in front of camera
« on: June 26, 2014, 07:24:19 AM »
Thanks for replying Jess. 

That would be the normal way of doing this.

The plane displaying the info interms of a texture is part of the games "fabric" so I can't do the GUI thing.  Thats why it is driving me mad as it should be the opposite of a over the shoulder camera.... :)

23
PlayMaker Help / Info Plane to appear in front of camera
« on: June 26, 2014, 06:52:12 AM »
Hi

having a really hard time with something that should be simple.  I have a camera at 0,0,0 with free look.  At some point I want a hidden plane to move towards the camera, directly in front of it and display some info.

This must happen no matter what Y direction the camera is facing.  The plane will be at a set height from the ground.

I am strugggling to get the plane to do this I have tried Lookto, itween, Rotate to and none seem to work as I thought they might.

Can someone help me please as I have spend a couple of days on this with no real outcome.

Obviously completely missing something fundemental.

Any pointers would be a great help.

Thank you

24
Share New Actions / Re: WWW POST
« on: April 12, 2014, 01:37:41 AM »
Is it possible to capture the whole URL of a web page rendered on an in game object and save it to a FSM variable using this action?

Cheers

25
Hi

Help for a nubie.

What am I missing?  I am trying to learn how to access FSM variables from unity scripts.

I am setting the variable "URL" with a value of "www.google.com" in an FSM called "FSM1".

The next FSM called "FSM2" calls a script/method to print its value in the console.

Here is the scripts code I am trying to get to work:

Code: [Select]
#pragma strict
var currentURL : String;

function Start () {

}

function Update () {

}

//called from FSM inside
function SetUrl(URL:String)
{
currentURL=URL;
print(gameObject.name+" url is set to "+currentURL);

}

I have tried setting URL to a global variable (no joy) and as a private variable (again no joy). 

I am pretty sure that I am not referencing properly but am at a loss as to how to access and manipulate FSM variables by scripts.

Cheers

Lost.

Pages: 1 [2]