Create and access nodes and resources. More...
Public Member Functions | |
| Brush | CreateBrush (string name, BrushLibrary parent, BrushType brushType) |
| Creates a brush in the Brushes library. | |
| Brush | CreateBrush (string name, BrushLibrary parent, BrushTypeEnum brushType) |
| Creates a brush in the Brushes library. | |
| Node | CreateComponentNode (string name, Node parent, ComponentType componentType) |
| Creates a component node. | |
| DataSource | CreateDataSource (string name, [NotNull] DataSourceType dataSourceType) |
| Creates a data source in the Data Sources library. | |
| LightNode | CreateLightNode (string name, ProjectItem parent, LightKind kind) |
| Creates a light node of the specified kind. | |
| MessageType | CreateMessageType (string name, IEnumerable< PluginInterface.Property > messageArguments) |
| Creates a message type. | |
| NodeComponent | CreateNodeComponent (string name, NodeComponentHost parent, NodeComponentType nodeComponentType) |
| Creates a node component to the specified parent. | |
| NodeEffect2D | CreateNodeEffect2D (string name, INodeEffect2DContainer parent, NodeEffectType2D nodeEffectType) |
| Creates an effect. | |
| NodeEffectPrefab2D | CreateNodeEffectPrefab2D (string name, NodeEffectType2D nodeEffectType) |
| Use effects to apply post-processing effects to 2D nodes. | |
| ProjectItem | CreateProjectItem (Type projectItemType, string name, ProjectItem parent) |
| Creates a project item. | |
| T | CreateProjectItem< T > (string name, ProjectItem parent) |
| Creates a project item. | |
| RenderPass | CreateRenderPass (string name, IComposerContainer parent, RenderPassType renderPassType) |
| Creates a render pass. | |
| RenderPassPrefab | CreateRenderPassPrefab (string name, RenderPassType renderPassType) |
| Creates a render pass prefab. | |
| StudioPluginItem | CreateStudioPluginItem (string name, [CanBeNull] StudioPluginItem parent, [CanBeNull] string logicFactoryName) |
| Creates a studio plugin item. | |
| PreviewConfiguration? | GetPreviewConfiguration () |
| Gets the Preview application configuration that Kanzi Studio currently uses. | |
| ProjectItem | GetProjectItem (string projectItemPath) |
| Gets a project item. | |
| ProjectItem | GetProjectItemByKzbUrl (string kzbUrl, bool searchFromReferencedProjects) |
| Gets a project item by its kzb URL. | |
| IEnumerable< string > | GetReferringItemsKzbNames (string propertyTypeName) |
| Gets the kzb names of items that refer to the specified property type. | |
| bool | IsAbstract (Type projectItemType) |
| Checks whether a project item type is abstract and cannot be instantiated directly. | |
Public Member Functions inherited from ProjectItem | |
| void | AddProperty (Property property) |
| Adds a property to an item. | |
| void | AddProperty (string propertyName) |
| Adds a property to an item. | |
| void | BeginBatchModification (string batchName) |
| Begins a batch modification operation. | |
| bool | CanAddProperty (Property property) |
| Checks whether Kanzi Studio allows you to add a specific property to an item. | |
| bool | CanAddProperty (string propertyName) |
| Checks whether Kanzi Studio allows you to add a specific property to an item. | |
| void | CommitBatchModification () |
| Commits the current batch modification operation. | |
| bool | Delete () |
| Deletes a project item. | |
| void | DeregisterThumbnailUser (object user) |
| Deregisters a registerd thumbnail user. | |
| IEnumerable< Property > | GetAddableProperties () |
| Gets a list of properties which you can add to an item. | |
| T | GetAncestor< T > () |
| Gets the nearest item of given type in the parent tree. | |
| ProjectItem | GetChild (string childName) |
| Gets the child item of the current item with the given name. | |
| T | GetChild< T > (string childName) |
| Gets the child item of the current item with the given name and type. | |
| int | GetChildIndex (ProjectItem child) |
| Gets the index of a child project item within this item's children collection. | |
| IEnumerable< Property > | GetContextProperties () |
| Gets the context properties for this project item. | |
| IEnumerable< Property > | GetFixedProperties () |
| Gets the fixed properties for this project item that cannot be removed. | |
| IEnumerable< Property > | GetFrequentlyAddedProperties () |
| Gets the properties that are frequently added to this type of project item. | |
| ProjectItem | GetProjectItemByPath (string path) |
| Gets a project item by its path relative to this project item. | |
| string | GetRelativeProjectPathTo (ProjectItem anotherItem) |
| Gets the relative path from this project item to another project item. | |
| IEnumerable< Property > | GetRemovableProperties () |
| Gets a list of properties which you can remove from an item. | |
| BitmapSource | GetThumbnail (int width, int height, bool showChildren, bool showFullScreen, Node contextNode) |
| Gets the thumbnail image for a project item. | |
| BitmapSource | GetThumbnail (int width, int height, bool showChildren, bool showFullScreen, Node contextNode, float[] letterboxColorRGBA) |
| Gets the thumbnail image for a project item. | |
| IEnumerable< ProjectItem > | GetTreeItemsAsList () |
| Enumerates the items under this ProjectItem including this item itself, children, and grand children. | |
| bool | HasProperty (Property property) |
| Checks whether an item has a specific property. | |
| bool | HasProperty (string propertyName) |
| Checks whether an item has a specific property. | |
| bool | IsPropertyReadOnly (Property property) |
| Checks whether the specified property is read-only on this project item. | |
| void | RegisterThumbnailUser (object user, uint width, uint height, bool showChildren, bool showFullScreen, Node contextNode) |
| Registers a user for the thumbnail images for a project item. | |
| void | RemoveProperty (Property property) |
| Removes a property from an item. | |
| void | RemoveProperty (string propertyName) |
| Removes a property from an item. | |
| void | SetChildIndex (ProjectItem child, int index) |
| Sets the index of a child project item within this item's children collection. | |
| void | SetPropertyReadOnlyStatus (Property property, bool? value) |
| Sets the read-only status of the specified property on this project item. | |
| void | UpdateValidity () |
| Recalculates the validity the item. | |
Public Member Functions inherited from PropertyContainer | |
| object | Get (Property property) |
| Gets the value of a property. | |
| object | Get (string propertyName) |
| Gets the value of a property. | |
| T | Get< T > (TypedProperty< T > property) |
| Gets the value of a property. | |
| void | Set (string propertyName, object value) |
| Sets the value of a property. | |
| void | Set< T > (TypedProperty< T > property, T value) |
| Sets the value of a property. | |
Public Member Functions inherited from ChildContainer | |
| string | GenerateUniqueChildName (string defaultName) |
| Generates a unique name. | |
| string | GetInvalidityReasonOfNewName (string newName) |
| Returns the reason why the passed name is not valid. | |
Properties | |
| ProjectItem | ActiveComposition [get] |
| Gets the currently active composition in Kanzi Studio. | |
| AnimationClipLibrary | AnimationClipLibrary [get] |
| Gets the Animation Clips library which stores animation clips in a Kanzi Studio project. | |
| AnimationLibrary | AnimationLibrary [get] |
| Gets the Animation Data library which stores all animations in a Kanzi Studio project. | |
| ApplicationConfigurationResourceFileDirectory | ApplicationDirectory [get] |
| Gets the Application directory which contains the application configuration files in a Kanzi Studio project. | |
| Asset3DImportSourceDirectory | Asset3DImportSourceDirectory [get] |
| Gets the directory which contains the 3D asset import source files in a Kanzi Studio project. | |
| string | BinaryExportDirectory [get] |
| Gets the directory path where Kanzi Studio exports the kzb binary files. | |
| BrushLibrary | BrushLibrary [get] |
| Gets the Brushes library which stores brushes used in a Kanzi Studio project. | |
| BrushTypeLibrary | BrushTypeLibrary [get] |
| Gets the brush types available in a Kanzi Studio project. | |
| ComponentTypeLibrary | ComponentTypeLibrary [get] |
| Gets the component node types available in a Kanzi Studio project. | |
| DataSourceLibrary | DataSourceLibrary [get] |
| Gets the Data Sources library which stores data sources in a Kanzi Studio project. | |
| DataSourceTypeLibrary | DataSourceTypeLibrary [get] |
| Gets the Data Source Types library which stores data source types in a Kanzi Studio project. | |
| EnginePluginLibrary | EnginePluginLibrary [get] |
| Gets the Engine Plugins library which stores engine plugin references in a Kanzi Studio project. | |
| FontDirectory | FontDirectory [get] |
| Gets the Fonts directory which contains the fonts in a Kanzi Studio project. | |
| FontFamilyLibrary | FontFamilyLibrary [get] |
| Gets the Font Families library which contains the font families in a Kanzi Studio project. | |
| GenericResourceFileDirectory | GenericResourceFileDirectory [get] |
| Gets the Generic directory which contains the generic resource files in a Kanzi Studio project. | |
| IEnumerable< Guide > | Guides [get] |
| Gets the guides in a Kanzi Studio project. | |
| ImageDirectory | ImageDirectory [get] |
| Gets the Images directory which contains the image files in a Kanzi Studio project. | |
| bool | IsJavaProject [get] |
| Gets whether this project is a Java-based project. | |
| bool | IsNewlyCreatedProject [get] |
| Gets whether this is a newly created project that has not been saved yet. | |
| bool | IsSDKProject [get] |
| Checks whether this Kanzi Studio project follows the folder structure of a project that uses application code. | |
| LocaleLibrary | LocaleLibrary [get] |
| Gets the Locales library which stores locales in a Kanzi Studio project. | |
| MaterialLibrary | MaterialLibrary [get] |
| Gets the Materials library which contains the materials in a Kanzi Studio project. | |
| MaterialTypeLibrary | MaterialTypeLibrary [get] |
| Gets the Material Types library which contains the material types in a Kanzi Studio project. | |
| MeshLibrary | MeshLibrary [get] |
| Gets the Meshes library which contains the meshes in a Kanzi Studio project. | |
| MessageTypeLibrary | MessageTypeLibrary [get] |
| Gets the message types available in a Kanzi Studio project. | |
| NodeComponentTypeLibrary | NodeComponentTypeLibrary [get] |
| Gets the node component types available in a Kanzi Studio project. | |
| NodeEffectPrefab2DLibrary | NodeEffectPrefab2DLibrary [get] |
| Gets the 2D Effects library which stores the 2D effects in a Kanzi Studio project. | |
| NodeEffectType2DLibrary | NodeEffectType2DLibrary [get] |
| Gets the 2D effect types available in a Kanzi Studio project. | |
| PageTransitionCollectionLibrary | PageTransitionCollectionLibrary [get] |
| Gets the Page Transitions library which contains the page transitions in a Kanzi Studio project. | |
| PipelineItemLibrary | PipelineItemLibrary [get] |
| Gets the Object Sources library which contains the object sources and filters in a Kanzi Studio project. | |
| PrefabLibrary | PrefabLibrary [get] |
| Gets the Prefabs library which contains the prefabs used in a Kanzi Studio project. | |
| string | PreviewWorkingDirectory [get] |
| Gets the working directory used by the Kanzi Studio Preview. | |
| ProjectReferenceLibrary | ProjectReferenceLibrary [get] |
| Gets the Project References library which stores the project references and kzb file references in a Kanzi Studio project. | |
| new ProjectProperties | PropertyTypes [get] |
| RenderPassPrefabLibrary | RenderPassPrefabLibrary [get] |
| Gets the Render Pass Prefabs library which stores the render passes used in a Kanzi Studio project. | |
| RenderPassTypeLibrary | RenderPassTypeLibrary [get] |
| Gets the render pass types available in a Kanzi Studio project. | |
| Screen | Screen [get] |
| Gets the Screen node in a Kanzi Studio project. | |
| ShaderGraphsLibrary | ShaderGraphsLibrary [get] |
| Gets the Shader Graphs library which stores the visual shader graphs in a Kanzi Studio project. | |
| ShaderSourceDirectory | ShaderSourceDirectory [get] |
| Gets the Shaders directory which stores the shader source files in a Kanzi Studio project. | |
| ShortcutLibrary | ShortcutLibrary [get] |
| Gets the Bookmarks library which stores the bookmarks in a Kanzi Studio project. | |
| StateManagerLibrary | StateManagerLibrary [get] |
| Gets the State Managers library which stores state managers used in a Kanzi Studio project. | |
| StudioPluginItemLibrary | StudioPluginItemLibrary [get] |
| Gets the Studio Plugin Items library which stores studio plugin items in a Kanzi Studio project. | |
| StyleLibrary | StyleLibrary [get] |
| Gets the Styles library which stores styles used in a Kanzi Studio project. | |
| TagLibrary | TagLibrary [get] |
| Gets the Tags library which stores tags used in a Kanzi Studio project. | |
| TextureLibrary | TextureLibrary [get] |
| Gets the Textures library which stores textures used in a Kanzi Studio project. | |
| ThemeLibrary | ThemeLibrary [get] |
| Gets the Themes library which stores themes in a Kanzi Studio project. | |
| TimelineSequenceLibrary | TimelineSequenceLibrary [get] |
| Gets the Timeline Sequences library which stores timeline sequences in a Kanzi Studio project. | |
| TrajectoryLibrary | TrajectoryLibrary [get] |
| Gets the Trajectories library which stores trajectories used in a Kanzi Studio project. | |
| TriggerActionTypeLibrary | TriggerActionTypeLibrary [get] |
| Gets the trigger action types available in a Kanzi Studio project. | |
Properties inherited from ProjectItem | |
| IEnumerable< ProjectItem > | Children [get] |
| Gets all child items of a project item. | |
| string | IconLocation [get] |
| Gets the location of the icon for this project item in Kanzi Studio. | |
| object | IconModifier [get, set] |
| Gets or sets the icon modifier for this project item. | |
| string | InvalidityReason [get] |
| Gets the reason why this project item is in an invalid state, or null if the item is valid. | |
| bool | IsDeleted [get] |
| Gets whether this project item has been deleted. | |
| bool | IsDisposed [get] |
| Gets whether this project item has been disposed. | |
| bool | IsHidden [get, set] |
| Gets or sets whether this project item is hidden in Kanzi Studio. | |
| bool | IsReadOnly [get, set] |
| Gets or sets whether this project item is read-only. | |
| bool | IsValidState [get] |
| Gets whether this project item is in a valid state. | |
| string | KzbUrl [get] |
| Gets the kzb URL of a project item. | |
| string | Name [get, set] |
| Gets or sets the name of a project item. | |
| ProjectItem | Parent [get, set] |
| Gets or sets the parent of this project item. | |
| string | Path [get] |
| Gets the path to this project item within the project. | |
| Project | Project [get] |
| Gets the project in which this item is located. | |
| Type | ProjectItemType [get] |
| Gets the type of this project item. | |
| PropertyTypeLibrary | PropertyTypeLibrary [get] |
| Gets the Property Types library of the project of this item which stores all property types you create in a Kanzi Studio project. | |
| object | this[Property property] [get, set] |
| Gets or sets the value of the specified property on this project item. | |
| object | this[string propertyName] [get, set] |
| Gets or sets the value of the property with the specified name on this project item. | |
| string | ToolTip [get] |
| Gets the tooltip text for this project item in Kanzi Studio. | |
| string | TypeDisplayName [get] |
| Gets the type of a project item. | |
Properties inherited from PropertyContainer | |
| IEnumerable< Property > | Properties [get] |
| Gets the properties in a project item or node component. | |
Properties inherited from FileSystemProjectItem | |
| string | FileSystemParentDirectory [get] |
| Gets the path to the directory in which a resource file is stored. | |
| string | FileSystemPath [get] |
| Gets the full path to a resource file. | |
Events | |
| EventHandler< CompositionChangedEventArgs > | ActiveCompositionChanged |
| Occurs when the active composition changes. | |
| EventHandler | BinaryExported |
| Occurs after the export of the kzb file of the project is completed. | |
| EventHandler | BinaryExporting |
| Occurs when the export of the kzb file of the project starts. | |
| EventHandler | Closing |
| Occurs when the project is about to close. | |
| EventHandler< ProjectMergeEventArgs > | Merged |
| Occurs after a project merge operation is completed. | |
| EventHandler< ProjectMergeEventArgs > | Merging |
| Occurs when a project merge operation is about to start. | |
| EventHandler< ProjectSavingEventArgs > | Saved |
| Occurs after Kanzi Studio successfully saves the project. | |
| EventHandler< ProjectSavingEventArgs > | Saving |
| Occurs when the saving of the project starts. | |
Events inherited from ProjectItem | |
| EventHandler< CollectionChangedEventArgs< ProjectItem > > | ChildCollectionChanged |
| Occurs when the children collection of this project item changes. | |
| EventHandler< DeletedEventArgs > | Deleted |
| Occurs after this project item has been deleted. | |
| EventHandler< DeletedEventArgs > | Deleting |
| Occurs when this project item is about to be deleted. | |
| EventHandler< CollectionChangedEventArgs< ProjectItem > > | DescendantChildCollectionChanged |
| Occurs when the children collection of this project item or any of its descendants changes. | |
| EventHandler< DeletedEventArgs > | DescendantDeleted |
| Occurs after a descendant of this project item has been deleted. | |
| EventHandler< DynamicPropertyChangedEventArgs > | DescendantDynamicPropertyChanged |
| Occurs when a dynamic property value changes on this project item or any of its descendants. | |
| EventHandler< ParentChangedEventArgs > | DescendantParentChanged |
| Occurs when the parent of this project item or any of its descendants changes. | |
| EventHandler< CollectionChangedEventArgs< string > > | DescendantPropertyCollectionChanged |
| Occurs when a property is added to or removed from this project item or any of its descendants. | |
| EventHandler< ProjectItemEventArgs > | Disposing |
| Occurs when this project item is being disposed. | |
| EventHandler< DynamicPropertyChangedEventArgs > | DynamicPropertyChanged |
| Occurs when a dynamic property value changes on this project item. | |
| EventHandler< ParentChangedEventArgs > | ParentChanged |
| Occurs when the parent of this project item changes. | |
| EventHandler< PathChangedEventArgs > | PathChanged |
| Occurs when the path of this project item changes. | |
| EventHandler< DynamicPropertyChangedEventArgs > | PreviewDescendantDynamicPropertyChanged |
| Occurs before a dynamic property value changes on this project item or any of its descendants. | |
| EventHandler< DynamicPropertyChangedEventArgs > | PreviewDynamicPropertyChanged |
| Occurs before a dynamic property value changes on this project item. | |
| EventHandler< CollectionChangedEventArgs< string > > | PropertyCollectionChanged |
| Occurs when a property is added to or removed from this project item. | |
| EventHandler< ReplaceEventArgs > | Replacing |
| Occurs when this project item is being replaced. | |
| EventHandler | ThumbnailChanged |
| Occurs when the thumbnail of this project item changes. | |
| EventHandler | ValidityChanged |
| Occurs when the validity state of this project item changes. | |
Create and access nodes and resources.
Use the functions in this class to create nodes and resources in a project and to access the resources in resource libraries in a project.
| Brush CreateBrush | ( | string | name, |
| BrushLibrary | parent, | ||
| BrushType | brushType ) |
Creates a brush in the Brushes library.
| name | The name of the brush. |
| parent | The library in which you create the brush. |
| brushType | The type of the brush you create with this function. BrushTypeLibrary stores the brush types available in a Kanzi Studio project. |
Examples
To create a green Color Brush use this code snippet.
In the Visual Studio solution of your plugin, in the Solution Explorer right-click the project name, select Add Reference, and add the reference to the PresentationCore assembly. Your plugin uses this assembly to define the color you use to set the Brush Color property of the Color Brush.
To create a function that creates texture brushes that use PNG images from a directory:
| Brush CreateBrush | ( | string | name, |
| BrushLibrary | parent, | ||
| BrushTypeEnum | brushType ) |
Creates a brush in the Brushes library.
You can use this function to create brushes of types that come with Kanzi Studio.
| name | The name of the brush. |
| parent | The library in which you create the brush. |
| brushType | The type of the brush you create with this function. Use BrushTypeEnum.COLOR for Color Brush, BrushTypeEnum.CONTENT for Content Brush, BrushTypeEnum.MATERIAL for Material brush, and BrushTypeEnum.TEXTURE for Texture Brush. |
Examples
To create a green Color Brush use this code snippet.
In the Visual Studio solution of your plugin, in the Solution Explorer right-click the project name, select Add Reference, and add the reference to the PresentationCore assembly. Your plugin uses this assembly to define the color you use to set the Brush Color property of the Color Brush.
| Node CreateComponentNode | ( | string | name, |
| Node | parent, | ||
| ComponentType | componentType ) |
Creates a component node.
| name | The name of the node. |
| parent | The parent node of the node you create with this function. |
| componentType | The component type of the node. |
Examples
To create component nodes:
| DataSource CreateDataSource | ( | string | name, |
| [NotNull] DataSourceType | dataSourceType ) |
Creates a data source in the Data Sources library.
| name | The name of the data source. |
| dataSourceType | The type of the data source. DataSourceTypeLibrary stores the data source types available in a Kanzi Studio project. |
| LightNode CreateLightNode | ( | string | name, |
| ProjectItem | parent, | ||
| LightKind | kind ) |
Creates a light node of the specified kind.
Use this function instead of CreateProjectItem(System.Type, string, ProjectItem) when you need to create a typed light (Directional, Point, or Spot). The generic CreateProjectItem path creates a default-typed light, and the internal LightType property cannot be changed afterward using the public API.
| name | The name of the light node. |
| parent | The parent node of the light node you create with this function. Must be a Node3D. |
| kind | The kind of light to create. |
| MessageType CreateMessageType | ( | string | name, |
| IEnumerable< PluginInterface.Property > | messageArguments ) |
Creates a message type.
Use this function to create message types in the Message Type library of a Kanzi Studio project.
| name | The name of the message type. |
///
| messageArguments | The arguments of the message type. Kanzi engine uses these arguments with the execution of the message. |
| NodeComponent CreateNodeComponent | ( | string | name, |
| NodeComponentHost | parent, | ||
| NodeComponentType | nodeComponentType ) |
Creates a node component to the specified parent.
| name | The name of the node component. |
| parent | The NodeComponentHost in which you want to create the node component. |
| nodeComponentType | The type of the node component you create with this function. NodeComponentTypeLibrary stores the node component types available in a Kanzi Studio project. |
Examples
To create a node component:
| NodeEffect2D CreateNodeEffect2D | ( | string | name, |
| INodeEffect2DContainer | parent, | ||
| NodeEffectType2D | nodeEffectType ) |
Creates an effect.
Use effects to apply post-processing effects to 2D nodes. This function creates the effect as child of an INodeEffect2DContainer, such as the NodeEffectPrefab2D.
| name | The name of the effect. |
| parent | The parent effect container of the node effect that you create with this function. |
| nodeEffectType | The type of the node effect. NodeEffectType2DLibrary stores the node effect types available in a Kanzi Studio project. |
Examples
To replace the node effect of an existing node effect prefab:
| NodeEffectPrefab2D CreateNodeEffectPrefab2D | ( | string | name, |
| NodeEffectType2D | nodeEffectType ) |
Use effects to apply post-processing effects to 2D nodes.
This function creates the effect prefabs in the 2D Effects library of a Kanzi Studio project.
| name | The name of the node effect prefab. |
| nodeEffectType | The type of the node effect. NodeEffectType2DLibrary stores the node effect types available in a Kanzi Studio project. |
Examples
To create a node effect prefab:
| ProjectItem CreateProjectItem | ( | Type | projectItemType, |
| string | name, | ||
| ProjectItem | parent ) |
Creates a project item.
Use this function to create Kanzi nodes and resources.
| projectItemType | The type of the item. |
| name | The name of the item. |
| parent | The parent item of the item you create with this function. |
Examples
To create five Image2D nodes in the RootNode node:
| T CreateProjectItem< T > | ( | string | name, |
| ProjectItem | parent ) |
Creates a project item.
Use this function to create Kanzi nodes and resources.
| T | The type of the item you want to create with this function. |
| name | The name of the item. |
| parent | The parent item of the item you create with this function. |
Examples
To create a function which creates an Empty Node 2D:
| T | : | ProjectItem |
| RenderPass CreateRenderPass | ( | string | name, |
| IComposerContainer | parent, | ||
| RenderPassType | renderPassType ) |
Creates a render pass.
Use this function to create render passes of different types in the Render Pass Prefabs library of a Kanzi Studio project.
| name | The name of the render pass. |
| parent | The parent render pass of the render pass you create with this function. |
| renderPassType | The type of the render pass. RenderPassTypeLibrary stores the render pass types available in a Kanzi Studio project. |
Examples
To create a basic set of render passes which first clear depth and then draw all the content of the scene:
To create render passes which render to a composition target and draw that to the screen use this code snippet.
In the Visual Studio solution of your plugin, in the Solution Explorer right-click the project name, select Add Reference, and add the reference to the PresentationCore assembly. Your plugin uses this assembly to define the color you use to set the Clear Color property for a Clear Render Pass.
| RenderPassPrefab CreateRenderPassPrefab | ( | string | name, |
| RenderPassType | renderPassType ) |
Creates a render pass prefab.
Use this function to create render pass prefabs in the Render Pass Prefabs library of a Kanzi Studio project.
| name | The name of the render pass prefab. |
| renderPassType | The type of the render pass. RenderPassTypeLibrary stores the render pass types available in a Kanzi Studio project. |
Examples
To create a render pass prefab that contains a basic set of render passes which first clear depth and then draw all the content of the scene:
| StudioPluginItem CreateStudioPluginItem | ( | string | name, |
| [CanBeNull] StudioPluginItem | parent, | ||
| [CanBeNull] string | logicFactoryName ) |
Creates a studio plugin item.
| name | The name of the studio plugin item. |
| parent | The parent studio plugin item, or null to create at the root of the library. |
| logicFactoryName | The name of the logic factory, or null. |
| PreviewConfiguration? GetPreviewConfiguration | ( | ) |
Gets the Preview application configuration that Kanzi Studio currently uses.
If Kanzi Studio cannot find the build configuration set by the user, Kanzi Studio uses the next available build configuration. The Preview application configuration is not always the same as the one that the user sets in the properties of their Kanzi Studio project. To get the Preview application configuration set by the user, get the values of PreviewDebugReleaseConfiguration and PreviewVisualStudioVersion properties.
| ProjectItem GetProjectItem | ( | string | projectItemPath | ) |
Gets a project item.
For example, use this function to get a node in the node tree and then add child nodes to it, or add, set, and modify the values of the node properties.
| projectItemPath | The path to the project item you want to get. |
Examples
To get a project item:
| ProjectItem GetProjectItemByKzbUrl | ( | string | kzbUrl, |
| bool | searchFromReferencedProjects ) |
Gets a project item by its kzb URL.
| kzbUrl | The kzb URL of the project item. |
| searchFromReferencedProjects | Whether to search in referenced projects. |
Gets the kzb names of items that refer to the specified property type.
| propertyTypeName | The name of the property type. |
Checks whether a project item type is abstract and cannot be instantiated directly.
| projectItemType | The type to check. |
|
get |
Gets the currently active composition in Kanzi Studio.
Gets the Animation Clips library which stores animation clips in a Kanzi Studio project.
Gets the Animation Data library which stores all animations in a Kanzi Studio project.
After you get the library, you can access and create resources in that library.
Examples
To create an animation in the Animation Data library:
|
get |
Gets the Application directory which contains the application configuration files in a Kanzi Studio project.
Gets the directory which contains the 3D asset import source files in a Kanzi Studio project.
|
get |
Gets the directory path where Kanzi Studio exports the kzb binary files.
Gets the Brushes library which stores brushes used in a Kanzi Studio project.
After you get the library, you can access and create resources in that library.
The Brushes library in a Kanzi Studio project.
Examples
To get a brush from the Brushes library:
Gets the brush types available in a Kanzi Studio project.
Examples
To get the brush types available in a Kanzi Studio project:
Gets the component node types available in a Kanzi Studio project.
Examples
To get the available component node types:
Gets the Data Sources library which stores data sources in a Kanzi Studio project.
Gets the Data Source Types library which stores data source types in a Kanzi Studio project.
Gets the Engine Plugins library which stores engine plugin references in a Kanzi Studio project.
Gets the Fonts directory which contains the fonts in a Kanzi Studio project.
After you get the directory, you can access and import fonts.
Examples
To import a font file to the Fonts directory and add that font file to a Font Family:
Gets the Font Families library which contains the font families in a Kanzi Studio project.
After you get the library, you can access and create font families.
Examples
To create a function that creates a Font Family and adds to it a font file:
Gets the Generic directory which contains the generic resource files in a Kanzi Studio project.
After you get the directory, you can access and import files.
Examples
To import a text file to the Generic directory:
|
get |
Gets the guides in a Kanzi Studio project.
Examples
To get the guides in a Kanzi Studio project:
To create a guide:
Gets the Images directory which contains the image files in a Kanzi Studio project.
Examples
To get an image file in the Images directory of a Kanzi Studio project:
To import an image to the Images directory:
|
get |
Gets whether this project is a Java-based project.
|
get |
Gets whether this is a newly created project that has not been saved yet.
|
get |
Checks whether this Kanzi Studio project follows the folder structure of a project that uses application code.
If the project follows the folder structure of a project that uses application code, true, otherwise false.
Gets the Locales library which stores locales in a Kanzi Studio project.
Gets the Materials library which contains the materials in a Kanzi Studio project.
After you get the library, you can access and create materials.
Examples
To create a material in the Materials library:
Gets the Material Types library which contains the material types in a Kanzi Studio project.
After you get the library, you can access and create material types.
Examples
To get all material types in the Material Types library of a Kanzi Studio project:
To create a function that creates a material type from vertex and fragment shaders:
Gets the Meshes library which contains the meshes in a Kanzi Studio project.
Examples
To get the meshes in a Kanzi Studio project:
Gets the message types available in a Kanzi Studio project.
Examples
To get the message types available in a Kanzi Studio project:
Gets the node component types available in a Kanzi Studio project.
Examples
To get the node component types available in Kanzi:
Gets the 2D Effects library which stores the 2D effects in a Kanzi Studio project.
After you get the library, you can access and create resources in that library.
Examples
To get the 2D effects in a Kanzi Studio project:
Gets the 2D effect types available in a Kanzi Studio project.
Examples
To get the 2D effect types available in Kanzi:
Gets the Page Transitions library which contains the page transitions in a Kanzi Studio project.
After you get the library, you can access and create page transitions.
Examples
To create and configure a page transition:
Gets the Object Sources library which contains the object sources and filters in a Kanzi Studio project.
After you get the library, you can access and create object sources and filters.
Examples
To create a Tag Filter:
Gets the Prefabs library which contains the prefabs used in a Kanzi Studio project.
After you get the library, you can access and create prefabs.
The Prefabs library in a Kanzi Studio project.
Examples
To create a prefab in the Prefabs library and instantiate it:
|
get |
Gets the working directory used by the Kanzi Studio Preview.
Gets the Project References library which stores the project references and kzb file references in a Kanzi Studio project.
Examples
To convert all project references to kzb file references:
|
get |
Implements ProjectItem.
Gets the Render Pass Prefabs library which stores the render passes used in a Kanzi Studio project.
After you get the library, you can access and create resources in that library.
Examples
To get the render pass prefabs in a Kanzi Studio project:
Gets the render pass types available in a Kanzi Studio project.
Examples
To get the render pass types available in Kanzi:
Gets the Screen node in a Kanzi Studio project.
The Screen node is the root node of the node tree in Kanzi.
The Screen node.
Examples
To get the Screen node:
Gets the Shader Graphs library which stores the visual shader graphs in a Kanzi Studio project.
After you get the library, you can access shader graphs and read or write their model state via ShaderGraph.GetModelJson and ShaderGraph.SetModelJson(string).
Gets the Shaders directory which stores the shader source files in a Kanzi Studio project.
Examples
To get all shader source files in the Shaders directory of a Kanzi Studio project:
Gets the Bookmarks library which stores the bookmarks in a Kanzi Studio project.
After you get the library, you can access and create bookmarks.
Examples
To create a bookmark in the Bookmarks library:
Gets the State Managers library which stores state managers used in a Kanzi Studio project.
After you get the library, you can access and create state managers in that library.
The State Manager library in a Kanzi Studio project.
Examples
To create a state manager with a state group, state, and a state object in the State Managers library:
To get a state manager from the State Managers library:
Gets the Studio Plugin Items library which stores studio plugin items in a Kanzi Studio project.
Gets the Styles library which stores styles used in a Kanzi Studio project.
After you get the library, you can access and create resources in that library.
The Styles library in a Kanzi Studio project.
Examples
To create a named style in the Styles library:
To create a typed style in the Styles library:
To get a style from the Styles library:
|
get |
Gets the Tags library which stores tags used in a Kanzi Studio project.
After you get the library, you can access and create resources in that library.
The Tags library in a Kanzi Studio project.
Examples
To get a tag from the Tags library:
To create a tag in the Tags library:
Gets the Textures library which stores textures used in a Kanzi Studio project.
After you get the library, you can access and create resources in that library.
The Textures library in a Kanzi Studio project.
Examples
To get a texture from the Textures library:
To create a Single Texture in the Textures library:
To create a function that creates a Single Texture from an image file:
To create a Render Target Texture in the Textures library:
Gets the Themes library which stores themes in a Kanzi Studio project.
Gets the Timeline Sequences library which stores timeline sequences in a Kanzi Studio project.
Gets the Trajectories library which stores trajectories used in a Kanzi Studio project.
After you get the library, you can access and create resources in that library.
Examples
To create a trajectory in the Trajectories library and set a Trajectory Layout node to use that trajectory:
Gets the trigger action types available in a Kanzi Studio project.
Examples
To get the trigger action types available in a Kanzi Studio project:
| EventHandler<CompositionChangedEventArgs> ActiveCompositionChanged |
Occurs when the active composition changes.
| EventHandler BinaryExported |
Occurs after the export of the kzb file of the project is completed.
Examples
To subscribe to the BinaryExported event:
| EventHandler BinaryExporting |
Occurs when the export of the kzb file of the project starts.
Examples
To subscribe to the BinaryExporting event:
| EventHandler Closing |
Occurs when the project is about to close.
| EventHandler<ProjectMergeEventArgs> Merged |
Occurs after a project merge operation is completed.
| EventHandler<ProjectMergeEventArgs> Merging |
Occurs when a project merge operation is about to start.
Occurs after Kanzi Studio successfully saves the project.
| EventHandler<ProjectSavingEventArgs> Saving |
Occurs when the saving of the project starts.