Callback/OnPropertyChange

From Blue Mars Developer Guidebook

Jump to: navigation, search

This is a callback in Entity Scripts

Function

OnPropertyChange()
Called when an entity property is changed (edited) in the Sandbox Editor.

Notes

Implement this callback if you want one or more edited properties to have an effect immediately. This a convenience for prototyping and testing.

Example

function YourScript:OnPropertyChange()
  self:SetMaterialVec3(0,self.subMtlId,self.Properties.paramName,self.Properties.vValue);
end
Problems with this wiki page? Contact us either by: Support Email or Support Ticket System

Blue Mars Guidebook Privacy Policy
Blue Mars Guidebook Community Guidelines

Personal tools