Adventure Puzzle Kit - V1.6 - Documentation
  • APK - V1.6: Introduction
  • ⭐Getting Started
    • Quick Setup
    • Setting Up Interactive Objects
    • Tag & Layer Reference
  • 🏔️URP Setup
    • URP Setup
    • Deferred Rendering?
  • HDRP Setup
    • HDRP Setup
  • 🛡️System Breakdowns
    • AK Inventory Canvas
    • Door System
    • Keypad & Phone
    • Note & Letter
    • Themed Key
    • Generator
    • Gas Mask
    • Flashlight
    • Examine
    • Padlock
    • Chess
    • Lever
    • Valve
    • Fuse
    • Safe
  • ⏭️Extending
    • System Inputs
    • Name / Emission Highlighting
    • System Namespace
    • Adding a Trigger Event
    • Adding Audioclips
      • Audio Effect Volume
    • Swapping Character Controllers
  • ❓Support
    • FAQ
    • Examine Issues?
    • Post Processing Errors
    • Examine Text Missing?
    • Tooltip Manager
    • Yellow Warnings?
    • Item Pickup Range
    • Animation Rotations
    • I can't see new fields / variables?
  • 🌀Development
    • Patch Notes - V1.6
    • Roadmap
  • 📧Contact Me
    • Contact Me
    • Request A Feature
    • My Other Assets
Powered by GitBook
On this page
  • Scripts with Custom Editors:
  • How to edit these scripts to include new variables:
  1. Support

I can't see new fields / variables?

PreviousAnimation RotationsNextPatch Notes - V1.6

Last updated 2 years ago

Some scripts do have custom editors which mean that if you add fields or variables to the parent script, they won't appear unless you update the custom editor.

Scripts with Custom Editors:

  • AKItem

  • AKUIManager

  • BasicNote

  • BasicReverseNote

  • CustomNote

  • CustomReverseNote

  • ExaminableItem

  • FlashlightItemBaseClass

  • GeneratorItem

  • LeverSystemController

How to edit these scripts to include new variables:

  • Each script that you see in the inspector that uses a custom editor will have a button called "Open Editor Script" - So you can easily access it.

  • Lets take the FlashlightItemBaseClass as an example:

  • You first set the SerializedProperty for the fields you've created in your other script:

SerializedProperty NameOfFieldsFromOtherScript;

Then in OnEnable, you must find that property.

private void OnEnable()
{
    NameOfFieldsFromOtherScript = serializedObject.FindProperty("NameOfFieldsFromOtherScript");
}

In the OnInspectorGUI you must add the field to show the field

public override void OnInspectorGUI()
{
    EditorGUILayout.PropertyField(NameOfFieldsFromOtherScript);
}
❓