Show / Hide Table of Contents

Class MaterialInstanceConstant

Material Instances may be used to change the appearance of a material without incurring an expensive recompilation of the material.

Inheritance
System.Object
UObject
MaterialInterface
MaterialInstance
MaterialInstanceConstant
LandscapeMaterialInstanceConstant
Inherited Members
MaterialInstance.PhysMaterial
MaterialInstance.Parent
MaterialInstance.bHasStaticPermutationResource
MaterialInstance.bOverrideSubsurfaceProfile
MaterialInstance.BasePropertyOverrides
MaterialInstance.PermutationTextureReferences
MaterialInstance.StaticParameters
MaterialInterface.GetBaseMaterial()
MaterialInterface.GetPhysicalMaterial()
MaterialInterface.SetForceMipLevelsToBeResident(Boolean, Boolean, Single, Int32)
MaterialInterface.SubsurfaceProfile
MaterialInterface.LightmassSettings
MaterialInterface.bTextureStreamingDataSorted
MaterialInterface.TextureStreamingDataVersion
MaterialInterface.AssetUserData
MaterialInterface.PreviewMesh
MaterialInterface.ThumbnailInfo
MaterialInterface.AssetImportData
MaterialInterface.LightingGuid
UObject.TransientPackage
UObject.CastTo<T>(UObject)
UObject.CastTo(UObject, Type)
UObject.RemoveObject(UObject)
UObject.MakeObjectArrayField<T>(NativeArray*)
UObject.NotImplemented<T>()
UObject.Construct()
UObject.GetHashCode()
UObject.GetName()
UObject.ToString()
UObject.Name
UObject._None
UObject.None
UObject.ObjPointer
UObject.LoadObjectFromClass(Class, UObject, String, String, LoadFlags, PackageMap, Boolean)
UObject.LoadClass(Class, UObject, String, String, LoadFlags, PackageMap)
UObject.GetPropertyFor<T>(Name)
UObject.ExecuteUbergraph
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class MaterialInstanceConstant : MaterialInstance
Remarks

General modification of the material cannot be supported without recompilation, so the instances are limited to changing the values of predefined material parameters. The parameters are statically defined in the compiled material by a unique name, type and default value.

Properties

| Improve this Doc View Source

DefaultObject

Get UE4 Default Object for this Class

Declaration
public static MaterialInstanceConstant DefaultObject { get; }
Property Value
Type Description
MaterialInstanceConstant
| Improve this Doc View Source

ParameterStateId

Unique ID for this material instance's parameter set

Declaration
public FGuid ParameterStateId { get; set; }
Property Value
Type Description
FGuid
Remarks

Updated on changes in the editor to allow those changes to be detected

| Improve this Doc View Source

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class

Methods

| Improve this Doc View Source

K2_GetScalarParameterValue(Name)

Get the scalar (float) parameter value from an MIC

Declaration
public float K2_GetScalarParameterValue(Name ParameterName)
Parameters
Type Name Description
Name ParameterName
Returns
Type Description
System.Single
| Improve this Doc View Source

K2_GetTextureParameterValue(Name)

Get the MIC texture parameter value

Declaration
public Texture K2_GetTextureParameterValue(Name ParameterName)
Parameters
Type Name Description
Name ParameterName
Returns
Type Description
Texture
| Improve this Doc View Source

K2_GetVectorParameterValue(Name)

Get the MIC vector parameter value

Declaration
public LinearColor K2_GetVectorParameterValue(Name ParameterName)
Parameters
Type Name Description
Name ParameterName
Returns
Type Description
LinearColor
| Improve this Doc View Source

New(UObject, Name)

Spawn an object of this class

Declaration
public static MaterialInstanceConstant New(UObject obj = null, Name name = default(Name))
Parameters
Type Name Description
UObject obj
Name name
Returns
Type Description
MaterialInstanceConstant

Operators

| Improve this Doc View Source

Implicit(IntPtr to MaterialInstanceConstant)

Convert from IntPtr to UObject

Declaration
public static implicit operator MaterialInstanceConstant(IntPtr p)
Parameters
Type Name Description
System.IntPtr p
Returns
Type Description
MaterialInstanceConstant
  • Improve this Doc
  • View Source
Back to top Generated by DocFX