Class MaterialInterface
Inherited Members
Namespace: UnityEngine.Pixyz.Material
Assembly: Unity.Pixyz.SDKPlus.Runtime.dll
Syntax
public class MaterialInterface : Interface
Methods
| Name | Description |
|---|---|
| AddUniformProperty(uint, string, ShaderUniformType) | Add a shader uniform parameter to the given custom pattern |
| ClearAllMaterials() | Remove and delete all the materials |
| ConfigureFunctionLogger(string, bool, bool, bool) | |
| ConvertHeightMapToNormalMap(uint, double) | Convert a height map to a normal map |
| ConvertNormalMapToHeightMap(uint, double) | Convert a normal map to a height map |
| CopyMaterial(uint, bool) | copies a material |
| CreateCustomMaterialPattern(string) | Create a new custom material pattern |
| CreateImageFromDefinition(ImageDefinition) | Import an image from its raw data |
| CreateImagesFromDefinitions(ImageDefinitionList) | Import images from their raw data |
| CreateMaterial(string, string, bool) | Create a new material from pattern |
| CreateMaterialFromDefinition(MaterialDefinition) | Create PBR material from a material definition |
| CreateMaterialsFromDefinitions(MaterialDefinitionList) | Create PBR materials from material definitions |
| CreateMaterialsFromMaps(string) | Automatically creates PBR materials when importing PBR texture maps from a folder |
| ExportImage(uint, string) | Export an image |
| FindCustomMaterialPatternByName(string) | Returns the material pattern which has the given name |
| FindMaterialsByPattern(string) | Returns all materials using the given pattern |
| FindMaterialsByProperty(string, Regex) | Returns all materials which match a given property value |
| GetAllImages(MaterialList) | Returns all the images loaded in the current session or from a list of materials |
| GetAllMaterialPatterns() | Returns all the material patterns in the current session |
| GetAllMaterials() | Retrieve the list of all the materials in the material library |
| GetColorMaterialInfos(uint) | Get color material properties |
| GetCustomMaterialPattern(uint) | Returns the custom material pattern associated to the custom material |
| GetImageDefinition(uint) | Returns the raw data of an image |
| GetImageDefinitions(ImageList) | Returns the raw data of a set of images |
| GetImageSize(uint) | Returns the size of an image |
| GetImportImageFormats() | Give all the image format name and their extensions that can be imported in Pixyz |
| GetImpostorMaterialInfos(uint) | Get impostor texture material properties |
| GetLastError() | |
| GetMaterialDefinition(uint) | Returns the properties of a PBR Material |
| GetMaterialDefinitions(MaterialList) | Returns the properties of a set of PBR Materials |
| GetMaterialMainColor(uint) | Get the main color on any material pattern type |
| GetMaterialPatternType(uint) | Returns the MaterialPatternType name of the material |
| GetMaterialUserData(uint, uint) | Set or replace a userdata stored on an material |
| GetMultipleMaterialUserData(uint, MaterialList) | Batch version of getMaterialUserData |
| GetPBRMaterialInfos(uint) | Get PBR material properties |
| GetStandardMaterialInfos(uint) | Get standard material properties |
| GetUniformPropertyType(uint, string) | Get a shader uniform shader property type |
| GetUnlitTextureMaterialInfos(uint) | Get unlit texture material properties |
| HasMaterialUserData(uint, uint) | Set or replace a userdata stored on an material |
| HasMultipleMaterialUserData(uint, MaterialList) | Batch version of hasMaterialUserData |
| ImportImage(string) | Import an image |
| IsOpaque(uint) | Check if material is opaque |
| MakeMaterialNamesUnique(MaterialList) | Rename materials to have a unique name for each one |
| OnImageChanged(Action<Params>, CancellationTokenSource) | |
| OnMaterialChanged(Action<Params>, CancellationTokenSource) | |
| RemapIndexMap(ImageList, int) | create remapped versions of index maps |
| ResizeImage(uint, int, int) | Resize an image |
| SetFragmentShader(uint, string) | Set the fragment shader of a custom pattern |
| SetMaterialMainColor(uint, ColorAlpha) | Set the main color on any material pattern type |
| SetMaterialPattern(uint, string) | Sets the MaterialPattern name of the material |
| SetMaterialUserData(uint, uint, IntPtr) | Set or replace a userdata stored on an material |
| SetMultipleMaterialUserData(uint, MaterialList, PtrList) | Batch version of setMaterialUserData |
| SetPBRMaterialInfos(uint, PBRMaterialInfos) | Set PBR material properties |
| SetVertexShader(uint, string) | Set the vertex shader of a custom pattern |
| SubscribeToMaterialUserData() | subscribe to material user data. multiple different userdata can be stored on the same materials if subscribeToMaterialUserData is called multiple times |
| UnsetMaterialUserData(uint, uint) | Unset the userdata stored on an material |
| UnsetMultipleMaterialUserData(uint, MaterialList) | Batch version of unsetMaterialUserData |
| UnsubscribeFromMaterialUserData(uint) | |
| UpdateImageFromDefinition(uint, ImageDefinition) | Update an image from its raw data |
| UpdateImagesFromDefinitions(ImageList, ImageDefinitionList) | Update images from their raw data |
| WaitImageChanged(CancellationTokenSource) | |
| WaitMaterialChanged(CancellationTokenSource) |