Knowledge Base - Component Menu

Creating a visual script with iCanScript requires that you install the iCanScript Visual Script component on your game object. The iCanScript Visual Script component can be attached using Unity’s top-level Component menu as well as the Add Component button located in the Inspector.

Figure 1. iCanScript Component menu extension.
Figure 1. iCanScript Component menu extension.
Figure 2. iCanScript Inspector->Component menu extension.
Figure 2. iCanScript Inspector->Component menu extension.

Attaching a Visual Script component

The Create Visual Script menu item is used to attach an iCanScript Visual Script component to the selected game object.

The Visual Script component is at the root of your visual script. It includes the iCanScript engine code that compiles and runs the visual script when the Unity engine runs. It also saves & reloads your visual script when the scene in which it is contained is saved or reloaded.

A game object containing an iCanScript Visual Script can be edited using the visual editor.

Table 1. Create Visual Script Enable State
Menu State Condition
Enabled - Selected game object without a Visual Script component.
Disabled - No selected object;
- Selected object already has a Visual Script component.

Details

Created : 2015-03-16 20:26:40, Last Modified : 2015-03-16 20:26:40

User Comments

Add a Comment

Search Articles

Member Login