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 - DeepShader

Pages: [1]
1
PlayMaker Announcements / Use Playmaker without Domain-Reload?
« on: March 29, 2020, 09:13:34 AM »
Hi there, since the latest version of Unity you can speed up entering Play-Mode by disabling Domain-Reload in the Editor setting.

But it seems Playmaker won't to work correctly in this new mode. Is there an update in progress to support this new mode?

2
PlayMaker Help / PlayMaker vs. ICode
« on: May 19, 2015, 11:38:53 AM »
Hi there,
maybe I'm a lil bit to stupid, but is there any reason why I should use ICode instead of PlayMaker? Don't they do the same thing?

3
PlayMaker Help / Best way to save and load instantiated objects?
« on: May 14, 2015, 01:20:08 PM »
Hi there,
I've to instantiate objects at runtime (via PlayMaker Create Object action). In this case an empty image, which will be filled by the user with the build-in camera (mobile-phone).

That's working fine.

So my question is: What is the best way to save and re-load this images later?

My first idea is to store them in a directory as single png-files. But I don't know how to load them later without using a file-name-database. Is it possible to get all files in a specific directory?

I can't use file names like 00001.png, 00002.png, ... - because the user can delete this pictures, too - and if I would try to load them by number (00001.png, ...) I would get errors, if the user deleted an image before in the App.

I'm very new to this stuff. Is there a much easier way to do this? I also bought EasySave on the AssetStore - if this helps.

Thanks a lot for helping!!

4
Hello,
how can I attach something to an GameObject at runtime with PlayMaker?

I want to create GameObjects at runtime (that's not the problem) and I want to attach PlayMaker Controls to these new GameObjects at runtime with PlayMaker.

Is this possible?

5
PlayMaker Help / How to detect which Unity UI element was touched?
« on: May 11, 2015, 10:18:06 PM »
Hi there,
who can I detect on which element of my UI the user touched? I want to build a dynamic menu with a dynamic count of images in a slider which can swipe by the user and I need to know which image is in front of the menu, if the user touches a button.

First I tried via raycast which don't seems to work with Unity UI - so is there another trick? :)

6
PlayMaker Help / Detect object with camera raycast within PlayMaker?
« on: March 08, 2015, 12:23:27 PM »
Hi there,
is it possible to use camera raycast to detect an object within PlayMaker?

7
PlayMaker Help / Instantiate object[SOLVED]
« on: March 08, 2015, 12:22:24 PM »
Hi there,
is it possible to instantiate an GameObject within PlayMaker?

8
PlayMaker Help / Help, I'm getting confused with this script x_x[SOLVED]
« on: October 03, 2012, 12:18:30 PM »
Hi there,
I'm trying to build a PlayMaker-Action, which stores a Texture2D from a WebCamTexture as a PNG-File to disk.

I've build two version and both got a problem -.-

The (1) one:

Code: [Select]
import System;
import System.IO;
import HutongGames.PlayMaker;

@ActionCategory("Webcam")
public class PNGSave extends FsmStateAction{

    
@UIHint(UIHint.Variable)
@ObjectTypeAttribute(typeof(WebCamTexture))
public var webCamTexture : FsmObject;

public var fileName : FsmString;

public function Reset(){
fileName = null;
}




public function OnEnter(){

var tx2d = Texture2D(webCamTexture.height,webCamTexture.width,TextureFormat.RGB24, false);

tx2d.SetPixels(webCamTexture.GetPixels());
tx2d.Apply();

var bytes = tx2d.EncodeToPNG();

File.WriteAllBytes(Application.dataPath + "/../" + fileName + ".png", bytes);


    }
      
      
}

This stops with error: NullReferenceException: Object reference not set to an instance of an object


What's wrong here?



----

The (2) one:

Code: [Select]
import System;
import System.IO;
import HutongGames.PlayMaker;

 

@ActionCategory("Webcam")
public class PNGSave extends FsmStateAction{

    @UIHint(UIHint.Variable)
    public var gameobject : FsmOwnerDefault;

    public var fileName : FsmString;

    public function Reset(){
        gameobject = null;
        fileName = null;
    }

    

 

    public function OnEnter(){

var  go : GameObject = Fsm.GetOwnerDefaultTarget(gameobject);

var tx2d = Texture2D(go.renderer.material.mainTexture.height,go.renderer.material.mainTexture.width,TextureFormat.RGB24, false);

tx2d.SetPixels(go.renderer.material.mainTexture.GetPixels());
tx2d.Apply();

var bytes = tx2d.EncodeToPNG();


     var file = new File.Open(Application.dataPath + "../" + fileName + ".png",FileMode.Create);
     var binary = new BinaryWriter(file);
    
     binary.Write(bytes);
     file.Close();  

    }
}

This one starts and works, but the result PNG is corrupt. I think this is because the script get not the correct hight and witdh!?




-------------------
I hope someone could help me with this problem!!!!

9
PlayMaker Help / RageSpline Actions
« on: September 21, 2012, 02:14:44 AM »
Hi there,
are there any RageSpline-Actions for PlayMaker? I want to change the color and position of a RageSpline via PlayMaker - is this possible?

10
iOS Help / Touch GUI autoscale?
« on: June 30, 2012, 04:38:12 AM »
Hi there,
is there a way to setup GUI-elements, which are on a fixed relative position and a relative size? In the Touch-GUI-Tutorial the elements are absolute and this is really bad, if you build a game for an iPhone and iPad - specially on the new iPad.

The elements has to be proportional to the screenresolution.

Is this possible?

11
PlayMaker Help / Ragespline for GUI?
« on: June 29, 2012, 02:33:19 AM »
Hi there,
is it possible to combine Ragespline-objects with PlayMaker GUI?

12
PlayMaker Help / Touch GUI autoscale?
« on: June 29, 2012, 02:31:53 AM »
Hi there,
is there a way to setup GUI-elements, which are on a fixed relative position and a relative size? In the Touch-GUI-Tutorial the elements are absolute and this is really bad, if you build a game for an iPhone and iPad - specially on the new iPad.

The elements has to be proportional to the screenresolution.

Is this possible?

 

Pages: [1]