Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

Can't access StarterAssets namespace from another script

$
0
0
Hello. I can't access a script from StarterAssets namespace from my inventory script, but I can do it other way around. Heres the inventory code, doesn't work neither with StarterAssets or StarterAssetsPackageChecker (which was a potential fix): using BzKovSoft.Inventory.Samples.PropertySettings; using BzKovSoft.Inventory.UI; using UnityEngine; using StarterAssets; using StarterAssetsPackageChecker; namespace BzKovSoft.Inventory.Samples.UI_Inventory { public class BzInventorySpawner : MonoBehaviour { And StarterAssets code, does work with the BZ inventory namespace: using UnityEngine; using BzKovSoft.Inventory.Samples; namespace StarterAssets { public class ThirdPersonController : MonoBehaviour { I need to set "ThirdPersonController.LockCameraPosition = false;" (or something like that) in the inventory script. As I have googled around there have been issues with accessing StarterAssets namespaces before but non of the solutions (like renaminng folders and relocating scripts) have worked for me. Is there another way to switch the bool LockCameraPosition in my other script?

Viewing all articles
Browse latest Browse all 398

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>