Jump to content

PLUGINACTION for RPM


Recommended Posts

Hi all,

   I'm trying to use RPM IVA to launch mu own plugin.
 I've copied a PROP and renamed to: ASET\ASET_Props\Control\Switch_Tumble\swTumble_TEST.cfg

I've change just the label:

MODULE
	{
		name = JSILabel		
		transformName = TextTopObj
		alignment = Center
		anchor = LowerCenter
		transformOffset = 0.026,-0.011
		//fontName = Arial
		fontName = InconsolataGo-Bold
		fontSize = 7.0
		variableName = CUSTOM_ALCOR_BACKLIGHT_ON
		emissive = active 
		positiveColor = COLOR_ASET_SWITCHER_AGNAME_POSITIVECOLOR
		zeroColor = COLOR_ASET_SWITCHER_AGNAME_ZEROCOLOR
		negativeColor = COLOR_ASET_SWITCHER_AGNAME_NEGATIVECOLOR
		labelText = <=0=> $&$ CLK
	}

and added the pluginAction:
 

	MODULE
	{
		name = JSIActionGroupSwitch
		animationName = SwitchTumbleAnim
		switchTransform = SwitchColider
		actionName = plugin
		switchSound = ASET/ASET_Props/Sounds/tumbleClick01
		PLUGINACTION
		{
			name = ClassButton
			actionMethod = testHello 
		}
	}

I've put my DebugTest.dll file inside GameData. The cs code is:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace DebugTest
{
    public class ClassButton : InternalModule
    {
        public void testHello() {

            Debug.Log("Hello World PLUGIN");
        }
    }
}


But nothing happens (excepting the button lose the animation).
Could you please help me?

 

Thank you in advance

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...