Forum rules - please read before posting.

jamesfootlight

About

Username
jamesfootlight
Joined
Visits
4,767
Last Active
Roles
Member

Comments

  • Thanks Chris. I appreciate your points above, but considering the main issue is the inventory items not appearing in the cursor or being selected and not then being in the inventory, I don’t quite understand how a parameter in the animator will fix …
  • ok I have updated the script and now nothing works, am I completely redefining how my animator is set up then? And is my code now correct? using System.Collections;using System.Collections.Generic;using UnityEngine;using AC;public class CursorScri…
  • Ok thank you, s and this would work the same way for Player prefab too? Following the AC method also?
  • UPDATE I have added all the additions you made earlier so now my script has no errors, but the inventory object is still not being picked up from my inventory. It remains in the inventory also. Also none of the other asks are currently working. (…
  • Ok, so apologies for my interpretation, but this is now my script: (Quote) But I am now getting this error: Assets/CursorScript.cs(32,37): error CS0103: The name 'OnHotspotInteract' does not exist in the current context Here is a picture of my an…
  • (Quote) This error doesn;t seem to come up now when trying to click on an inventory item. But with my new cursor the hotspot highlight happens when the UI Cursor is over the inventory item, but I cannot click on it or select it. UPDATE i think tha…
  • Apologies, I also am not quite sure how to implement this either: (Quote)
  • Here is InventoryOnlyHotpot.cs Using AC;using UnityEngine;public class InventoryOnlyHotspot : MonoBehaviour{ public Hotspot hotspot; private void OnEnable () { EventManager.OnInventorySelect += OnInventorySelect; EventManage…
  • Thanks I’ll try the above.
  • (Quote) Which script do I need to show you? (Quote) My scripting skills are not good enough to understand how to do this, I was given help on the initial script, are you able to help my update? (Quote) And how would I go about this exactly? Would …
  • Any idea why I am getting this error however? NullReferenceException: Object reference not set to an instance of an object Spine.Skin.AddSkin (Spine.Skin skin) (at Assets/Spine/Runtime/spine-csharp/Skin.cs:68) SkinSetter.LateUpdate () (at Assets/Sl…
  • It works!
  • I think that some other code runs after and puts it back to the default skin It happens in SetCurrentDirection?
  • Getting this error: Assets/Sleepytime Village/Scripts/CustomActions/ActionSkinSwap.cs(41,34): error CS0119: 'Component.GetComponent<T>()' is a method, which is not valid in the given context And I'm guessing due t this I cannot place Ski…
  • but not without them it seems? As when i change to this code it doesn't work: using System.Collections;using System.Collections.Generic;using UnityEngine;using Spine;using Spine.Unity;using AC;public class SkinExample : MonoBehaviour{ // Drag y…
  • ok so, it works with the Start and Late update functions: using System.Collections; using System.Collections.Generic; using UnityEngine; using Spine; using Spine.Unity; using AC; public class SkinExample : MonoBehaviour { // Drag your skeleton on…
  • Hi Chris, almost there except it updates and reverts back after first setting the skin as soon as I move the Player See video: https://www.dropbox.com/s/p1znwtuzatcwspu/WalkRemovesSkin.mov?dl=0
  • Ok ignore last post, it does work. Adapted code below. I can call event and set change skins. Is there a way to make this custom action script and call particular skin rather than it being in the script? using System.Collections; using S…
  • If i have done it correctly, it does not change the skin with script modified when calling action
  • Not sure what exactly to remove in the script?
Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.