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 - Silicon Power

Pages: [1] 2 3 ... 8
1
Hey guys. Please look at below pic. I need to render waveform of an audio file like this windows into a UI image or UI RawImage. Is that possible with Playmaker?

2
Action Requests / Re: UV Tiling/Scale Action?
« on: September 17, 2020, 12:49:57 PM »
Up

3
PlayMaker Help / How to get/set an object uv tiling?
« on: September 17, 2020, 12:10:44 PM »
Hi. Is there any way to get/set an object uv tilling?

4
Action Requests / UV Tiling/Scale Action?
« on: September 09, 2020, 05:26:04 AM »
Hi there. Is there any action to change UV tiling? (I don't want to change tiling on materials). I know there is an action called "Offset UV" and it's really useful but I need action to increase/decrease UV scale/tiling too 

5
PlayMaker Help / Uv Tiling Action?
« on: September 08, 2020, 12:22:31 PM »
Hi there. Is there any action to adjust UV tiles? (I don't want to change tiling on materials). I know there is an action called "Offset UV" and it's really useful for my but I need action to increase/decrease UV tile too  :)

6
PlayMaker Help / How long does it take to find an array item?
« on: August 25, 2020, 08:41:27 AM »
Hi. I have an array list contains 100 materials I use an "Array Search" action to find a material but I wonder how many second it takes? Because I need to add a wait action otherwise it doesn't work!

7
Hi.
Try this version :)

Thank you a lot. But something isn't right it always show number 1 doesn't matter where I click

8
PlayMaker Help / Add collider action?
« on: August 15, 2020, 06:58:51 AM »
Hi. I need to to add a mesh collider at runtime but there is no Add Collider action I've checked Echo System wasn't there either. 

9
Hi.
Can you try this, i have not tested.

You should do a raycast 1st then (when Hit) do the action in the attachment below.

When I play game it changes "Hit Sub Mesh Number" variable to None!  :'(

11
hi, i think you forgot to link the script :)

Sorry yes I forgot to copy the C# code.

Code: [Select]
using UnityEngine;

public class FindHitSubMesh : MonoBehaviour
{

    private int[] subMeshesFaceTotals;
    private int totalSubMeshes;

    void Awake()
    {
        MeshFilter mf = (MeshFilter)gameObject.GetComponent(typeof(MeshFilter));
        Mesh mesh = mf.mesh;

        totalSubMeshes = mesh.subMeshCount;
        subMeshesFaceTotals = new int[totalSubMeshes];

        for (int i = 0; i < totalSubMeshes; i++)
        {
            subMeshesFaceTotals[i] = mesh.GetTriangles(i).Length / 3;
        }
    }


    void OnMouseDown()
    {

        RaycastHit hit;

        if (!Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out hit, Mathf.Infinity))
            return;

        int hitSubMeshNumber = 0;
        int maxVal = 0;

        for (int i = 0; i < totalSubMeshes; i++)
        {
            maxVal += subMeshesFaceTotals[i];

            if (hit.triangleIndex <= maxVal - 1)
            {
                hitSubMeshNumber = i + 1;
                break;
            }

        }

        Debug.Log("We hit sub mesh number: " + hitSubMeshNumber);
    }
}

12
Action Requests / I need to conver this C# script to a playmaker action.
« on: August 13, 2020, 04:35:03 AM »
Hi. this C# script can get material index of an object where you click. Can someone please convert it to a playmaker action?

13
Ok I find a C# material that does this but can some please convert it to a playmaker action?

Code: [Select]
using UnityEngine;

public class FindHitSubMesh : MonoBehaviour
{

    private int[] subMeshesFaceTotals;
    private int totalSubMeshes;

    void Awake()
    {
        MeshFilter mf = (MeshFilter)gameObject.GetComponent(typeof(MeshFilter));
        Mesh mesh = mf.mesh;

        totalSubMeshes = mesh.subMeshCount;
        subMeshesFaceTotals = new int[totalSubMeshes];

        for (int i = 0; i < totalSubMeshes; i++)
        {
            subMeshesFaceTotals[i] = mesh.GetTriangles(i).Length / 3;
        }
    }


    void OnMouseDown()
    {

        RaycastHit hit;

        if (!Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out hit, Mathf.Infinity))
            return;

        int hitSubMeshNumber = 0;
        int maxVal = 0;

        for (int i = 0; i < totalSubMeshes; i++)
        {
            maxVal += subMeshesFaceTotals[i];

            if (hit.triangleIndex <= maxVal - 1)
            {
                hitSubMeshNumber = i + 1;
                break;
            }

        }

        Debug.Log("We hit sub mesh number: " + hitSubMeshNumber);
    }
}

14
Please read second post

15
Hi is there any way or action to get position of an object relative to another object instead of 0.0.0 position on the map?

Pages: [1] 2 3 ... 8